Skip to content
Open
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
13 changes: 13 additions & 0 deletions breaking-dam-2d/fluid-openfoam/constant/dynamicMeshDict
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ FoamFile
object dynamicMeshDict;
}

/*
dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");
Expand All @@ -16,3 +17,15 @@ solver displacementLaplacian;
displacementLaplacianCoeffs {
diffusivity quadratic inverseDistance (flap);
}
*/
mover
{
type motionSolver;

libs ("libfvMotionSolvers.so");

motionSolver displacementLaplacian;

diffusivity quadratic inverseDistance (flap);
}

22 changes: 22 additions & 0 deletions breaking-dam-2d/fluid-openfoam/constant/phaseProperties
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 13
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object phaseProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

phases ( water air );

sigma [ 1 0 -2 0 0 0 0 ] 0.072;


// ************************************************************************* //
24 changes: 24 additions & 0 deletions breaking-dam-2d/fluid-openfoam/constant/physicalProperties.air
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 13
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object physicalProperties.air;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

viscosityModel Newtonian;

nu [ 0 2 -1 0 0 0 0 ] 1e-05;

rho [ 1 -3 0 0 0 0 0 ] 1;


// ************************************************************************* //
24 changes: 24 additions & 0 deletions breaking-dam-2d/fluid-openfoam/constant/physicalProperties.water
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 13
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object physicalProperties.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

viscosityModel Newtonian;

nu [ 0 2 -1 0 0 0 0 ] 1e-06;

rho [ 1 -3 0 0 0 0 0 ] 1000;


// ************************************************************************* //
4 changes: 3 additions & 1 deletion breaking-dam-2d/fluid-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ FoamFile
object controlDict;
}

application interFoam;
application foamRun;

solver incompressibleVoF;

startFrom startTime;

Expand Down
3 changes: 2 additions & 1 deletion breaking-dam-2d/fluid-openfoam/system/fvSchemes
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ gradSchemes
divSchemes
{
div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss vanLeer;
// div(phi,alpha) Gauss vanLeer;
div(phi,alpha) Gauss interfaceCompression vanLeer 1;
div(phirb,alpha) Gauss linear;
div(phi,k) Gauss limitedLinear 1;
div(phi,B) Gauss limitedLinear 1;
Expand Down
14 changes: 13 additions & 1 deletion breaking-dam-2d/fluid-openfoam/system/fvSolution
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,25 @@ solvers
{
"alpha.water.*"
{
nCorrectors 2;
nSubCycles 1;

MULESCorr yes;

MULES
{
nIter 10;
tolerance 1e-2;
}

/*
nAlphaCorr 1;
nAlphaSubCycles 1;
cAlpha 1;

MULESCorr yes;
nLimiterIter 5;

*/
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-8;
Expand Down
2 changes: 2 additions & 0 deletions breaking-dam-2d/precice-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<receive-mesh name="Solid-Mesh" from="Solid" />
<write-data name="Force" mesh="Fluid-Mesh" />
<read-data name="Displacement" mesh="Fluid-Mesh" />
<watch-point mesh="Fluid-Mesh" name="Flap-Tip" coordinate="0.0;1" />
<mapping:rbf-global-direct
direction="write"
from="Fluid-Mesh"
Expand All @@ -47,6 +48,7 @@
<provide-mesh name="Solid-Mesh" />
<read-data name="Force" mesh="Solid-Mesh" />
<write-data name="Displacement" mesh="Solid-Mesh" />
<watch-point mesh="Solid-Mesh" name="Flap-Tip" coordinate="0.0;1" />
</participant>

<m2n:sockets acceptor="Fluid" connector="Solid" exchange-directory=".." />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ FoamFile
object controlDict;
}

application buoyantPimpleFoam;
application foamRun;

solver fluid; // buoyantPimpleFoam;

startFrom startTime;

Expand Down
1 change: 1 addition & 0 deletions partitioned-backwards-facing-step/fluid1-openfoam/0/U
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ boundaryField
{
type coupledVelocity;
refValue uniform (0 0 0);
phi phi;
}

frontAndBack
Expand Down
2 changes: 2 additions & 0 deletions partitioned-backwards-facing-step/fluid1-openfoam/0/p
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ boundaryField
{
type coupledPressure;
refValue uniform 0;
phi phi;
U U;
}

frontAndBack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ FoamFile
object controlDict;
}

application pimpleFoam;
application foamRun;

solver incompressibleFluid; // pimpleFoam;

startFrom startTime;

Expand Down
1 change: 1 addition & 0 deletions partitioned-backwards-facing-step/fluid2-openfoam/0/U
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ boundaryField
{
type coupledVelocity;
refValue uniform (0 0 0);
phi phi;
}

outlet
Expand Down
2 changes: 2 additions & 0 deletions partitioned-backwards-facing-step/fluid2-openfoam/0/p
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ boundaryField
{
type coupledPressure;
refValue uniform 0;
phi phi;
U U;
}

outlet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ FoamFile
object controlDict;
}

application pimpleFoam;
application foamRun;

solver incompressibleFluid; // pimpleFoam;

startFrom startTime;

Expand Down
14 changes: 14 additions & 0 deletions perpendicular-flap/fluid-openfoam/constant/dynamicMeshDict
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ FoamFile
object dynamicMeshDict;
}

/*
dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");
Expand All @@ -16,3 +17,16 @@ solver displacementLaplacian;
displacementLaplacianCoeffs {
diffusivity quadratic inverseDistance (flap);
}
*/

mover
{
type motionSolver;

libs ("libfvMotionSolvers.so");

motionSolver displacementLaplacian;

diffusivity quadratic inverseDistance (flap);
}

5 changes: 4 additions & 1 deletion perpendicular-flap/fluid-openfoam/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ FoamFile
object controlDict;
}

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

startFrom startTime;
Expand Down Expand Up @@ -43,4 +44,6 @@ functions
type preciceAdapterFunctionObject;
errors strict; // Available since OpenFOAM v2012
}

#includeFunc forcesIncompressible(name=forcesFlap, patches=("flap"),rhoInf=1.0,CofR=(0 0 0),pitchAxis=(0 1 0))
}
5 changes: 5 additions & 0 deletions perpendicular-flap/precice-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<receive-mesh name="Solid-Mesh" from="Solid" />
<write-data name="Force" mesh="Fluid-Mesh" />
<read-data name="Displacement" mesh="Fluid-Mesh" />
<watch-point mesh="Fluid-Mesh" name="Flap-Tip" coordinate="0.0;1" />
<watch-point mesh="Fluid-Mesh" name="Flap-050l" coordinate="-0.05;0.5" />
<watch-point mesh="Fluid-Mesh" name="Flap-050r" coordinate="0.05;0.5" />
<mapping:rbf direction="write" from="Fluid-Mesh" to="Solid-Mesh" constraint="conservative">
<basis-function:compact-polynomial-c6 support-radius="1." />
</mapping:rbf>
Expand All @@ -40,6 +43,8 @@
<write-data name="Displacement" mesh="Solid-Mesh" />
<read-data name="Force" mesh="Solid-Mesh" />
<watch-point mesh="Solid-Mesh" name="Flap-Tip" coordinate="0.0;1" />
<watch-point mesh="Solid-Mesh" name="Flap-050l" coordinate="-0.05;0.5" />
<watch-point mesh="Solid-Mesh" name="Flap-050r" coordinate="0.05;0.5" />
</participant>

<m2n:sockets acceptor="Fluid" connector="Solid" exchange-directory=".." />
Expand Down