diff --git a/breaking-dam-2d/fluid-openfoam/constant/dynamicMeshDict b/breaking-dam-2d/fluid-openfoam/constant/dynamicMeshDict index 5c7694898..7cb157e5c 100644 --- a/breaking-dam-2d/fluid-openfoam/constant/dynamicMeshDict +++ b/breaking-dam-2d/fluid-openfoam/constant/dynamicMeshDict @@ -7,6 +7,7 @@ FoamFile object dynamicMeshDict; } +/* dynamicFvMesh dynamicMotionSolverFvMesh; motionSolverLibs ("libfvMotionSolvers.so"); @@ -16,3 +17,15 @@ solver displacementLaplacian; displacementLaplacianCoeffs { diffusivity quadratic inverseDistance (flap); } +*/ +mover +{ + type motionSolver; + + libs ("libfvMotionSolvers.so"); + + motionSolver displacementLaplacian; + + diffusivity quadratic inverseDistance (flap); +} + diff --git a/breaking-dam-2d/fluid-openfoam/constant/turbulenceProperties b/breaking-dam-2d/fluid-openfoam/constant/momentumTransport similarity index 100% rename from breaking-dam-2d/fluid-openfoam/constant/turbulenceProperties rename to breaking-dam-2d/fluid-openfoam/constant/momentumTransport diff --git a/breaking-dam-2d/fluid-openfoam/constant/phaseProperties b/breaking-dam-2d/fluid-openfoam/constant/phaseProperties new file mode 100644 index 000000000..30808ebc8 --- /dev/null +++ b/breaking-dam-2d/fluid-openfoam/constant/phaseProperties @@ -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; + + +// ************************************************************************* // diff --git a/breaking-dam-2d/fluid-openfoam/constant/physicalProperties.air b/breaking-dam-2d/fluid-openfoam/constant/physicalProperties.air new file mode 100644 index 000000000..51b167c5b --- /dev/null +++ b/breaking-dam-2d/fluid-openfoam/constant/physicalProperties.air @@ -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; + + +// ************************************************************************* // diff --git a/breaking-dam-2d/fluid-openfoam/constant/physicalProperties.water b/breaking-dam-2d/fluid-openfoam/constant/physicalProperties.water new file mode 100644 index 000000000..99f0b75be --- /dev/null +++ b/breaking-dam-2d/fluid-openfoam/constant/physicalProperties.water @@ -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; + + +// ************************************************************************* // diff --git a/breaking-dam-2d/fluid-openfoam/system/controlDict b/breaking-dam-2d/fluid-openfoam/system/controlDict index b67cfc2f7..669c2b9a6 100644 --- a/breaking-dam-2d/fluid-openfoam/system/controlDict +++ b/breaking-dam-2d/fluid-openfoam/system/controlDict @@ -7,7 +7,9 @@ FoamFile object controlDict; } -application interFoam; +application foamRun; + +solver incompressibleVoF; startFrom startTime; diff --git a/breaking-dam-2d/fluid-openfoam/system/fvSchemes b/breaking-dam-2d/fluid-openfoam/system/fvSchemes index 9970c16da..47ed551e4 100644 --- a/breaking-dam-2d/fluid-openfoam/system/fvSchemes +++ b/breaking-dam-2d/fluid-openfoam/system/fvSchemes @@ -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; diff --git a/breaking-dam-2d/fluid-openfoam/system/fvSolution b/breaking-dam-2d/fluid-openfoam/system/fvSolution index f77d417ab..d8aa341f4 100644 --- a/breaking-dam-2d/fluid-openfoam/system/fvSolution +++ b/breaking-dam-2d/fluid-openfoam/system/fvSolution @@ -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; diff --git a/breaking-dam-2d/precice-config.xml b/breaking-dam-2d/precice-config.xml index 54160ce3c..f583cb22d 100644 --- a/breaking-dam-2d/precice-config.xml +++ b/breaking-dam-2d/precice-config.xml @@ -27,6 +27,7 @@ + + diff --git a/flow-over-heated-plate-two-meshes/fluid-openfoam/system/controlDict b/flow-over-heated-plate-two-meshes/fluid-openfoam/system/controlDict index 09c265ac1..a6cb852f9 100644 --- a/flow-over-heated-plate-two-meshes/fluid-openfoam/system/controlDict +++ b/flow-over-heated-plate-two-meshes/fluid-openfoam/system/controlDict @@ -6,7 +6,9 @@ FoamFile object controlDict; } -application buoyantPimpleFoam; +application foamRun; + +solver fluid; // buoyantPimpleFoam; startFrom startTime; diff --git a/partitioned-backwards-facing-step/fluid1-openfoam/0/U b/partitioned-backwards-facing-step/fluid1-openfoam/0/U index 9fb32bfd3..5e651a4f0 100644 --- a/partitioned-backwards-facing-step/fluid1-openfoam/0/U +++ b/partitioned-backwards-facing-step/fluid1-openfoam/0/U @@ -28,6 +28,7 @@ boundaryField { type coupledVelocity; refValue uniform (0 0 0); + phi phi; } frontAndBack diff --git a/partitioned-backwards-facing-step/fluid1-openfoam/0/p b/partitioned-backwards-facing-step/fluid1-openfoam/0/p index abaa9dcae..df35a924b 100644 --- a/partitioned-backwards-facing-step/fluid1-openfoam/0/p +++ b/partitioned-backwards-facing-step/fluid1-openfoam/0/p @@ -25,6 +25,8 @@ boundaryField { type coupledPressure; refValue uniform 0; + phi phi; + U U; } frontAndBack diff --git a/partitioned-backwards-facing-step/fluid1-openfoam/system/controlDict b/partitioned-backwards-facing-step/fluid1-openfoam/system/controlDict index e9ab930b2..9226a4aaa 100644 --- a/partitioned-backwards-facing-step/fluid1-openfoam/system/controlDict +++ b/partitioned-backwards-facing-step/fluid1-openfoam/system/controlDict @@ -6,7 +6,9 @@ FoamFile object controlDict; } -application pimpleFoam; +application foamRun; + +solver incompressibleFluid; // pimpleFoam; startFrom startTime; diff --git a/partitioned-backwards-facing-step/fluid2-openfoam/0/U b/partitioned-backwards-facing-step/fluid2-openfoam/0/U index 6a851a314..2eeac19a7 100644 --- a/partitioned-backwards-facing-step/fluid2-openfoam/0/U +++ b/partitioned-backwards-facing-step/fluid2-openfoam/0/U @@ -22,6 +22,7 @@ boundaryField { type coupledVelocity; refValue uniform (0 0 0); + phi phi; } outlet diff --git a/partitioned-backwards-facing-step/fluid2-openfoam/0/p b/partitioned-backwards-facing-step/fluid2-openfoam/0/p index ea4a11441..a9ff2d2db 100644 --- a/partitioned-backwards-facing-step/fluid2-openfoam/0/p +++ b/partitioned-backwards-facing-step/fluid2-openfoam/0/p @@ -20,6 +20,8 @@ boundaryField { type coupledPressure; refValue uniform 0; + phi phi; + U U; } outlet diff --git a/partitioned-backwards-facing-step/fluid2-openfoam/system/controlDict b/partitioned-backwards-facing-step/fluid2-openfoam/system/controlDict index e9ab930b2..59718f24d 100644 --- a/partitioned-backwards-facing-step/fluid2-openfoam/system/controlDict +++ b/partitioned-backwards-facing-step/fluid2-openfoam/system/controlDict @@ -6,7 +6,9 @@ FoamFile object controlDict; } -application pimpleFoam; +application foamRun; + +solver incompressibleFluid; // pimpleFoam; startFrom startTime; diff --git a/perpendicular-flap/fluid-openfoam/constant/dynamicMeshDict b/perpendicular-flap/fluid-openfoam/constant/dynamicMeshDict index 2a3c1a2ae..6214ce1ac 100644 --- a/perpendicular-flap/fluid-openfoam/constant/dynamicMeshDict +++ b/perpendicular-flap/fluid-openfoam/constant/dynamicMeshDict @@ -6,6 +6,7 @@ FoamFile object dynamicMeshDict; } +/* dynamicFvMesh dynamicMotionSolverFvMesh; motionSolverLibs ("libfvMotionSolvers.so"); @@ -16,3 +17,16 @@ solver displacementLaplacian; displacementLaplacianCoeffs { diffusivity quadratic inverseDistance (flap); } +*/ + +mover +{ + type motionSolver; + + libs ("libfvMotionSolvers.so"); + + motionSolver displacementLaplacian; + + diffusivity quadratic inverseDistance (flap); +} + diff --git a/perpendicular-flap/fluid-openfoam/system/controlDict b/perpendicular-flap/fluid-openfoam/system/controlDict index edb9d6e29..eaf4b9537 100644 --- a/perpendicular-flap/fluid-openfoam/system/controlDict +++ b/perpendicular-flap/fluid-openfoam/system/controlDict @@ -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; @@ -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)) } diff --git a/perpendicular-flap/precice-config.xml b/perpendicular-flap/precice-config.xml index 5899b0133..e8b58ecc9 100644 --- a/perpendicular-flap/precice-config.xml +++ b/perpendicular-flap/precice-config.xml @@ -27,6 +27,9 @@ + + + @@ -40,6 +43,8 @@ + +