-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
91 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
## 0.0.3 (2023-10-02) | ||
|
||
### Fix | ||
|
||
- Corrected setup entry point | ||
|
||
## 0.0.2 (2023-10-02) | ||
|
||
### Fix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
Metadata-Version: 2.1 | ||
Name: pyFoamd | ||
Version: 0.1.0 | ||
Summary: Pythonic interface for OpenFOAM dictionaries and case files. | ||
Home-page: https://github.com/mcgoldba/pyFoamd | ||
Author: Marc Goldbach | ||
Author-email: [email protected] | ||
Name: pyfoamd | ||
Version: 0.0.2 | ||
Author-email: Marc Goldbach <[email protected]> | ||
License: GNU GENERAL PUBLIC LICENSE | ||
Version 3, 29 June 2007 | ||
|
||
|
@@ -680,9 +677,80 @@ License: GNU GENERAL PUBLIC LICENSE | |
Public License instead of this License. But first, please read | ||
<https://www.gnu.org/licenses/why-not-lgpl.html>. | ||
|
||
Project-URL: Home, https://github.com/mcgoldba/pyFoamd | ||
Requires-Python: >=3.7 | ||
Description-Content-Type: text/markdown | ||
License-File: LICENSE | ||
Requires-Dist: pint | ||
Requires-Dist: pandas | ||
Requires-Dist: rich | ||
Requires-Dist: ipython | ||
|
||
pyFoamd | ||
------- | ||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters