No project description provided
Project description
pyFoamd
Pythonic modification of OpenFOAM dictionaries and case files.
Installation
.. code-block:: bash
python -m pip install pyfoamd
Basic Usage
Copy a template case and load as a python object
.. code-block:: bash
cp $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily .
cd pitzDaily
pf init
View case variables
.. code-block:: bash
pf edit
.. code-block:: python
>>> case.constant.turbulenceProperties.RAS.RASModel
kEpsilon
Change case dictionary entries
.. code-block:: python
>>> case.constant.case.constant.turbulenceProperties.RAS.RASModel = kOmega
Write the updated case to file
.. code-block:: python
>>> case.write()
Run the Allrun script
.. code-block:: python
>>> case.run()
Releasing
Releases are published automatically when a tag is pushed to GitHub.
.. code-block:: bash
Set next version number
export RELEASE=x.x.x
Create tags
git commit --allow-empty -m "Release $RELEASE" git tag -a $RELEASE -m "Version $RELEASE"
Push
git push upstream --tags
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyfoamd-0.0.1.tar.gz
(155.9 kB
view hashes)
Built Distribution
pyfoamd-0.0.1-py3-none-any.whl
(127.7 kB
view hashes)