Skip to content
Draft
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
10 changes: 5 additions & 5 deletions perpendicular-flap/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ cases:
run: ./run.sh
component: openfoam-adapter

# solid-solids4foam:
# participant: Solid
# directory: ./solid-solids4foam
# run: ./run.sh
# component: openfoam-adapter
solid-solids4foam:
participant: Solid
directory: ./solid-solids4foam
run: ./run.sh
component: solids4foam
16 changes: 16 additions & 0 deletions tools/tests/component-templates/solids4foam.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
build:
context: {{ dockerfile_context }}
args:
{% for key, value in build_arguments.items() %}
- {{key}}={{value}}
{% endfor %}
target: solids4foam
depends_on:
prepare:
condition: service_completed_successfully
volumes:
- {{ run_directory }}:/runs
command: >
/bin/bash -c "id &&
cd '/runs/{{ tutorial_folder }}/{{ case_folder }}' &&
openfoam {{ run }} | tee system-tests_{{ case_folder }}.log 2>&1"
24 changes: 24 additions & 0 deletions tools/tests/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,30 @@ openfoam-adapter:
description: Reference/tag of the OpenFOAM adapter to use
default: "master"


solids4foam:
repository: https://github.com/solids4foam/solids4foam
template: component-templates/solids4foam.yaml
build_arguments:
PLATFORM:
description: Dockerfile platform used
default: "ubuntu_2404"
PRECICE_REF:
description: Version of preCICE to use
default: "main"
PRECICE_PRESET:
description: CMake preset of preCICE
default: "production-audit"
TUTORIALS_REF:
description: Tutorial git reference to use
default: "master"
OPENFOAM_EXECUTABLE:
description: exectuable of openfoam to use
default: "openfoam2512"
OPENFOAM_ADAPTER_REF:
description: Reference/tag of the OpenFOAM adapter to use
default: "master"

fenics-adapter:
repository: https://github.com/precice/fenics-adapter
template: component-templates/fenics-adapter.yaml
Expand Down
7 changes: 7 additions & 0 deletions tools/tests/dockerfiles/ubuntu_2404/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ RUN git clone https://github.com/precice/openfoam-adapter.git &&\
git checkout ${OPENFOAM_ADAPTER_REF} && \
/usr/bin/${OPENFOAM_EXECUTABLE} ./Allwmake -j $(nproc)

FROM openfoam_adapter AS solids4foam
USER precice
RUN python3 -m venv /home/precice/venv && \
. /home/precice/venv/bin/activate && \
pip3 install styro && \
export WM_NCOMPPROCS=$(nproc) && \
/usr/bin/${OPENFOAM_EXECUTABLE} styro install solids4foam

FROM precice_dependecies AS python_bindings
COPY --from=precice /home/precice/.local/ /home/precice/.local/
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/reference_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ OPENFOAM_ADAPTER_REF: "2c3062c" # develop, May 27, 2026
PRECICE_REF: "v3.4.1"
PYTHON_BINDINGS_REF: "v3.4.0"
SU2_ADAPTER_REF: "5abe79b" # develop, May 27, 2026
TUTORIALS_REF: "mercurydpm-tests"
TUTORIALS_REF: "solids4foam-component"

# Additional settings
PRECICE_PRESET: "production-audit"
11 changes: 11 additions & 0 deletions tools/tests/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,13 @@ test_suites:
- solid-openfoam
max_time: 0.03
reference_result: ./perpendicular-flap/reference-results/fluid-openfoam_solid-openfoam.tar.gz
- &perpendicular-flap_fluid-openfoam_solid-solids4foam
path: perpendicular-flap
case_combination:
- fluid-openfoam
- solid-solids4foam
max_time: 0.1
reference_result: ./perpendicular-flap/reference-results/fluid-openfoam_solid-solids4foam.tar.gz
- &perpendicular-flap_fluid-su2_solid-fenics
path: perpendicular-flap
case_combination:
Expand Down Expand Up @@ -733,6 +740,10 @@ test_suites:
# Excluded:
# *elastic-tube-3d_fluid-openfoam_solid-fenics # too small values to compare

solids4foam:
tutorials:
- *perpendicular-flap_fluid-openfoam_solid-solids4foam

su2-adapter:
tutorials:
- *flow-over-heated-plate_fluid-su2_solid-openfoam
Expand Down