From nobody Fri Nov 15 09:20:37 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XqWhk0Yg8z5ctDv; Fri, 15 Nov 2024 09:20:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XqWhj5vXlz4HK8; Fri, 15 Nov 2024 09:20:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731662437; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XZs7Zp88MkcN9vzIXtzvCWKA4OMFDHMjg36HGrugldc=; b=l5Y/DCq1Eidg6ENDpiQIiSxxRyevavlGzJVyZLT/rnlV4c8/qy4Ye1HSwT8/dcNaEB3mgA DO+ONWodN7tv/fGMTlsXDjrx6wyWeR8v9Vh6OEQAWWMCkqNMTja6hPV7NhcqBlgBW5KXqD Q0vg0dKvpxniiFRoiR0KeriFs+53JcIlrNhxYgYqTdchf0qHqIH64hfpKlOEmXKr3zV3dl 47sBRrNlrwXAtD9OepS/UMfuE9D2Np2TsJLiC9JnaE4EBIsupeAkfO8tPlGoGHq+AW2E9P 0g5ctwWq8XL4yjE29e41utUaZUrotIgF5J9L8IqS15U/AwNdzr1apqPp63zpwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731662437; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XZs7Zp88MkcN9vzIXtzvCWKA4OMFDHMjg36HGrugldc=; b=WsLs91LYOkFjIce5Zyvgnz7fMhA8zf9z1uIKTZy3Z77/tX2X2hN2+H33sV8h/UCQYtq2zu CtymlcNcCSs97YiAboLHv4xLvk0Mwj+nyaw73TDGReHhKORzVxnffZRL7T6VCmlun89b4m ZqcSYDSDM8uxjyxbshDLQ6vFRoXzmROBxIZPTaS2sqSm8L3bUC0M6HA1utM1RUZ4AWGxCp Cttg7EFTx+4IXvX+QhOvZ3HUxJaRsoccct7BpQljIM9fqAeurIeVfvbcbRWlrwBFGpfk/b WEVNZ4sY/SZoHqnkTjIN5wpwcf5HhGdNuDy/DGughrQe6OupjnJ3hEgM2Cpo4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731662437; a=rsa-sha256; cv=none; b=IBFnrWj1HrhrynON6MZrXsZGHOi1eWIgrdjYMGdpsyjwju1gIyuN2Kr8Am5a8i1QRSZ1tI zB7AzNBHRiYlJ/zXRC2QUF1RCnuHq/mdwngIb5z5xR690c7htY4QDBABipICxqKjPl3Tb+ zpJNqEuXTwlyLEzF3SutL6scQWkZZdBcJGLMwbI+epnnYMEMq0f+5uC8g5ymBL/gFjz2sO CoVWkht/u2YtHE2UWasNUUzlZG04/TI+qP2PEJRxO3Pas95TNXs2LNlhMuoRxugIUiUcfg by7hFLbLQNzbXIbGk5jt76NC96Ecc7nfPJGEO1LZC0CgtmYuPXB3jf1wlXdftQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XqWhj4jS1zGyB; Fri, 15 Nov 2024 09:20:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AF9Kbb6056542; Fri, 15 Nov 2024 09:20:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AF9KbeY056539; Fri, 15 Nov 2024 09:20:37 GMT (envelope-from git) Date: Fri, 15 Nov 2024 09:20:37 GMT Message-Id: <202411150920.4AF9KbeY056539@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 8228fb6e7863 - main - science/py-symfc: New port: Generate symmetrized force constants List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8228fb6e7863bab33ec6712eb1cb673088df9f44 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8228fb6e7863bab33ec6712eb1cb673088df9f44 commit 8228fb6e7863bab33ec6712eb1cb673088df9f44 Author: Yuri Victorovich AuthorDate: 2024-11-15 05:41:32 +0000 Commit: Yuri Victorovich CommitDate: 2024-11-15 09:20:26 +0000 science/py-symfc: New port: Generate symmetrized force constants --- science/Makefile | 1 + science/py-symfc/Makefile | 30 ++++++++++++++++++++++++++++++ science/py-symfc/distinfo | 3 +++ science/py-symfc/pkg-descr | 16 ++++++++++++++++ 4 files changed, 50 insertions(+) diff --git a/science/Makefile b/science/Makefile index b816f26b8e34..ca5de6ee8d95 100644 --- a/science/Makefile +++ b/science/Makefile @@ -438,6 +438,7 @@ SUBDIR += py-skrebate SUBDIR += py-spaghetti SUBDIR += py-spglib + SUBDIR += py-symfc SUBDIR += py-tensorflow SUBDIR += py-thewalrus SUBDIR += py-tobler diff --git a/science/py-symfc/Makefile b/science/py-symfc/Makefile new file mode 100644 index 000000000000..fe899e853d72 --- /dev/null +++ b/science/py-symfc/Makefile @@ -0,0 +1,30 @@ +PORTNAME= symfc +DISTVERSION= 1.1.5 +CATEGORIES= science python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Generate symmetrized force constants +WWW= https://github.com/symfc/symfc + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}spglib>0:science/py-spglib@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 cython autoplist pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/tests + +NO_ARCH= yes + +# tests as of 1.1.5: 21 failed, 36 passed, 22 warnings in 26.89s, see https://github.com/symfc/symfc/issues/133 + +.include diff --git a/science/py-symfc/distinfo b/science/py-symfc/distinfo new file mode 100644 index 000000000000..6377fcee8ee7 --- /dev/null +++ b/science/py-symfc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1731648410 +SHA256 (symfc-1.1.5.tar.gz) = 4e13c3dc77be36ed31390904bbeb86dbf5e2c100641ff919b10c47dc788a0cf4 +SIZE (symfc-1.1.5.tar.gz) = 454766 diff --git a/science/py-symfc/pkg-descr b/science/py-symfc/pkg-descr new file mode 100644 index 000000000000..d97ec160a186 --- /dev/null +++ b/science/py-symfc/pkg-descr @@ -0,0 +1,16 @@ +Atomic vibrations in crystals are often conveniently described using the phonon +model. In this model, the crystal potential is expanded into a Taylor series +with respect to atomic displacements from their equilibrium positions, and the +expansion coefficients are referred to as force constants. + +Predicting phonon properties through computer simulations is becoming +increasingly popular, with the supercell approach being one of the techniques +employed for phonon calculations. In this method, force constants are derived +from datasets of atomic forces and displacements obtained from supercell +snapshots, which feature various configurations of atomic displacements. + +While force constants possess specific symmetries, those computed from +displacement-force datasets often do not adhere to these symmetries due to +factors such as numerical noise or approximations used. Symfc is a software +designed to compute force constants from displacement-force datasets in the +supercell approach, ensuring they meet the required symmetry constraints.