Upload folder using huggingface_hub (part 18)
Browse files- raw/stokes_wave/t04/9.6/alpha.water +0 -0
- raw/stokes_wave/t04/9.6/alphaPhi0.water +0 -0
- raw/stokes_wave/t04/9.6/p +0 -0
- raw/stokes_wave/t04/9.6/p_rgh +0 -0
- raw/stokes_wave/t04/9.6/phi +0 -0
- raw/stokes_wave/t04/9.6/uniform/cumulativeContErr +23 -0
- raw/stokes_wave/t04/9.6/uniform/functionObjects/functionObjectProperties +20 -0
- raw/stokes_wave/t04/9.6/uniform/time +29 -0
- raw/stokes_wave/t04/9.6/uniform/waveProperties.inlet +37 -0
- raw/stokes_wave/t04/9.6/uniform/waveProperties.outlet +27 -0
- raw/stokes_wave/t04/Allclean +7 -0
- raw/stokes_wave/t04/Allrun +15 -0
- raw/stokes_wave/t04/constant/g +22 -0
- raw/stokes_wave/t04/constant/polyMesh/boundary +54 -0
- raw/stokes_wave/t04/constant/polyMesh/faces +0 -0
- raw/stokes_wave/t04/constant/polyMesh/neighbour +0 -0
- raw/stokes_wave/t04/constant/polyMesh/owner +0 -0
- raw/stokes_wave/t04/constant/polyMesh/points +0 -0
- raw/stokes_wave/t04/constant/transportProperties +37 -0
- raw/stokes_wave/t04/constant/turbulenceProperties +20 -0
- raw/stokes_wave/t04/constant/waveProperties +47 -0
- raw/stokes_wave/t04/system/blockMeshDict +89 -0
- raw/stokes_wave/t04/system/controlDict +59 -0
- raw/stokes_wave/t04/system/decomposeParDict +27 -0
- raw/stokes_wave/t04/system/fvSchemes +53 -0
- raw/stokes_wave/t04/system/fvSolution +77 -0
- raw/stokes_wave/t04/system/setFieldsDict +36 -0
- raw/stokes_wave/t05/0/U +54 -0
- raw/stokes_wave/t05/0/U.template +54 -0
- raw/stokes_wave/t05/0/alpha.water +0 -0
- raw/stokes_wave/t05/0/alpha.water.template +52 -0
- raw/stokes_wave/t05/0/p_rgh +54 -0
- raw/stokes_wave/t05/Allclean +7 -0
- raw/stokes_wave/t05/Allrun +15 -0
- raw/stokes_wave/t05/constant/g +22 -0
- raw/stokes_wave/t05/constant/polyMesh/boundary +54 -0
- raw/stokes_wave/t05/constant/polyMesh/faces +0 -0
- raw/stokes_wave/t05/constant/polyMesh/neighbour +0 -0
- raw/stokes_wave/t05/constant/polyMesh/owner +0 -0
- raw/stokes_wave/t05/constant/polyMesh/points +0 -0
- raw/stokes_wave/t05/constant/transportProperties +37 -0
- raw/stokes_wave/t05/constant/turbulenceProperties +20 -0
- raw/stokes_wave/t05/constant/waveProperties +47 -0
- raw/stokes_wave/t05/system/blockMeshDict +89 -0
- raw/stokes_wave/t05/system/controlDict +59 -0
- raw/stokes_wave/t05/system/decomposeParDict +27 -0
- raw/stokes_wave/t05/system/fvSchemes +53 -0
- raw/stokes_wave/t05/system/fvSolution +77 -0
- raw/stokes_wave/t05/system/setFieldsDict +36 -0
- raw/stokes_wave/t06/0/U +54 -0
raw/stokes_wave/t04/9.6/alpha.water
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t04/9.6/alphaPhi0.water
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t04/9.6/p
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t04/9.6/p_rgh
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t04/9.6/phi
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t04/9.6/uniform/cumulativeContErr
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class uniformDimensionedScalarField;
|
| 13 |
+
location "9.6/uniform";
|
| 14 |
+
object cumulativeContErr;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
dimensions [0 0 0 0 0 0 0];
|
| 19 |
+
value -0.00153579;
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/9.6/uniform/functionObjects/functionObjectProperties
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "9.6/uniform/functionObjects";
|
| 14 |
+
object functionObjectProperties;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/9.6/uniform/time
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "9.6/uniform";
|
| 14 |
+
object time;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
value 9.60000000000000142;
|
| 19 |
+
|
| 20 |
+
name "9.6";
|
| 21 |
+
|
| 22 |
+
index 1420;
|
| 23 |
+
|
| 24 |
+
deltaT 0.00406728;
|
| 25 |
+
|
| 26 |
+
deltaT0 0.00406728;
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/9.6/uniform/waveProperties.inlet
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class StokesV;
|
| 13 |
+
location "9.6/uniform";
|
| 14 |
+
object waveProperties.inlet;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
alpha alpha.water;
|
| 19 |
+
|
| 20 |
+
waveModel StokesV;
|
| 21 |
+
|
| 22 |
+
nPaddle 1;
|
| 23 |
+
|
| 24 |
+
waveHeight 0.132055;
|
| 25 |
+
|
| 26 |
+
waveAngle 0;
|
| 27 |
+
|
| 28 |
+
rampTime 4;
|
| 29 |
+
|
| 30 |
+
activeAbsorption yes;
|
| 31 |
+
|
| 32 |
+
wavePeriod 2.39438;
|
| 33 |
+
|
| 34 |
+
waterDepthRef 0.45;
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/9.6/uniform/waveProperties.outlet
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class shallowWaterAbsorption;
|
| 13 |
+
location "9.6/uniform";
|
| 14 |
+
object waveProperties.outlet;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
alpha alpha.water;
|
| 19 |
+
|
| 20 |
+
waveModel shallowWaterAbsorption;
|
| 21 |
+
|
| 22 |
+
nPaddle 1;
|
| 23 |
+
|
| 24 |
+
waterDepthRef 0.45;
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/Allclean
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
cd ${0%/*} || exit 1 # Run from this directory
|
| 3 |
+
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
|
| 4 |
+
|
| 5 |
+
cleanCase0
|
| 6 |
+
|
| 7 |
+
#------------------------------------------------------------------------------
|
raw/stokes_wave/t04/Allrun
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
cd ${0%/*} || exit 1 # Run from this directory
|
| 3 |
+
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
| 4 |
+
|
| 5 |
+
restore0Dir
|
| 6 |
+
|
| 7 |
+
runApplication blockMesh
|
| 8 |
+
|
| 9 |
+
runApplication decomposePar
|
| 10 |
+
|
| 11 |
+
runParallel setFields
|
| 12 |
+
|
| 13 |
+
runParallel $(getApplication)
|
| 14 |
+
|
| 15 |
+
#------------------------------------------------------------------------------
|
raw/stokes_wave/t04/constant/g
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class uniformDimensionedVectorField;
|
| 13 |
+
location "constant";
|
| 14 |
+
object g;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
dimensions [0 1 -2 0 0 0 0];
|
| 19 |
+
value ( 0 0 -9.81 );
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/constant/polyMesh/boundary
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class polyBoundaryMesh;
|
| 13 |
+
location "constant/polyMesh";
|
| 14 |
+
object boundary;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
5
|
| 19 |
+
(
|
| 20 |
+
inlet
|
| 21 |
+
{
|
| 22 |
+
type patch;
|
| 23 |
+
nFaces 70;
|
| 24 |
+
startFace 104180;
|
| 25 |
+
}
|
| 26 |
+
outlet
|
| 27 |
+
{
|
| 28 |
+
type patch;
|
| 29 |
+
nFaces 70;
|
| 30 |
+
startFace 104250;
|
| 31 |
+
}
|
| 32 |
+
ground
|
| 33 |
+
{
|
| 34 |
+
type wall;
|
| 35 |
+
inGroups 1(wall);
|
| 36 |
+
nFaces 750;
|
| 37 |
+
startFace 104320;
|
| 38 |
+
}
|
| 39 |
+
top
|
| 40 |
+
{
|
| 41 |
+
type patch;
|
| 42 |
+
nFaces 750;
|
| 43 |
+
startFace 105070;
|
| 44 |
+
}
|
| 45 |
+
sides
|
| 46 |
+
{
|
| 47 |
+
type empty;
|
| 48 |
+
inGroups 1(empty);
|
| 49 |
+
nFaces 105000;
|
| 50 |
+
startFace 105820;
|
| 51 |
+
}
|
| 52 |
+
)
|
| 53 |
+
|
| 54 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/constant/polyMesh/faces
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t04/constant/polyMesh/neighbour
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t04/constant/polyMesh/owner
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t04/constant/polyMesh/points
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t04/constant/transportProperties
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "constant";
|
| 14 |
+
object transportProperties;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
phases (water air);
|
| 19 |
+
|
| 20 |
+
water
|
| 21 |
+
{
|
| 22 |
+
transportModel Newtonian;
|
| 23 |
+
nu 1e-06;
|
| 24 |
+
rho 1000;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
air
|
| 28 |
+
{
|
| 29 |
+
transportModel Newtonian;
|
| 30 |
+
nu 1.48e-05;
|
| 31 |
+
rho 1;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
sigma 0.07;
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/constant/turbulenceProperties
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "constant";
|
| 14 |
+
object turbulenceProperties;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
simulationType laminar;
|
| 19 |
+
|
| 20 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/constant/waveProperties
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "constant";
|
| 14 |
+
object waveProperties;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
inlet
|
| 19 |
+
{
|
| 20 |
+
alpha alpha.water;
|
| 21 |
+
|
| 22 |
+
waveModel StokesV;
|
| 23 |
+
|
| 24 |
+
nPaddle 1;
|
| 25 |
+
|
| 26 |
+
waveHeight 0.1320547237118064;
|
| 27 |
+
|
| 28 |
+
waveAngle 0.0;
|
| 29 |
+
|
| 30 |
+
rampTime 4.0;
|
| 31 |
+
|
| 32 |
+
activeAbsorption yes;
|
| 33 |
+
|
| 34 |
+
wavePeriod 2.3943805819222503;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
outlet
|
| 38 |
+
{
|
| 39 |
+
alpha alpha.water;
|
| 40 |
+
|
| 41 |
+
waveModel shallowWaterAbsorption;
|
| 42 |
+
|
| 43 |
+
nPaddle 1;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/system/blockMeshDict
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
object blockMeshDict;
|
| 14 |
+
}
|
| 15 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 16 |
+
|
| 17 |
+
scale 1;
|
| 18 |
+
|
| 19 |
+
vertices
|
| 20 |
+
(
|
| 21 |
+
( 0.0 0.0 0.0)
|
| 22 |
+
( 30.0 0.0 0.0)
|
| 23 |
+
( 30.0 0.04 0.0)
|
| 24 |
+
( 0.0 0.04 0.0)
|
| 25 |
+
( 0.0 0.0 0.7)
|
| 26 |
+
( 30.0 0.0 0.7)
|
| 27 |
+
( 30.0 0.04 0.7)
|
| 28 |
+
( 0.0 0.04 0.7)
|
| 29 |
+
);
|
| 30 |
+
|
| 31 |
+
blocks
|
| 32 |
+
(
|
| 33 |
+
hex (0 1 2 3 4 5 6 7) (750 1 70) simpleGrading (1 1 1)
|
| 34 |
+
);
|
| 35 |
+
|
| 36 |
+
edges
|
| 37 |
+
(
|
| 38 |
+
);
|
| 39 |
+
|
| 40 |
+
boundary
|
| 41 |
+
(
|
| 42 |
+
inlet
|
| 43 |
+
{
|
| 44 |
+
type patch;
|
| 45 |
+
faces
|
| 46 |
+
(
|
| 47 |
+
(0 4 7 3)
|
| 48 |
+
);
|
| 49 |
+
}
|
| 50 |
+
outlet
|
| 51 |
+
{
|
| 52 |
+
type patch;
|
| 53 |
+
faces
|
| 54 |
+
(
|
| 55 |
+
(1 5 6 2)
|
| 56 |
+
);
|
| 57 |
+
}
|
| 58 |
+
ground
|
| 59 |
+
{
|
| 60 |
+
type wall;
|
| 61 |
+
faces
|
| 62 |
+
(
|
| 63 |
+
(0 1 2 3)
|
| 64 |
+
);
|
| 65 |
+
}
|
| 66 |
+
top
|
| 67 |
+
{
|
| 68 |
+
type patch;
|
| 69 |
+
faces
|
| 70 |
+
(
|
| 71 |
+
(4 5 6 7)
|
| 72 |
+
);
|
| 73 |
+
}
|
| 74 |
+
sides
|
| 75 |
+
{
|
| 76 |
+
type empty;
|
| 77 |
+
faces
|
| 78 |
+
(
|
| 79 |
+
(0 1 5 4)
|
| 80 |
+
(3 2 6 7)
|
| 81 |
+
);
|
| 82 |
+
}
|
| 83 |
+
);
|
| 84 |
+
|
| 85 |
+
mergePatchPairs
|
| 86 |
+
(
|
| 87 |
+
);
|
| 88 |
+
|
| 89 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/system/controlDict
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "system";
|
| 14 |
+
object controlDict;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
application interFoam;
|
| 19 |
+
|
| 20 |
+
startFrom startTime;
|
| 21 |
+
|
| 22 |
+
startTime 0;
|
| 23 |
+
|
| 24 |
+
stopAt endTime;
|
| 25 |
+
|
| 26 |
+
endTime 20.0;
|
| 27 |
+
|
| 28 |
+
deltaT 0.01;
|
| 29 |
+
|
| 30 |
+
writeControl adjustableRunTime;
|
| 31 |
+
|
| 32 |
+
writeInterval 0.8; // endTime/25 → 25 帧
|
| 33 |
+
|
| 34 |
+
purgeWrite 0;
|
| 35 |
+
|
| 36 |
+
writeFormat ascii;
|
| 37 |
+
|
| 38 |
+
writePrecision 6;
|
| 39 |
+
|
| 40 |
+
writeCompression off;
|
| 41 |
+
|
| 42 |
+
timeFormat general;
|
| 43 |
+
|
| 44 |
+
timePrecision 6;
|
| 45 |
+
|
| 46 |
+
runTimeModifiable yes;
|
| 47 |
+
|
| 48 |
+
adjustTimeStep on;
|
| 49 |
+
|
| 50 |
+
maxCo 0.65;
|
| 51 |
+
|
| 52 |
+
maxAlphaCo 0.65;
|
| 53 |
+
|
| 54 |
+
maxDeltaT 0.05;
|
| 55 |
+
|
| 56 |
+
functions {};
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/system/decomposeParDict
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
object decomposeParDict;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
numberOfSubdomains 16;
|
| 19 |
+
|
| 20 |
+
method hierarchical;
|
| 21 |
+
|
| 22 |
+
coeffs
|
| 23 |
+
{
|
| 24 |
+
n (4 4 1);
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/system/fvSchemes
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 3 |
+
| ========= | |
|
| 4 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 5 |
+
| \\ / O peration | Version: v1906 |
|
| 6 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 7 |
+
| \\/ M anipulation | |
|
| 8 |
+
\*---------------------------------------------------------------------------*/
|
| 9 |
+
FoamFile
|
| 10 |
+
{
|
| 11 |
+
version 2.0;
|
| 12 |
+
format ascii;
|
| 13 |
+
class dictionary;
|
| 14 |
+
location "system";
|
| 15 |
+
object fvSchemes;
|
| 16 |
+
}
|
| 17 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 18 |
+
|
| 19 |
+
ddtSchemes
|
| 20 |
+
{
|
| 21 |
+
default Euler;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
gradSchemes
|
| 25 |
+
{
|
| 26 |
+
default Gauss linear;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
divSchemes
|
| 30 |
+
{
|
| 31 |
+
div(rhoPhi,U) Gauss linearUpwind grad(U);
|
| 32 |
+
div(phi,alpha) Gauss vanLeer;
|
| 33 |
+
div(phirb,alpha) Gauss linear;
|
| 34 |
+
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
laplacianSchemes
|
| 38 |
+
{
|
| 39 |
+
default Gauss linear orthogonal;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
interpolationSchemes
|
| 43 |
+
{
|
| 44 |
+
default linear;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
snGradSchemes
|
| 48 |
+
{
|
| 49 |
+
default orthogonal;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/system/fvSolution
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 3 |
+
| ========= | |
|
| 4 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 5 |
+
| \\ / O peration | Version: v1906 |
|
| 6 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 7 |
+
| \\/ M anipulation | |
|
| 8 |
+
\*---------------------------------------------------------------------------*/
|
| 9 |
+
FoamFile
|
| 10 |
+
{
|
| 11 |
+
version 2.0;
|
| 12 |
+
format ascii;
|
| 13 |
+
class dictionary;
|
| 14 |
+
location "system";
|
| 15 |
+
object fvSolution;
|
| 16 |
+
}
|
| 17 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 18 |
+
|
| 19 |
+
solvers
|
| 20 |
+
{
|
| 21 |
+
"alpha.water.*"
|
| 22 |
+
{
|
| 23 |
+
nAlphaCorr 1;
|
| 24 |
+
nAlphaSubCycles 3;
|
| 25 |
+
cAlpha 1;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
"pcorr.*"
|
| 29 |
+
{
|
| 30 |
+
solver PCG;
|
| 31 |
+
preconditioner DIC;
|
| 32 |
+
tolerance 1e-6;
|
| 33 |
+
relTol 0;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
p_rgh
|
| 37 |
+
{
|
| 38 |
+
solver PCG;
|
| 39 |
+
preconditioner DIC;
|
| 40 |
+
tolerance 1e-6;
|
| 41 |
+
relTol 0.1;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
p_rghFinal
|
| 45 |
+
{
|
| 46 |
+
solver GAMG;
|
| 47 |
+
smoother DIC;
|
| 48 |
+
tolerance 1e-7;
|
| 49 |
+
relTol 0;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
U
|
| 53 |
+
{
|
| 54 |
+
solver PBiCG;
|
| 55 |
+
preconditioner DILU;
|
| 56 |
+
tolerance 1e-6;
|
| 57 |
+
relTol 0.1;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
UFinal
|
| 61 |
+
{
|
| 62 |
+
solver PBiCG;
|
| 63 |
+
preconditioner DILU;
|
| 64 |
+
tolerance 1e-6;
|
| 65 |
+
relTol 0;
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
PIMPLE
|
| 70 |
+
{
|
| 71 |
+
momentumPredictor no;
|
| 72 |
+
nCorrectors 2;
|
| 73 |
+
nNonOrthogonalCorrectors 0;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
// ************************************************************************* //
|
raw/stokes_wave/t04/system/setFieldsDict
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "system";
|
| 14 |
+
object setFieldsDict;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
defaultFieldValues
|
| 19 |
+
(
|
| 20 |
+
volScalarFieldValue alpha.water 0
|
| 21 |
+
);
|
| 22 |
+
|
| 23 |
+
regions
|
| 24 |
+
(
|
| 25 |
+
boxToCell
|
| 26 |
+
{
|
| 27 |
+
box (0 0 0) (30.0 1.0 0.4542263432046907);
|
| 28 |
+
fieldValues
|
| 29 |
+
(
|
| 30 |
+
volScalarFieldValue alpha.water 1
|
| 31 |
+
);
|
| 32 |
+
}
|
| 33 |
+
);
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/0/U
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class volVectorField;
|
| 13 |
+
location "0";
|
| 14 |
+
object U;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
dimensions [0 1 -1 0 0 0 0];
|
| 19 |
+
|
| 20 |
+
internalField uniform (0 0 0);
|
| 21 |
+
|
| 22 |
+
boundaryField
|
| 23 |
+
{
|
| 24 |
+
inlet
|
| 25 |
+
{
|
| 26 |
+
type waveVelocity;
|
| 27 |
+
value uniform (0 0 0);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
outlet
|
| 31 |
+
{
|
| 32 |
+
type waveVelocity;
|
| 33 |
+
value uniform (0 0 0);
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
sides
|
| 37 |
+
{
|
| 38 |
+
type empty;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
ground
|
| 42 |
+
{
|
| 43 |
+
type fixedValue;
|
| 44 |
+
value uniform (0 0 0);
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
top
|
| 48 |
+
{
|
| 49 |
+
type pressureInletOutletVelocity;
|
| 50 |
+
value uniform (0 0 0);
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/0/U.template
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class volVectorField;
|
| 13 |
+
location "0";
|
| 14 |
+
object U;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
dimensions [0 1 -1 0 0 0 0];
|
| 19 |
+
|
| 20 |
+
internalField uniform (0 0 0);
|
| 21 |
+
|
| 22 |
+
boundaryField
|
| 23 |
+
{
|
| 24 |
+
inlet
|
| 25 |
+
{
|
| 26 |
+
type waveVelocity;
|
| 27 |
+
value uniform (0 0 0);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
outlet
|
| 31 |
+
{
|
| 32 |
+
type waveVelocity;
|
| 33 |
+
value uniform (0 0 0);
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
sides
|
| 37 |
+
{
|
| 38 |
+
type empty;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
ground
|
| 42 |
+
{
|
| 43 |
+
type fixedValue;
|
| 44 |
+
value uniform (0 0 0);
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
top
|
| 48 |
+
{
|
| 49 |
+
type pressureInletOutletVelocity;
|
| 50 |
+
value uniform (0 0 0);
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/0/alpha.water
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t05/0/alpha.water.template
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class volScalarField;
|
| 13 |
+
object alpha.water;
|
| 14 |
+
}
|
| 15 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 16 |
+
|
| 17 |
+
dimensions [0 0 0 0 0 0 0];
|
| 18 |
+
|
| 19 |
+
internalField uniform 0;
|
| 20 |
+
|
| 21 |
+
boundaryField
|
| 22 |
+
{
|
| 23 |
+
inlet
|
| 24 |
+
{
|
| 25 |
+
type waveAlpha;
|
| 26 |
+
value uniform 0;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
outlet
|
| 30 |
+
{
|
| 31 |
+
type zeroGradient;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
ground
|
| 35 |
+
{
|
| 36 |
+
type zeroGradient;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
sides
|
| 40 |
+
{
|
| 41 |
+
type empty;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
top
|
| 45 |
+
{
|
| 46 |
+
type inletOutlet;
|
| 47 |
+
inletValue uniform 0;
|
| 48 |
+
value uniform 0;
|
| 49 |
+
}
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/0/p_rgh
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class volScalarField;
|
| 13 |
+
object p_rgh;
|
| 14 |
+
}
|
| 15 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 16 |
+
|
| 17 |
+
dimensions [1 -1 -2 0 0 0 0];
|
| 18 |
+
|
| 19 |
+
internalField uniform 0;
|
| 20 |
+
|
| 21 |
+
boundaryField
|
| 22 |
+
{
|
| 23 |
+
inlet
|
| 24 |
+
{
|
| 25 |
+
type fixedFluxPressure;
|
| 26 |
+
value uniform 0;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
outlet
|
| 30 |
+
{
|
| 31 |
+
type fixedFluxPressure;
|
| 32 |
+
value uniform 0;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
ground
|
| 36 |
+
{
|
| 37 |
+
type fixedFluxPressure;
|
| 38 |
+
value uniform 0;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
sides
|
| 42 |
+
{
|
| 43 |
+
type empty;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
top
|
| 47 |
+
{
|
| 48 |
+
type totalPressure;
|
| 49 |
+
p0 uniform 0;
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/Allclean
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
cd ${0%/*} || exit 1 # Run from this directory
|
| 3 |
+
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
|
| 4 |
+
|
| 5 |
+
cleanCase0
|
| 6 |
+
|
| 7 |
+
#------------------------------------------------------------------------------
|
raw/stokes_wave/t05/Allrun
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
cd ${0%/*} || exit 1 # Run from this directory
|
| 3 |
+
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
| 4 |
+
|
| 5 |
+
restore0Dir
|
| 6 |
+
|
| 7 |
+
runApplication blockMesh
|
| 8 |
+
|
| 9 |
+
runApplication decomposePar
|
| 10 |
+
|
| 11 |
+
runParallel setFields
|
| 12 |
+
|
| 13 |
+
runParallel $(getApplication)
|
| 14 |
+
|
| 15 |
+
#------------------------------------------------------------------------------
|
raw/stokes_wave/t05/constant/g
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class uniformDimensionedVectorField;
|
| 13 |
+
location "constant";
|
| 14 |
+
object g;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
dimensions [0 1 -2 0 0 0 0];
|
| 19 |
+
value ( 0 0 -9.81 );
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/constant/polyMesh/boundary
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class polyBoundaryMesh;
|
| 13 |
+
location "constant/polyMesh";
|
| 14 |
+
object boundary;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
5
|
| 19 |
+
(
|
| 20 |
+
inlet
|
| 21 |
+
{
|
| 22 |
+
type patch;
|
| 23 |
+
nFaces 70;
|
| 24 |
+
startFace 104180;
|
| 25 |
+
}
|
| 26 |
+
outlet
|
| 27 |
+
{
|
| 28 |
+
type patch;
|
| 29 |
+
nFaces 70;
|
| 30 |
+
startFace 104250;
|
| 31 |
+
}
|
| 32 |
+
ground
|
| 33 |
+
{
|
| 34 |
+
type wall;
|
| 35 |
+
inGroups 1(wall);
|
| 36 |
+
nFaces 750;
|
| 37 |
+
startFace 104320;
|
| 38 |
+
}
|
| 39 |
+
top
|
| 40 |
+
{
|
| 41 |
+
type patch;
|
| 42 |
+
nFaces 750;
|
| 43 |
+
startFace 105070;
|
| 44 |
+
}
|
| 45 |
+
sides
|
| 46 |
+
{
|
| 47 |
+
type empty;
|
| 48 |
+
inGroups 1(empty);
|
| 49 |
+
nFaces 105000;
|
| 50 |
+
startFace 105820;
|
| 51 |
+
}
|
| 52 |
+
)
|
| 53 |
+
|
| 54 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/constant/polyMesh/faces
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t05/constant/polyMesh/neighbour
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t05/constant/polyMesh/owner
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t05/constant/polyMesh/points
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/stokes_wave/t05/constant/transportProperties
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "constant";
|
| 14 |
+
object transportProperties;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
phases (water air);
|
| 19 |
+
|
| 20 |
+
water
|
| 21 |
+
{
|
| 22 |
+
transportModel Newtonian;
|
| 23 |
+
nu 1e-06;
|
| 24 |
+
rho 1000;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
air
|
| 28 |
+
{
|
| 29 |
+
transportModel Newtonian;
|
| 30 |
+
nu 1.48e-05;
|
| 31 |
+
rho 1;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
sigma 0.07;
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/constant/turbulenceProperties
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "constant";
|
| 14 |
+
object turbulenceProperties;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
simulationType laminar;
|
| 19 |
+
|
| 20 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/constant/waveProperties
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "constant";
|
| 14 |
+
object waveProperties;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
inlet
|
| 19 |
+
{
|
| 20 |
+
alpha alpha.water;
|
| 21 |
+
|
| 22 |
+
waveModel StokesV;
|
| 23 |
+
|
| 24 |
+
nPaddle 1;
|
| 25 |
+
|
| 26 |
+
waveHeight 0.14745462706771653;
|
| 27 |
+
|
| 28 |
+
waveAngle 0.0;
|
| 29 |
+
|
| 30 |
+
rampTime 4.0;
|
| 31 |
+
|
| 32 |
+
activeAbsorption yes;
|
| 33 |
+
|
| 34 |
+
wavePeriod 1.90003494766743;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
outlet
|
| 38 |
+
{
|
| 39 |
+
alpha alpha.water;
|
| 40 |
+
|
| 41 |
+
waveModel shallowWaterAbsorption;
|
| 42 |
+
|
| 43 |
+
nPaddle 1;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/system/blockMeshDict
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
object blockMeshDict;
|
| 14 |
+
}
|
| 15 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 16 |
+
|
| 17 |
+
scale 1;
|
| 18 |
+
|
| 19 |
+
vertices
|
| 20 |
+
(
|
| 21 |
+
( 0.0 0.0 0.0)
|
| 22 |
+
( 30.0 0.0 0.0)
|
| 23 |
+
( 30.0 0.04 0.0)
|
| 24 |
+
( 0.0 0.04 0.0)
|
| 25 |
+
( 0.0 0.0 0.7)
|
| 26 |
+
( 30.0 0.0 0.7)
|
| 27 |
+
( 30.0 0.04 0.7)
|
| 28 |
+
( 0.0 0.04 0.7)
|
| 29 |
+
);
|
| 30 |
+
|
| 31 |
+
blocks
|
| 32 |
+
(
|
| 33 |
+
hex (0 1 2 3 4 5 6 7) (750 1 70) simpleGrading (1 1 1)
|
| 34 |
+
);
|
| 35 |
+
|
| 36 |
+
edges
|
| 37 |
+
(
|
| 38 |
+
);
|
| 39 |
+
|
| 40 |
+
boundary
|
| 41 |
+
(
|
| 42 |
+
inlet
|
| 43 |
+
{
|
| 44 |
+
type patch;
|
| 45 |
+
faces
|
| 46 |
+
(
|
| 47 |
+
(0 4 7 3)
|
| 48 |
+
);
|
| 49 |
+
}
|
| 50 |
+
outlet
|
| 51 |
+
{
|
| 52 |
+
type patch;
|
| 53 |
+
faces
|
| 54 |
+
(
|
| 55 |
+
(1 5 6 2)
|
| 56 |
+
);
|
| 57 |
+
}
|
| 58 |
+
ground
|
| 59 |
+
{
|
| 60 |
+
type wall;
|
| 61 |
+
faces
|
| 62 |
+
(
|
| 63 |
+
(0 1 2 3)
|
| 64 |
+
);
|
| 65 |
+
}
|
| 66 |
+
top
|
| 67 |
+
{
|
| 68 |
+
type patch;
|
| 69 |
+
faces
|
| 70 |
+
(
|
| 71 |
+
(4 5 6 7)
|
| 72 |
+
);
|
| 73 |
+
}
|
| 74 |
+
sides
|
| 75 |
+
{
|
| 76 |
+
type empty;
|
| 77 |
+
faces
|
| 78 |
+
(
|
| 79 |
+
(0 1 5 4)
|
| 80 |
+
(3 2 6 7)
|
| 81 |
+
);
|
| 82 |
+
}
|
| 83 |
+
);
|
| 84 |
+
|
| 85 |
+
mergePatchPairs
|
| 86 |
+
(
|
| 87 |
+
);
|
| 88 |
+
|
| 89 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/system/controlDict
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "system";
|
| 14 |
+
object controlDict;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
application interFoam;
|
| 19 |
+
|
| 20 |
+
startFrom startTime;
|
| 21 |
+
|
| 22 |
+
startTime 0;
|
| 23 |
+
|
| 24 |
+
stopAt endTime;
|
| 25 |
+
|
| 26 |
+
endTime 20.0;
|
| 27 |
+
|
| 28 |
+
deltaT 0.01;
|
| 29 |
+
|
| 30 |
+
writeControl adjustableRunTime;
|
| 31 |
+
|
| 32 |
+
writeInterval 0.8; // endTime/25 → 25 帧
|
| 33 |
+
|
| 34 |
+
purgeWrite 0;
|
| 35 |
+
|
| 36 |
+
writeFormat ascii;
|
| 37 |
+
|
| 38 |
+
writePrecision 6;
|
| 39 |
+
|
| 40 |
+
writeCompression off;
|
| 41 |
+
|
| 42 |
+
timeFormat general;
|
| 43 |
+
|
| 44 |
+
timePrecision 6;
|
| 45 |
+
|
| 46 |
+
runTimeModifiable yes;
|
| 47 |
+
|
| 48 |
+
adjustTimeStep on;
|
| 49 |
+
|
| 50 |
+
maxCo 0.65;
|
| 51 |
+
|
| 52 |
+
maxAlphaCo 0.65;
|
| 53 |
+
|
| 54 |
+
maxDeltaT 0.05;
|
| 55 |
+
|
| 56 |
+
functions {};
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/system/decomposeParDict
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
object decomposeParDict;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
numberOfSubdomains 16;
|
| 19 |
+
|
| 20 |
+
method hierarchical;
|
| 21 |
+
|
| 22 |
+
coeffs
|
| 23 |
+
{
|
| 24 |
+
n (4 4 1);
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/system/fvSchemes
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 3 |
+
| ========= | |
|
| 4 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 5 |
+
| \\ / O peration | Version: v1906 |
|
| 6 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 7 |
+
| \\/ M anipulation | |
|
| 8 |
+
\*---------------------------------------------------------------------------*/
|
| 9 |
+
FoamFile
|
| 10 |
+
{
|
| 11 |
+
version 2.0;
|
| 12 |
+
format ascii;
|
| 13 |
+
class dictionary;
|
| 14 |
+
location "system";
|
| 15 |
+
object fvSchemes;
|
| 16 |
+
}
|
| 17 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 18 |
+
|
| 19 |
+
ddtSchemes
|
| 20 |
+
{
|
| 21 |
+
default Euler;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
gradSchemes
|
| 25 |
+
{
|
| 26 |
+
default Gauss linear;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
divSchemes
|
| 30 |
+
{
|
| 31 |
+
div(rhoPhi,U) Gauss linearUpwind grad(U);
|
| 32 |
+
div(phi,alpha) Gauss vanLeer;
|
| 33 |
+
div(phirb,alpha) Gauss linear;
|
| 34 |
+
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
laplacianSchemes
|
| 38 |
+
{
|
| 39 |
+
default Gauss linear orthogonal;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
interpolationSchemes
|
| 43 |
+
{
|
| 44 |
+
default linear;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
snGradSchemes
|
| 48 |
+
{
|
| 49 |
+
default orthogonal;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/system/fvSolution
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 3 |
+
| ========= | |
|
| 4 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 5 |
+
| \\ / O peration | Version: v1906 |
|
| 6 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 7 |
+
| \\/ M anipulation | |
|
| 8 |
+
\*---------------------------------------------------------------------------*/
|
| 9 |
+
FoamFile
|
| 10 |
+
{
|
| 11 |
+
version 2.0;
|
| 12 |
+
format ascii;
|
| 13 |
+
class dictionary;
|
| 14 |
+
location "system";
|
| 15 |
+
object fvSolution;
|
| 16 |
+
}
|
| 17 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 18 |
+
|
| 19 |
+
solvers
|
| 20 |
+
{
|
| 21 |
+
"alpha.water.*"
|
| 22 |
+
{
|
| 23 |
+
nAlphaCorr 1;
|
| 24 |
+
nAlphaSubCycles 3;
|
| 25 |
+
cAlpha 1;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
"pcorr.*"
|
| 29 |
+
{
|
| 30 |
+
solver PCG;
|
| 31 |
+
preconditioner DIC;
|
| 32 |
+
tolerance 1e-6;
|
| 33 |
+
relTol 0;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
p_rgh
|
| 37 |
+
{
|
| 38 |
+
solver PCG;
|
| 39 |
+
preconditioner DIC;
|
| 40 |
+
tolerance 1e-6;
|
| 41 |
+
relTol 0.1;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
p_rghFinal
|
| 45 |
+
{
|
| 46 |
+
solver GAMG;
|
| 47 |
+
smoother DIC;
|
| 48 |
+
tolerance 1e-7;
|
| 49 |
+
relTol 0;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
U
|
| 53 |
+
{
|
| 54 |
+
solver PBiCG;
|
| 55 |
+
preconditioner DILU;
|
| 56 |
+
tolerance 1e-6;
|
| 57 |
+
relTol 0.1;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
UFinal
|
| 61 |
+
{
|
| 62 |
+
solver PBiCG;
|
| 63 |
+
preconditioner DILU;
|
| 64 |
+
tolerance 1e-6;
|
| 65 |
+
relTol 0;
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
PIMPLE
|
| 70 |
+
{
|
| 71 |
+
momentumPredictor no;
|
| 72 |
+
nCorrectors 2;
|
| 73 |
+
nNonOrthogonalCorrectors 0;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
// ************************************************************************* //
|
raw/stokes_wave/t05/system/setFieldsDict
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class dictionary;
|
| 13 |
+
location "system";
|
| 14 |
+
object setFieldsDict;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
defaultFieldValues
|
| 19 |
+
(
|
| 20 |
+
volScalarFieldValue alpha.water 0
|
| 21 |
+
);
|
| 22 |
+
|
| 23 |
+
regions
|
| 24 |
+
(
|
| 25 |
+
boxToCell
|
| 26 |
+
{
|
| 27 |
+
box (0 0 0) (30.0 1.0 0.46374473097558333);
|
| 28 |
+
fieldValues
|
| 29 |
+
(
|
| 30 |
+
volScalarFieldValue alpha.water 1
|
| 31 |
+
);
|
| 32 |
+
}
|
| 33 |
+
);
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
// ************************************************************************* //
|
raw/stokes_wave/t06/0/U
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: v1906 |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class volVectorField;
|
| 13 |
+
location "0";
|
| 14 |
+
object U;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
dimensions [0 1 -1 0 0 0 0];
|
| 19 |
+
|
| 20 |
+
internalField uniform (0 0 0);
|
| 21 |
+
|
| 22 |
+
boundaryField
|
| 23 |
+
{
|
| 24 |
+
inlet
|
| 25 |
+
{
|
| 26 |
+
type waveVelocity;
|
| 27 |
+
value uniform (0 0 0);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
outlet
|
| 31 |
+
{
|
| 32 |
+
type waveVelocity;
|
| 33 |
+
value uniform (0 0 0);
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
sides
|
| 37 |
+
{
|
| 38 |
+
type empty;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
ground
|
| 42 |
+
{
|
| 43 |
+
type fixedValue;
|
| 44 |
+
value uniform (0 0 0);
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
top
|
| 48 |
+
{
|
| 49 |
+
type pressureInletOutletVelocity;
|
| 50 |
+
value uniform (0 0 0);
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
// ************************************************************************* //
|