Commit 15288516 authored by Andrew Heather's avatar Andrew Heather
Browse files

INT: Added wave-mangrove interaction test from IH Cantabria

parent d1ca1ff5
/*--------------------------------*- 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);
}
}
// ************************************************************************* //
/*--------------------------------*- 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;
}
}
// ************************************************************************* //
/*--------------------------------*- 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;
}
}
// ************************************************************************* //
/*--------------------------------*- 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;
}
}
// ************************************************************************* //
/*--------------------------------*- 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;
}
}
// ************************************************************************* //
/*--------------------------------*- 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;
}
}
// ************************************************************************* //
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -rf 0
cleanCase
#!/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)
/*--------------------------------*- 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 );
// ************************************************************************* //
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / 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;
// ************************************************************************* //
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
/*--------------------------------*- 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;
}
// ************************************************************************* //
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / 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;
}
// ************************************************************************* //
/*--------------------------------*- 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)
( 0.0 0.55 0.0)