Skip to content

Commit e41c25f

Browse files
authored
Merge pull request #15 from daavid00/dev
Running OpenFOAM in the tests via CI.yml
2 parents 0daa959 + 2f003a1 commit e41c25f

29 files changed

Lines changed: 74 additions & 61 deletions

.github/workflows/CI.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,24 @@ on:
99
jobs:
1010
run-pymm-local:
1111
timeout-minutes: 30
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
python-version: ['3.13']
16-
os: [ubuntu-latest]
17-
18-
runs-on: ${{ matrix.os }}
12+
runs-on: ubuntu-latest
1913

2014
steps:
2115
- uses: actions/checkout@v2
2216
with:
2317
fetch-depth: 0
2418

25-
- name: Set up Python ${{ matrix.python-version }}
19+
- name: Set up Python 3.13
2620
uses: actions/setup-python@v2
2721
with:
28-
python-version: ${{ matrix.python-version }}
22+
python-version: 3.13
23+
24+
- name: Install OpenFOAM
25+
run: |
26+
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key > /etc/apt/trusted.gpg.d/openfoam.asc"
27+
sudo add-apt-repository http://dl.openfoam.org/ubuntu
28+
sudo apt-get update
29+
sudo apt -y install openfoam13
2930
3031
- name: Install gmsh
3132
run: |
@@ -50,6 +51,9 @@ jobs:
5051
5152
- name: Run the tests
5253
run: |
54+
set +e
55+
source /opt/openfoam13/etc/bashrc
56+
set -e
5357
pytest --cov=pymm --cov-report term-missing tests/
5458
5559
- name: Build documentation

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ cssr
137137
debugging
138138
developing
139139
playground
140-
**/tests/configs/*/
140+
tests/output

CITATION.cff

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ authors:
44
- family-names: Landa-Marbán
55
given-names: David
66
orcid: "https://orcid.org/0000-0002-3343-1005"
7-
title: "py-micp: An Open-Source Simulation Workflow for Field-Scale Application of
8-
Microbially Induced Calcite Precipitation Technology for Leakage Remediation"
9-
version: "2025.10"
10-
year: 2025
7+
title: "pymm: An open-source image-based framework for CFD in microsystems"
8+
version: "2023.10"
9+
year: 2023
1110
doi: 10.5281/zenodo.8430988
1211
url: "https://github.com/cssr-tools/pymm"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Run `pymm --help` to see all possible command line argument options. Inside the
5656
See the [_examples_](https://cssr-tools.github.io/pymm/examples.html) in the [_documentation_](https://cssr-tools.github.io/pymm/introduction.html).
5757

5858
## Citing
59-
* Landa-Marbán, D. 2023. An open-source image-based framework for CFD in microsystems. https://doi.org/10.5281/zenodo.8430988.
59+
* Landa-Marbán, D. 2023. pymm: An open-source image-based framework for CFD in microsystems. https://doi.org/10.5281/zenodo.8430988.
6060

6161
## Journal papers using pymm
6262
The following is a list of journal papers in which _pymm_ is used:

docs/_sources/installation.rst.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ Installation
44

55
The following steps work installing the dependencies in Linux via apt-get.
66
While using package managers such as Anaconda, Miniforge, or Mamba might work, these are not tested.
7-
The supported Python versions are 3.12 and 3.13. We will update the documentation when Python3.14 is supported
8-
(e.g., the porespy Python package is not yet available via pip install in Python 3.14).
7+
The supported Python versions are 3.12 and 3.13. We will update the documentation when Python3.14 is supported.
98

109
Python package
1110
--------------
@@ -55,7 +54,7 @@ and OpenFOAM-13 is the latest release. To test if OpenFoam is installed and work
5554

5655
.. code-block:: console
5756
58-
. /opt/openfoam13/etc/bashrc
57+
source /opt/openfoam13/etc/bashrc
5958
foamRun -help
6059
6160
Gmsh
@@ -67,4 +66,4 @@ See the `Gmsh page <https://gmsh.info/#Download>`_.
6766
.. tip::
6867

6968
See the `CI.yml <https://github.com/cssr-tools/pymm/blob/main/.github/workflows/CI.yml>`_ script
70-
for installation of pymm in Ubuntu using Python 3.13.
69+
for installation of pymm, gmsh, and OpenFOAM-13 in Ubuntu using Python 3.13.

docs/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h1>About pymm<a class="headerlink" href="#about-pymm" title="Link to this headi
100100
<hr/>
101101

102102
<div role="contentinfo">
103-
<p>&#169; Copyright 2022-2025, NORCE Research AS.</p>
103+
<p>&#169; Copyright 2022-2026, NORCE Research AS.</p>
104104
</div>
105105

106106
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a

docs/api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ <h2>pymm<a class="headerlink" href="#pymm" title="Link to this heading"></a><
128128
<hr/>
129129

130130
<div role="contentinfo">
131-
<p>&#169; Copyright 2022-2025, NORCE Research AS.</p>
131+
<p>&#169; Copyright 2022-2026, NORCE Research AS.</p>
132132
</div>
133133

134134
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a

docs/configuration_file.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ <h2>Remaining parameters<a class="headerlink" href="#remaining-parameters" title
208208
<hr/>
209209

210210
<div role="contentinfo">
211-
<p>&#169; Copyright 2022-2025, NORCE Research AS.</p>
211+
<p>&#169; Copyright 2022-2026, NORCE Research AS.</p>
212212
</div>
213213

214214
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a

docs/contributing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ <h2>Seek support<a class="headerlink" href="#seek-support" title="Link to this h
154154
<hr/>
155155

156156
<div role="contentinfo">
157-
<p>&#169; Copyright 2022-2025, NORCE Research AS.</p>
157+
<p>&#169; Copyright 2022-2026, NORCE Research AS.</p>
158158
</div>
159159

160160
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a

docs/examples.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ <h2>Online<a class="headerlink" href="#online" title="Link to this heading"><
202202
<hr/>
203203

204204
<div role="contentinfo">
205-
<p>&#169; Copyright 2022-2025, NORCE Research AS.</p>
205+
<p>&#169; Copyright 2022-2026, NORCE Research AS.</p>
206206
</div>
207207

208208
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a

0 commit comments

Comments
 (0)