Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4e308c2
added tutorial for foam-extend
hoehnp Jul 4, 2025
33776ae
Update quickstart/fluid-foam-extend/system/controlDict
hoehnp Jul 5, 2025
24d8a43
added missing variable
hoehnp Jul 5, 2025
4fc127b
add blockMeshDict in right folder
hoehnp Aug 5, 2025
85510a1
remove blockMeshDict from old location
hoehnp Aug 5, 2025
dbfdeb9
fix path for preciceDict in quickstart for foam-extend
hoehnp Aug 6, 2025
da48510
add missing keyword
hoehnp Aug 6, 2025
50ba26c
added missing keywords for foam-extend-5.0
hoehnp Aug 6, 2025
49c1e05
add missing scheme
hoehnp Aug 6, 2025
2085c00
add relaxationFactors for foam-extend-4.0
hoehnp Aug 8, 2025
dacad27
also add Ufinal for foam-extend-4.0
hoehnp Aug 8, 2025
af9e813
fix typo
hoehnp Aug 8, 2025
c153c42
add changes to combine foam-extend and openfoam for the quickstart tu…
hoehnp Sep 8, 2025
d911b72
make run-foam-extend.sh executable
hoehnp Sep 8, 2025
f132044
remove the too late creation of blockMeshDict for OpenFOAM
hoehnp Sep 8, 2025
0306949
adding missing values for foam-extend
hoehnp Sep 8, 2025
6a02f4f
add fix to adjust to limited version of getApplications in foam-extend
hoehnp Sep 8, 2025
7082467
add changes before deleting folder
hoehnp Sep 8, 2025
02ddabb
remove no longer required folder for foam-extend
hoehnp Sep 8, 2025
6baea22
run-foam-extend.sh: Back up original files
MakisH Sep 13, 2025
3f11c0c
Add comments in the controlDict
MakisH Sep 13, 2025
fea3aaa
Add comments for lines only relevant to foam-extend
MakisH Sep 13, 2025
6f4053c
Add a note in README.md
MakisH Sep 13, 2025
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
51 changes: 51 additions & 0 deletions quickstart/fluid-foam-extend/0/U
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{

flap
{
type movingWallVelocity;
value uniform (0 0 0);
}

top
{
type zeroGradient;
}

bottom
{
type zeroGradient;
}

inlet
{
type fixedValue;
value uniform (1 0 0);
}

outlet
{
type zeroGradient;
}

front
{
type empty;
}
back
{
type empty;
}
}
49 changes: 49 additions & 0 deletions quickstart/fluid-foam-extend/0/p
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
flap
{
type zeroGradient;
}

top
{
type zeroGradient;
}

bottom
{
type zeroGradient;
}

inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 0;
}

front
{
type empty;
}
back
{
type empty;
}
}
50 changes: 50 additions & 0 deletions quickstart/fluid-foam-extend/0/pointDisplacement
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FoamFile
{
version 2.0;
format ascii;
class pointVectorField;
object pointDisplacement;
}

dimensions [0 1 0 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
inlet
{
type fixedValue;
value uniform (0 0 0);
}

outlet
{
type fixedValue;
value uniform (0 0 0);
}

flap
{
type fixedValue;
value $internalField;
}

top
{
type slip;
}

bottom
{
type slip;
}
front
{
type empty;
}
back
{
type empty;
}
}
6 changes: 6 additions & 0 deletions quickstart/fluid-foam-extend/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
set -e -u

. ../../tools/cleaning-tools.sh

clean_openfoam .
21 changes: 21 additions & 0 deletions quickstart/fluid-foam-extend/constant/dynamicMeshDict
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object dynamicMeshDict;
}


dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolver.so");

solver displacementLaplacian;
// OpenFOAM9 or newer: rename "solver" to "motionSolver"

diffusivity uniform;

displacementLaplacianCoeffs {
diffusivity quadratic inverseDistance (flap);
}
12 changes: 12 additions & 0 deletions quickstart/fluid-foam-extend/constant/transportProperties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}

transportModel Newtonian;

nu nu [0 2 -1 0 0 0 0 ] 0.001;
pRef pRef [1 -1 -2 0 0 0 0 ] 0.0;
9 changes: 9 additions & 0 deletions quickstart/fluid-foam-extend/constant/turbulenceProperties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object turbulenceProperties;
}

simulationType laminar;
13 changes: 13 additions & 0 deletions quickstart/fluid-foam-extend/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e -u

. ../../tools/log.sh
exec > >(tee --append "$LOGFILE") 2>&1

blockMesh

../../tools/run-openfoam.sh "$@"

. ../../tools/openfoam-remove-empty-dirs.sh && openfoam_remove_empty_dirs

close_log
1 change: 1 addition & 0 deletions quickstart/fluid-foam-extend/system/blockMeshDict
82 changes: 82 additions & 0 deletions quickstart/fluid-foam-extend/system/controlDict
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

//application pimpleFoam; // latest OpenFOAM
application pimpleDyMFoam; // OpenFOAM v1712, OpenFOAM 5.x, or older

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 2.5;

deltaT 2.5e-2;

writeControl adjustableRunTime;

writeInterval 2.5e-2;

purgeWrite 0;

writeFormat ascii;

writePrecision 10;

writeCompression uncompressed;

timeFormat general;

timePrecision 8;

runTimeModifiable true;

adjustTimeStep no;

maxCo 0.9;

libs
(
"libforces.so"
"liblduSolvers.so"
"libpreciceAdapterFunctionObject.so"
);

functions
{
forces
{
type forces;
functionObjectLibs ( "libforces.so" );
outputControl timeStep;
outputInterval 1;
patches (flap);
pName p;
UName U;
rhoName rhoInf;
log true;
rhoInf 10;
CofR (0 0 0);
}

preCICE_Adapter
{
type preciceAdapterFunctionObject;
errors strict; // Available since OpenFOAM v2012
}
}
24 changes: 24 additions & 0 deletions quickstart/fluid-foam-extend/system/decomposeParDict
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location system;
object decomposeParDict;
}

numberOfSubdomains 2;

method hierarchical;
hierarchicalCoeffs
{
n (2 1 1);
delta 0.001;
order xyz;
}

distributed false;
roots
(
);

40 changes: 40 additions & 0 deletions quickstart/fluid-foam-extend/system/fvSchemes
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}

ddtSchemes
{
default backward;
}

gradSchemes
{
default cellLimited Gauss linear 1;
}

divSchemes
{
default none;
div(phi,U) Gauss linearUpwind grad(U);
div((nuEff*dev(T(grad(U))))) Gauss linear;
}

interpolationSchemes
{
default linear;
}

laplacianSchemes
{
default Gauss linear corrected;
}

snGradSchemes
{
default corrected;
}
Loading