PHYEX
PHYsique EXternalisée
PHYEX is the atmospheric physics package (turbulence, shallow convection and microphysics schemes) shared by the Meso-NH, AROME (and HARMONIE-AROME) and LMDZ models.
The documentation can be found in the docs directory. Several presentations were done, the materials can be found on the wiki.
FORTRAN users: compiling the library
The library (and, optionally, the offline test programs) is compiled with CMake directly from the main CMakeLists.txt file.
Requirements:
- CMake >= 3.18
- FORTRAN and C compilers
- git and an internet connection if ecbuild and fiat are not already installed (they are then downloaded and built automatically)
- python >= 3.8 (with the venv module) only if the source code is transformed at build time (PHYEX_TRANSFORMATION option, the pyfortool package is then installed automatically if needed)
Example:
git clone https://github.com/UMR-CNRM/PHYEX.git
cmake -S PHYEX -B build -DCMAKE_TOOLCHAIN_FILE=PHYEX/arch/arch-gnu.ecbuild
cmake --build build -j
The build options (precision, test programs, transformations...) are described in the Offline documentation. The way to plug the library in a model is described in the Plugging documentation.
Python users: the pyphyex package
The pyphyex package provides a python binding of the main PHYEX routines (pyphyex.lowlevel) and a 1D model (pyphyex.phyex1d, with the phyex1d-* commands). It can be installed from this repository (same requirements as for the FORTRAN library, CMake >= 3.18 and the compilers, python >= 3.10):
pip install ./PHYEX
See the Offline documentation for the python binding and the
phyex1d documentation for the 1D model (for instance:
phyex1d-cases_install download; phyex1d-exp_run ARMCU/REF --exp dt=60).
Developers
The contribution workflows are described in the Developer documentation and the coding norms in the CodingNorms documentation.
The tools (source code preparation and test scripts, phyex-check_* commands) are provided as a python package to install, in editable mode, from the repository (python >= 3.10 recommended):
git clone https://github.com/UMR-CNRM/PHYEX.git
python3 -m venv phyex.env
. phyex.env/bin/activate
pip install -e PHYEX/tools
For instance, the offline test programs (testprogs) can be compiled, executed and compared to the reference results with the source code of a local repository (input data are downloaded automatically):
phyex-check_testprogs -p -c -r -C --computeRefIfNeeded $PWD/PHYEX REF
All the checks needed before a contribution (coding norms, consistency, documentation, python
wheel and the test cases of the different models) can be run with phyex-check_commit.
The tools are described in the Tools documentation.
Main references
- PHYEX:
- MesoNH:
- AROME:
- Common format:
License
PHYEX is distributed under the CeCILL-C license (see the LICENSE file).
Metadata
Release files for pyphyex 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyphyex-0.9.4.tar.gz | 1.1 MB | Without provenance | Details for pyphyex-0.9.4.tar.gz |
Release files / pyphyex-0.9.4.tar.gz
| Download URL | pyphyex-0.9.4.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51796a10d9bf983003dede528c5baca3c610522541b0db3838c1fc1b3c3bdeea
|
|
BLAKE2b-256 checksum How to use checksums |
e46b7ac52af8bf5cbec48a2179aa0f64b4deb416cfde22d171d45d704a9b7cfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for pyphyex 0.9.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.