Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
15288516
Commit
15288516
authored
Jun 14, 2018
by
Andrew Heather
Browse files
INT: Added wave-mangrove interaction test from IH Cantabria
parent
d1ca1ff5
Changes
21
Hide whitespace changes
Inline
Side-by-side
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/0.orig/U
0 → 100644
View file @
15288516
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
left
{
type waveVelocity;
value uniform (0 0 0);
}
right
{
type waveVelocity;
value uniform (0 0 0);
}
sides
{
type slip;
}
ground
{
type noSlip;
}
top
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
}
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/0.orig/alpha.water
0 → 100644
View file @
15288516
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
boundaryField
{
left
{
type waveAlpha;
value uniform 0;
}
right
{
type zeroGradient;
}
ground
{
type zeroGradient;
}
sides
{
type zeroGradient;
}
top
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
}
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/0.orig/epsilon
0 → 100644
View file @
15288516
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.0001;
boundaryField
{
left
{
type zeroGradient;
}
right
{
type zeroGradient;
}
sides
{
type slip;
}
top
{
type inletOutlet;
inletValue uniform 0.0001;
value uniform 0.0001;
}
ground
{
type epsilonWallFunction;
value uniform 0.0001;
}
}
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/0.orig/k
0 → 100644
View file @
15288516
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.001;
boundaryField
{
left
{
type zeroGradient;
}
right
{
type zeroGradient;
}
sides
{
type slip;
}
top
{
type inletOutlet;
inletValue uniform 0.001;
value uniform 0.001;
}
ground
{
type kqRWallFunction;
value uniform 0.001;
}
}
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/0.orig/nut
0 → 100644
View file @
15288516
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
left
{
type calculated;
value uniform 0;
}
right
{
type calculated;
value uniform 0;
}
sides
{
type slip;
}
top
{
type calculated;
value uniform 0;
}
ground
{
type nutkWallFunction;
value uniform 0;
}
}
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/0.orig/p_rgh
0 → 100644
View file @
15288516
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
left
{
type fixedFluxPressure;
value uniform 0;
}
right
{
type fixedFluxPressure;
value uniform 0;
}
ground
{
type fixedFluxPressure;
value uniform 0;
}
sides
{
type slip;
}
top
{
type totalPressure;
U U;
phi rhoPhi;
rho rho;
psi none;
gamma 1;
p0 uniform 0;
value uniform 0;
}
}
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/Allclean
0 → 100755
View file @
15288516
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
# Source tutorial run functions
.
$WM_PROJECT_DIR
/bin/tools/CleanFunctions
rm
-rf
0
cleanCase
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/Allrun
0 → 100755
View file @
15288516
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
# Source tutorial run functions
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
restore0Dir
runApplication blockMesh
runApplication setFields
runApplication topoSet
runApplication decomposePar
runParallel
$(
getApplication
)
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/constant/g
0 → 100644
View file @
15288516
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0];
value ( 0 0 -9.81 );
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/constant/transportProperties
0 → 100644
View file @
15288516
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
}
sigma [1 0 -2 0 0 0 0] 0.07;
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/constant/triSurface/seaweed.stl
0 → 100644
View file @
15288516
solid C
facet normal 0.0 1.0 0.0
outer loop
vertex 4.065 0.5475 0.25
vertex 5.7 0.5475 0.0
vertex 4.065 0.5475 0.0
endloop
endfacet
facet normal 0.0 1.0 0.0
outer loop
vertex 5.7 0.5475 0.0
vertex 4.065 0.5475 0.25
vertex 5.7 0.5475 0.25
endloop
endfacet
facet normal 1.0 0.0 0.0
outer loop
vertex 5.7 0.5475 0.0
vertex 5.7 0.0025 0.25
vertex 5.7 0.0025 0.0
endloop
endfacet
facet normal 1.0 0.0 0.0
outer loop
vertex 5.7 0.0025 0.25
vertex 5.7 0.5475 0.0
vertex 5.7 0.5475 0.25
endloop
endfacet
facet normal 1.63851263511957e-017 -1.0 0.0
outer loop
vertex 5.7 0.0025 0.25
vertex 4.065 0.00249999999999997 0.0
vertex 5.7 0.0025 0.0
endloop
endfacet
facet normal 1.63851263511957e-017 -1.0 0.0
outer loop
vertex 4.065 0.00249999999999997 0.0
vertex 5.7 0.0025 0.25
vertex 4.065 0.00249999999999997 0.25
endloop
endfacet
facet normal 0.0 0.0 -1.0
outer loop
vertex 5.7 0.5475 0.0
vertex 4.065 0.00249999999999997 0.0
vertex 4.065 0.5475 0.0
endloop
endfacet
facet normal 0.0 0.0 -1.0
outer loop
vertex 4.065 0.00249999999999997 0.0
vertex 5.7 0.5475 0.0
vertex 5.7 0.0025 0.0
endloop
endfacet
facet normal 0.0 0.0 1.0
outer loop
vertex 5.7 0.0025 0.25
vertex 4.065 0.5475 0.25
vertex 4.065 0.00249999999999997 0.25
endloop
endfacet
facet normal 0.0 0.0 1.0
outer loop
vertex 4.065 0.5475 0.25
vertex 5.7 0.0025 0.25
vertex 5.7 0.5475 0.25
endloop
endfacet
facet normal -1.0 0.0 0.0
outer loop
vertex 4.065 0.5475 0.25
vertex 4.065 0.00249999999999997 0.0
vertex 4.065 0.00249999999999997 0.25
endloop
endfacet
facet normal -1.0 0.0 0.0
outer loop
vertex 4.065 0.00249999999999997 0.0
vertex 4.065 0.5475 0.25
vertex 4.065 0.5475 0.0
endloop
endfacet
endsolid C
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/constant/turbulenceProperties
0 → 100644
View file @
15288516
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/constant/waveProperties
0 → 100644
View file @
15288516
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object wavesProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
left
{
alpha alpha.water;
waveModel Boussinesq;
nPaddle 1;
waveHeight 0.05;
waveAngle 0.0;
activeAbsorption yes;
}
right
{
alpha alpha.water;
waveModel shallowWaterAbsorption;
nPaddle 1;
}
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveMangroveInteraction/system/blockMeshDict
0 → 100644
View file @
15288516
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 1;
vertices
(
( 0.0 0.0 0.0)
( 7.0 0.0 0.0)
( 7.0 0.55 0.0)