Skip to content

OpenFOAM: Strictly require the preciceAdapterFunctionObject #642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 7, 2025
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
3 changes: 2 additions & 1 deletion breaking-dam-2d/fluid-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ maxCo 2;
maxAlphaCo 1;
maxDeltaT 1;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
1 change: 1 addition & 0 deletions changelog-entries/642.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added the errors strict` option to cases using the OpenFOAM adapter (assumes OpenFOAM v2012 or later) [#642](https://github.com/precice/tutorials/pull/642).
3 changes: 2 additions & 1 deletion channel-transport/fluid-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ timeFormat general;

timePrecision 6;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
3 changes: 2 additions & 1 deletion elastic-tube-3d/fluid-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ runTimeModifiable false;

adjustTimeStep no;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ adjustTimeStep no;

maxCo 0.75;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
#includeFunc forces
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ timePrecision 6;

runTimeModifiable false;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ functions
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ functions
preCICE_Adapter
{
type preciceAdapterFunctionObject;
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ functions
preCICE_Adapter
{
type preciceAdapterFunctionObject;
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ functions
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ timePrecision 6;

runTimeModifiable false;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ timePrecision 6;

runTimeModifiable false;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
1 change: 1 addition & 0 deletions flow-over-heated-plate/fluid-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ functions
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
1 change: 1 addition & 0 deletions flow-over-heated-plate/solid-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ functions
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ timePrecision 6;

runTimeModifiable false;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ timePrecision 6;

runTimeModifiable false;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
3 changes: 2 additions & 1 deletion heat-exchanger/fluid-inner-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ endTime 500;

writeControl timeStep;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
3 changes: 2 additions & 1 deletion heat-exchanger/fluid-outer-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ endTime 500;

writeControl timeStep;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ timeFormat general;

timePrecision 6;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ functions
preCICE_Adapter
{
type preciceAdapterFunctionObject;
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ functions
preCICE_Adapter
{
type preciceAdapterFunctionObject;
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ timePrecision 6;

runTimeModifiable false;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ timePrecision 6;

runTimeModifiable false;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ functions
preCICE_Adapter
{
type preciceAdapterFunctionObject;
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ functions
preCICE_Adapter
{
type preciceAdapterFunctionObject;
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ timeFormat general;

timePrecision 6;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ timeFormat general;

timePrecision 6;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ timeFormat general;

timePrecision 6;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ timeFormat general;

timePrecision 6;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
3 changes: 2 additions & 1 deletion perpendicular-flap/fluid-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ timeFormat general;

timePrecision 6;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
3 changes: 2 additions & 1 deletion perpendicular-flap/solid-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ timeFormat general;

timePrecision 6;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}

Expand Down
3 changes: 2 additions & 1 deletion perpendicular-flap/solid-solids4foam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ timeFormat general;

timePrecision 6;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}

Expand Down
3 changes: 2 additions & 1 deletion quickstart/fluid-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ timeFormat general;

timePrecision 8;

libs ("libpreciceAdapterFunctionObject.so");
functions
{
forces
Expand All @@ -52,6 +53,6 @@ functions
preCICE_Adapter
{
type preciceAdapterFunctionObject;
libs ("libpreciceAdapterFunctionObject.so");
errors strict; // Available since OpenFOAM v2012
}
}
Loading