Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
70afffe
Update create-release-archives.sh (fix typo in naming)
MakisH Jun 27, 2024
de988ea
Use setup-openfoam action in workflows (#338)
gerlero Aug 22, 2024
20b4617
Fix typo (#339)
gerlero Aug 23, 2024
7832d7b
Fix different dimensions error / Checkpointing issue #158 (#344)
vidulejs Jan 10, 2025
17db60b
Update the default OpenFOAM version to v2412 (#347)
MakisH Jan 27, 2025
9c736f3
Add missing literature entries in docs
MakisH Jan 30, 2025
11378fa
Make readData and writeData optional (#348)
MakisH Jan 30, 2025
a672e2c
README.md: Update badges
MakisH Feb 12, 2025
da20016
Document differences between OpenFOAM versions (#351)
MakisH Mar 14, 2025
411dede
Set `ADAPTER_TARGET_DIR` and `ADAPTER_CFLAGS` (`ADAPTER_PREP_FLAGS`) …
BenjaminRodenberg Mar 20, 2025
5dc0ce0
Document running actions locally and update custom build CI options (…
MakisH Mar 20, 2025
c39547f
Add missing headers in Interface.C (#355)
MakisH Mar 20, 2025
fc16b30
Add missing overrides (#357)
MakisH Mar 21, 2025
af29bbb
Update system tests workflow variables (#360)
MakisH Mar 25, 2025
93e1809
System tests workflow: Pass PR number and add job summary (#361)
MakisH Mar 27, 2025
e9820bc
Update preCICE reference version (#365)
MakisH Apr 7, 2025
566dc12
Avoid ambiguous type conversion when accessing tmp<vectorField> (#359)
MakisH Apr 7, 2025
462c510
build.yml: Unpin runner version
MakisH Apr 11, 2025
5a293c4
Add volume coupling citation details (#371)
MakisH Jul 31, 2025
0d749dd
Simplify error handling (remove error-deferred workaround) (#364)
MakisH Jul 31, 2025
9ec23ef
Handle potential exceptions from preCICE calls (#366)
MakisH Aug 1, 2025
f8c8ca0
Bump actions/checkout from 4 to 5 (#373)
dependabot[bot] Aug 19, 2025
7278ba5
Add OPI badge to README.md (#375)
gerlero Sep 7, 2025
42f320e
Bump actions/setup-python from 5 to 6 (#376)
dependabot[bot] Sep 9, 2025
cf65114
Bump actions/setup-python from 5 to 6 (#376)
dependabot[bot] Sep 9, 2025
b6291bd
Fix error message for reading stresses (#379)
MakisH Oct 13, 2025
d74aeb0
Bump actions/upload-artifact from 4 to 5 (#381)
dependabot[bot] Oct 28, 2025
c5e46e8
Bump actions/checkout from 5 to 6 (#384)
dependabot[bot] Nov 25, 2025
86aab03
Bump actions/upload-artifact from 5 to 6 (#385)
dependabot[bot] Dec 17, 2025
52d9fa2
Update URLs in README.md
MakisH Dec 30, 2025
c6f0071
Bump versions to OpenFOAM v2512 and preCICE v3.3.0 (#386)
MakisH Jan 9, 2026
cad7e8d
Extend porting guide with more points for OpenFOAM 6 and 7 (#356)
MakisH Jan 9, 2026
cff7612
Add documentation about subcycling (#388)
vidulejs Jan 19, 2026
67c78fd
Add coupling fields used for CFD-DEM (#380)
davidscn Jan 20, 2026
ea3acb1
Update references style in README.md (#389)
MakisH Jan 20, 2026
d660d92
Update PRECICE_REF in system-tests workflow
MakisH Jan 30, 2026
c166132
Mesh checkpointing refactor (#387)
vidulejs Feb 2, 2026
f7e2d6c
Allow for case-insensitive exchanged field names (#391)
MakisH Feb 3, 2026
892c715
Parse both legacy and schema-based preciceDict configuration files (#…
vidulejs Feb 9, 2026
ee554eb
Generic Read Write module (#346)
vidulejs Feb 23, 2026
f81cb20
Initialize meshPoints_ to null pointers (#394)
vidulejs Feb 25, 2026
ff0b489
Update meshConnectivity claims (#393)
vidulejs Feb 25, 2026
ee4e25c
Change NULL pointer values to C++11 nullptr (#396)
MakisH Feb 25, 2026
618967f
Implement `flip-normal` operation adapter-wide inside `CouplingDataUs…
vidulejs Feb 25, 2026
d3a5e2b
Bump actions/upload-artifact from 6 to 7 (#399)
dependabot[bot] Mar 6, 2026
6ef89e8
Fix dangling reference (#401)
vidulejs Mar 10, 2026
4b42bb0
Implement operation gradient in Generic module (#398)
vidulejs May 3, 2026
3536713
Update name of the system tests test suite (#403)
MakisH May 27, 2026
ff0f1db
Bump preCICE to v3.4.1, update more versions (#404)
MakisH May 27, 2026
2c3062c
Remove deprecated CI workflows
MakisH May 27, 2026
c25e8c9
Mesh points & volumes checkpointing (#369)
vidulejs Jun 10, 2026
b6efc0e
Implement mixed boundary condition (Robin) in Generic module (#400)
vidulejs Jun 10, 2026
f6d7928
Simplify system tests workflow (#406)
MakisH Jun 16, 2026
b09e499
Bump actions/checkout from 6 to 7 (#407)
dependabot[bot] Jun 22, 2026
a1b234f
Prepare documentation for rendering in Hugo (#409)
MuhammadAashirAslam Jun 25, 2026
a0ceac5
Update coupledPressure / coupledVelocity BC for OpenFOAM v2606 (#410)
MakisH Jun 25, 2026
c39634e
Use Hugo-native URLs with legacy aliases (#412)
MuhammadAashirAslam Jun 30, 2026
dcaa9b0
Bump actions/setup-python from 6 to 7 (#413)
dependabot[bot] Jul 21, 2026
5a9eec4
Fix end-of-line in Utilities.C
MakisH Aug 5, 2026
c7e95a8
Bump default OpenFOAM version to v2606 (#411)
MakisH Aug 19, 2026
9a4952a
docs/README.md: Move disclaimer up to fix footnotes (#419)
MakisH Sep 1, 2026
f9683ce
Replace literature footnotes with a list
MakisH Sep 1, 2026
c12c5f7
Fix literature URLs
MakisH Sep 1, 2026
c7643d3
docs/README.md: Move disclaimer down again
MakisH Sep 1, 2026
8b765f4
Clarify field support for solvers in README (#392)
MakisH Sep 8, 2026
bc8ce1e
Extend instructions on getting OpenFOAM
MakisH Sep 9, 2026
c2eafdf
Replace checkpointing workflow image with Mermaid graph
MakisH Sep 13, 2026
f1a7a84
Fix the checkpointing workflow Mermaid graph
MakisH Sep 13, 2026
f3ed1d0
Add changelog for v1.4.0
MakisH Sep 14, 2026
a752e01
Bump version to v1.4.0
MakisH Sep 14, 2026
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
5 changes: 3 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ Language: Cpp
# BasedOnStyle: LLVM
#
# Proposed clang-format-11 style for OpenFOAM, trying to follow the OpenFOAM style guide:
# https://develop.openfoam.com/Development/openfoam/-/wikis/coding/style/style
# https://gitlab.com/openfoam/core/openfoam/-/wikis/coding/style/style
# Configuration developed for the OpenFOAM-preCICE adapter code:
# https://github.com/precice/openfoam-adapter
# Contribute to the discussion at the respective OpenFOAM issue:
# https://develop.openfoam.com/Development/openfoam/-/issues/1634
# https://develop.openfoam.com/Development/openfoam/-/issues/1634 (archived)
# https://gitlab.com/openfoam/core/openfoam/-/issues/1634
#
# Keep `public:` at the first indentation level
AccessModifierOffset: -4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.secrets
.artifacts
8 changes: 8 additions & 0 deletions .github/workflows/build-custom.input
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
virtualEnvironment="ubuntu-22.04"
refAdapter="develop"
versionOpenFOAM="2606"
versionpreCICE="v3.4.1"
runTutorialHeatedPlate="false"
runTutorialQuickstart="false"
runTutorialPartitionedPipe="false"
branchTutorials="develop"
164 changes: 41 additions & 123 deletions .github/workflows/build-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on:
inputs:
virtualEnvironment:
description: 'Virtual Environment'
default: 'ubuntu-18.04'
default: 'ubuntu-22.04'
required: true
type: choice
options:
- ubuntu-26.04
- ubuntu-24.04
- ubuntu-22.04
- ubuntu-20.04
- ubuntu-18.04
refAdapter:
description: 'Ref (branch/tag/commit) of the OpenFOAM adapter to build'
default: 'develop'
Expand All @@ -20,25 +21,30 @@ on:
required: true
type: choice
options:
- OpenFOAMv2406
- OpenFOAMv2312
- OpenFOAMv2306
- OpenFOAMv2212
- OpenFOAMv2206
- OpenFOAMv2112
- OpenFOAMv2106
- OpenFOAMv2012
- OpenFOAMv2006
- OpenFOAMv1912
- OpenFOAM10
- OpenFOAM9
- OpenFOAM8
- OpenFOAM7
- OpenFOAM6
- OpenFOAM5
- 2606
- 2512
- 2506
- 2412
- 2406
- 2312
- 2306
- 2212
- 2206
- 2112
- 2106
- 2012
- 2006
- 1912
- 13
- 12
- 11
- 10
- 9
- 8
- 7
versionpreCICE:
description: 'Version of preCICE to build with'
default: 'v3.0.0'
default: 'v3.4.1'
required: true
runTutorialHeatedPlate:
description: Run tutorial flow-over-heated-plate
Expand Down Expand Up @@ -76,109 +82,20 @@ jobs:
echo "Run tutorial partitioned-pipe: ${{ github.event.inputs.runTutorialPartitionedPipe }}"
echo "Tutorials branch: ${{ github.event.inputs.branchTutorials }}"
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
ref: ${{ github.event.inputs.refAdapter }}
- name: Install preCICE (no cache)
uses: precice/setup-precice-action@main
with:
precice-version: ${{ github.event.inputs.versionpreCICE }}
- name: Install OpenFOAM (no cache)
id: installOpenFOAM
run: |
case "${{ github.event.inputs.versionOpenFOAM }}" in
OpenFOAMv2406)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2406-dev
echo "{openfoam_exec}={/usr/bin/openfoam2406}" >> $GITHUB_OUTPUT;;
OpenFOAMv2312)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2312-dev
echo "{openfoam_exec}={/usr/bin/openfoam2312}" >> $GITHUB_OUTPUT;;
OpenFOAMv2306)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2306-dev
echo "{openfoam_exec}={/usr/bin/openfoam2306}" >> $GITHUB_OUTPUT;;
OpenFOAMv2212)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2212-dev
echo "{openfoam_exec}={/usr/bin/openfoam2212}" >> $GITHUB_OUTPUT;;
OpenFOAMv2206)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2206-dev
echo "{openfoam_exec}={/usr/bin/openfoam2206}" >> $GITHUB_OUTPUT;;
OpenFOAMv2112)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2112-dev
echo "{openfoam_exec}={/usr/bin/openfoam2112}" >> $GITHUB_OUTPUT;;
OpenFOAMv2106)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2106-dev
echo "{openfoam_exec}={/usr/bin/openfoam2106}" >> $GITHUB_OUTPUT;;
OpenFOAMv2012)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2012-dev
echo "{openfoam_exec}={/usr/bin/openfoam2012}" >> $GITHUB_OUTPUT;;
OpenFOAMv2006)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2006-dev
echo "{openfoam_exec}={/usr/bin/openfoam2006}" >> $GITHUB_OUTPUT;;
OpenFOAMv1912)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam1912-dev
echo "{openfoam_exec}={/usr/bin/openfoam1912}" >> $GITHUB_OUTPUT;;
OpenFOAM10)
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam10
echo "{openfoam_exec}={. /opt/openfoam10/etc/bashrc &&}" >> $GITHUB_OUTPUT;;
OpenFOAM9)
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam9
echo "{openfoam_exec}={. /opt/openfoam9/etc/bashrc &&}" >> $GITHUB_OUTPUT;;
OpenFOAM8)
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam8
echo "{openfoam_exec}={. /opt/openfoam8/etc/bashrc &&}" >> $GITHUB_OUTPUT;;
OpenFOAM7)
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam7
echo "{openfoam_exec}={. /opt/openfoam7/etc/bashrc &&}" >> $GITHUB_OUTPUT;;
OpenFOAM6)
echo "OpenFOAM 6 is only available on Ubuntu 18.04 or older."
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam6
echo "{openfoam_exec}={. /opt/openfoam6/etc/bashrc &&}" >> $GITHUB_OUTPUT;;
OpenFOAM5)
echo "OpenFOAM 5 is only available on Ubuntu 18.04 or older."
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam5
echo "{openfoam_exec}={. /opt/openfoam5/etc/bashrc &&}" >> $GITHUB_OUTPUT;;
*)
echo "I cannot find ${{ github.event.inputs.refAdapter }} in my known options."
exit 1;;
esac
- name: Sanity check
run: |
ls /usr/bin/openfoam* || echo "No /usr/bin/openfoam* directories."
ls /opt/openfoam* || echo "No /opt/openfoam* directories."
echo "GitHub Actions step output openfoam_exec:"
echo ${{steps.installOpenFOAM.outputs.openfoam_exec}}
- name: Set up OpenFOAM
uses: gerlero/setup-openfoam@v1
with:
openfoam-version: ${{ github.event.inputs.versionOpenFOAM }}
- name: Build OpenFOAM-preCICE adapter
run: |
echo "OpenFOAM environment: ${{steps.installOpenFOAM.outputs.openfoam_exec}}"
${{steps.installOpenFOAM.outputs.openfoam_exec}} ./Allwmake
./Allwmake
- name: Get tutorials
run: |
git clone https://github.com/precice/tutorials.git --branch ${{ github.event.inputs.branchTutorials }} --depth 1
Expand All @@ -187,30 +104,31 @@ jobs:
if ${{ github.event.inputs.runTutorialHeatedPlate }}
then
cd tutorials/flow-over-heated-plate/fluid-openfoam
${{steps.installOpenFOAM.outputs.openfoam_exec}} ./run.sh | tee fluid-openfoam.log 2>&1 &
./run.sh | tee fluid-openfoam.log 2>&1 &
PIDfluid=$!
cd ../solid-openfoam
${{steps.installOpenFOAM.outputs.openfoam_exec}} ./run.sh | tee solid-openfoam.log 2>&1
./run.sh | tee solid-openfoam.log 2>&1
wait $PIDfluid
fi
- name: Run tutorial quickstart
run: |
if ${{ github.event.inputs.runTutorialQuickstart }}
then
cd tutorials/quickstart/fluid-openfoam
if [ "${{ github.event.inputs.versionOpenFOAM }}" == "OpenFOAM5" ]
if [ "${{ github.event.inputs.versionOpenFOAM }}" == 5 ]
then
echo "Manually changing from pimpleFoam to pimpleDyMFoam for compatibility with OpenFOAM 5."
sed -i 's/pimpleFoam/pimpleDyMFoam/g' system/controlDict
fi
if [ "${{ github.event.inputs.versionOpenFOAM }}" == "OpenFOAM9" ]
if [ "${{ github.event.inputs.versionOpenFOAM }}" == 9 ]
then
echo "Manually changing from solver to motionSolver in dynamicMeshDict for compatibility with OpenFOAM 9."
sed -i 's/solver/motionSolver/g' constant/dynamicMeshDict
fi
${{steps.installOpenFOAM.outputs.openfoam_exec}} ./run.sh | tee fluid-openfoam.log 2>&1 &
./run.sh | tee fluid-openfoam.log 2>&1 &
PIDfluid=$!
cd ../solid-cpp
apt-get update && apt-get -y install cmake
cmake . && make && ./run.sh | tee solid-cpp.log 2>&1
wait $PIDfluid
fi
Expand All @@ -219,14 +137,14 @@ jobs:
if ${{ github.event.inputs.runTutorialPartitionedPipe }}
then
cd tutorials/partitioned-pipe/fluid1-openfoam-pimplefoam
${{steps.installOpenFOAM.outputs.openfoam_exec}} ./run.sh | tee fluid1-openfoam-pimplefoam.log 2>&1 &
./run.sh | tee fluid1-openfoam-pimplefoam.log 2>&1 &
PIDfluid=$!
cd ../fluid2-openfoam-pimplefoam
${{steps.installOpenFOAM.outputs.openfoam_exec}} ./run.sh | tee fluid2-openfoam-pimplefoam.log 2>&1 &
./run.sh | tee fluid2-openfoam-pimplefoam.log 2>&1 &
wait $PIDfluid
fi
- name: Archive logs
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: logs
path: |
Expand All @@ -240,7 +158,7 @@ jobs:
tutorials/partitioned-pipe/fluid1-openfoam-pimplefoam/fluid1-openfoam-pimplefoam.log
tutorials/partitioned-pipe/fluid2-openfoam-pimplefoam/fluid2-openfoam-pimplefoam.log
- name: Archive case files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: case-files
path: |
Expand Down
28 changes: 7 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build with OpenFOAM v2404
name: Build with OpenFOAM v2606
on:
push:
branches-ignore:
Expand All @@ -20,28 +20,14 @@ on:
- 'README.md'
jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install action dependencies
run: |
apt-get update -qq
apt-get install -qq sudo wget
- name: Setup caches
uses: actions/cache@v4
id: cache-id
uses: actions/checkout@v7
- name: Set up OpenFOAM
uses: gerlero/setup-openfoam@v1
with:
path: ${{ runner.temp }}/cache-directory
key: ${{ runner.os }}-cache-dependencies-v1.0
- name: Install OpenFOAM (considering cache)
uses: airvzxf/cache-anything-new-action@v1.0.1
with:
script: 'install-openfoam.sh'
is_cached: ${{ steps.cache-id.outputs.cache-hit }}
cache: ${{ runner.temp }}/cache-directory
snapshot: '/'
exclude: '/boot /data /dev /mnt /proc /run /sys'
openfoam-version: 2606
- name: Build OpenFOAM-preCICE adapter
run: /usr/bin/openfoam2406 ./Allwmake
run: ./Allwmake
13 changes: 0 additions & 13 deletions .github/workflows/check-format.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/check-shell.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/workflows/install-openfoam.sh

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout preCICE
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: '3.10'
python-version: '3.x'
check-latest: true
- name: Install pre-commit
run: pip install pre-commit
Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/system-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,9 @@ on:
types: [labeled]

jobs:
gather-refs:
if: ${{ github.event.label.name == 'trigger-system-tests' }}
runs-on: ubuntu-latest
outputs:
reftutorials: ${{ steps.reftutorials.outputs.shorthash }}
steps:
- id: reftutorials
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: tutorials
branch: develop

run-system-tests:
if: ${{ github.event.label.name == 'trigger-system-tests' }}
needs: gather-refs
uses: precice/tutorials/.github/workflows/run_testsuite_workflow.yml@develop
uses: precice/tutorials/.github/workflows/system-tests.yml@develop
with:
suites: openfoam_adapter_pr
build_args: TUTORIALS_REF:${{ needs.gather-refs.outputs.reftutorials }},PRECICE_REF:v3.1.1,OPENFOAM_EXECUTABLE:openfoam2312,OPENFOAM_ADAPTER_REF:${{ github.event.pull_request.head.sha }}
systests_branch: develop
loglevel: "DEBUG"
suites: openfoam-adapter
build_args: OPENFOAM_EXECUTABLE:openfoam2512,OPENFOAM_ADAPTER_PR:${{ github.event.number }},OPENFOAM_ADAPTER_REF:${{ github.event.pull_request.head.sha }}
Loading