Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ jobs:

build_docs:
runs-on: ubuntu-latest

defaults:
run:
shell: bash -l {0}
working-directory: ${{github.workspace}}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -21,9 +24,18 @@ jobs:
with:
python-version: '3.10'
cache: 'pip'


- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test-env
python-version: ${{matrix.python-version}}
channels: conda-forge
channel-priority: strict

- name: Install dependencies
run: |
conda install -y -c conda-forge paraview
python -m pip install --upgrade pip
pip install -e .
pip install sphinx sphinx_rtd_theme sphinx-autodoc-typehints
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
os: ['ubuntu-latest']
defaults:
run:
shell: bash -l {0}
working-directory: ${{github.workspace}}
steps:
- uses: actions/checkout@v4
Expand All @@ -56,17 +57,30 @@ jobs:
os: ['ubuntu-latest', 'macos-latest']
defaults:
run:
shell: bash -l {0}
working-directory: ${{github.workspace}}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test-env
python-version: ${{matrix.python-version}}
channels: conda-forge
channel-priority: strict

- name: Install dependencies
run: |
conda install -y -c conda-forge paraview
pip install --upgrade pip
pip install .
pip install pytest

- name: Test
run: pytest .

Expand All @@ -80,17 +94,29 @@ jobs:
os: ['ubuntu-latest']
defaults:
run:
shell: bash -l {0}
working-directory: ${{github.workspace}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test-env
python-version: ${{matrix.python-version}}
channels: conda-forge
channel-priority: strict

- name: Install dependencies
run: |
conda install -y -c conda-forge paraview
pip install --upgrade pip
pip install nrel-bird
pip install pytest

- name: Test
run: pytest .

Expand All @@ -104,6 +130,7 @@ jobs:
os: ['ubuntu-22.04']
defaults:
run:
shell: bash -l {0}
working-directory: ${{github.workspace}}
steps:
- uses: actions/checkout@v4
Expand All @@ -113,10 +140,21 @@ jobs:
- uses: gerlero/setup-openfoam@v1
with:
openfoam-version: 9

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test-env
python-version: ${{matrix.python-version}}
channels: conda-forge
channel-priority: strict

- name: Install dependencies
run: |
conda install -y -c conda-forge paraview
pip install --upgrade pip
pip install .

- name: Compile solver
run: |
cd OFsolvers/birdmultiphaseEulerFoam
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
working-directory: ${{github.workspace}}
steps:
- name: Checkout
Expand All @@ -26,8 +27,17 @@ jobs:
python-version: '3.13'
cache: 'pip'

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test-env
python-version: ${{matrix.python-version}}
channels: conda-forge
channel-priority: strict

- name: Install dependencies
run: |
conda install -y -c conda-forge paraview
pip install --upgrade pip
pip install pytest
pip install pytest-cov
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:

build_deploy_docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
working-directory: ${{github.workspace}}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand All @@ -23,9 +27,18 @@ jobs:
python-version: '3.10'
cache: 'pip'

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test-env
python-version: ${{matrix.python-version}}
channels: conda-forge
channel-priority: strict

- name: Install dependencies
run: |
python -m pip install --upgrade pip
conda install -y -c conda-forge paraview
pip install --upgrade pip
pip install -e .
pip install sphinx sphinx_rtd_theme sphinx-autodoc-typehints

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bash run.sh
## Installation of python package for developers

```bash
conda create --name bird python=3.10
conda create -c conda-forge --name bird python=3.10 paraview
conda activate bird
git clone https://github.com/NREL/BioReactorDesign.git
cd BioReactorDesign
Expand All @@ -23,7 +23,7 @@ pip install -e .
## Installation of python package for users

```bash
conda create --name bird python=3.10
conda create -c conda-forge --name bird python=3.10 paraview
conda activate bird
pip install nrel-bird=={version}
```
Expand Down
40 changes: 40 additions & 0 deletions bird/postprocess/data_conditional_mean/constant/polyMesh/boundary
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

3
(
inlet
{
type patch;
nFaces 200;
startFace 409180;
}
outlet
{
type patch;
nFaces 740;
startFace 409380;
}
walls
{
type wall;
inGroups List<word> 1(wall);
nFaces 8580;
startFace 410120;
}
)

// ************************************************************************* //
Loading
Loading