From 8ad6690a46c430f216b01cb1cb6efa2beb48d818 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 6 May 2022 15:45:46 +0200 Subject: [PATCH] Fixed run_ola; added very fine mesh run --- olaflow/of_ts_fine/constant/porosityDict | 29 ++++ .../constant/turbulenceProperties_sst | 29 ++++ olaflow/of_ts_fine/system/blockMeshDict | 81 ++++++++++ olaflow/of_ts_fine/system/controlDict | 138 ++++++++++++++++++ olaflow/of_ts_fine/system/graphUniform | 25 ++++ olaflow/of_ts_fine/system/graphUniform2 | 25 ++++ olaflow/run_ola.sh | 4 +- 7 files changed, 329 insertions(+), 2 deletions(-) create mode 100644 olaflow/of_ts_fine/constant/porosityDict create mode 100644 olaflow/of_ts_fine/constant/turbulenceProperties_sst create mode 100644 olaflow/of_ts_fine/system/blockMeshDict create mode 100644 olaflow/of_ts_fine/system/controlDict create mode 100644 olaflow/of_ts_fine/system/graphUniform create mode 100644 olaflow/of_ts_fine/system/graphUniform2 diff --git a/olaflow/of_ts_fine/constant/porosityDict b/olaflow/of_ts_fine/constant/porosityDict new file mode 100644 index 0000000..1d10f00 --- /dev/null +++ b/olaflow/of_ts_fine/constant/porosityDict @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 2.1.0 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object porosityDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +// Materials: clear region, core, secondary armour layer, primary armour layer +// a,b,c: tuning parameters +a 2(0 50); +b 2(0 1.2); +c 2(0 0.34); + +// D50: mean nominal diameter +D50 2(1 4); +// porosity (phi) +porosity 2(1 0.4); + +// ************************************************************************* // diff --git a/olaflow/of_ts_fine/constant/turbulenceProperties_sst b/olaflow/of_ts_fine/constant/turbulenceProperties_sst new file mode 100644 index 0000000..187f845 --- /dev/null +++ b/olaflow/of_ts_fine/constant/turbulenceProperties_sst @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 2.1.0 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RAS; + +RAS +{ + RASModel kOmegaSST; + + turbulence on; + + printCoeffs on; +} + +// ************************************************************************* // diff --git a/olaflow/of_ts_fine/system/blockMeshDict b/olaflow/of_ts_fine/system/blockMeshDict new file mode 100644 index 0000000..4fbff25 --- /dev/null +++ b/olaflow/of_ts_fine/system/blockMeshDict @@ -0,0 +1,81 @@ +/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.7.1 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +scale 1; + +vertices +( + (-150 0 -30) + (0 0 -30) + (0 0 30) + (-150 0 30) + (-150 1 -30) + (0 1 -30) + (0 1 30) + (-150 1 30) +); + +blocks +( + hex (0 1 5 4 3 2 6 7) (1200 1 480) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + inlet + { + type patch; + faces + ( + (0 4 7 3) + ); + } + /*outlet + { + type patch; + faces + ( + (1 5 6 2) + ); + }*/ + wall1 + { + type wall; + faces + ( + (0 1 5 4) + ); + } + atmosphere + { + type patch; + faces + ( + (3 2 6 7) + (1 5 6 2) + ); + } +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/olaflow/of_ts_fine/system/controlDict b/olaflow/of_ts_fine/system/controlDict new file mode 100644 index 0000000..ca393bb --- /dev/null +++ b/olaflow/of_ts_fine/system/controlDict @@ -0,0 +1,138 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.3 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + location "system"; + class dictionary; + object controlDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application olaFlow; + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 400; + +deltaT 0.1; + +writeControl adjustableRunTime; + +writeInterval 0.5; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 6; + +compression on; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + +adjustTimeStep yes; + +maxCo 0.45; +maxAlphaCo 0.45; + +maxDeltaT 0.5; +/* +functions +{ + gaugesVOF + { + type sets; + libs ("libsampling.so"); + writeControl outputTime; + writeInterval 1; + setFormat raw; + surfaceFormat raw; + interpolationScheme cell; + fields ( alpha.water ); + sets + ( + GaugeVOF01 + { + type lineCellFace; + axis xyz; + start ( 0.5 0.001 0 ); + end ( 0.5 0.001 1.2 ); + } + GaugeVOF02 + { + type lineCellFace; + axis xyz; + start ( 9.25 0.001 0 ); + end ( 9.25 0.001 1.2 ); + } + GaugeVOF03 + { + type lineCellFace; + axis xyz; + start ( 15.75 0.001 0 ); + end ( 15.75 0.001 1.2 ); + } + GaugeVOF04 + { + type lineCellFace; + axis xyz; + start ( 17.75 0.001 0 ); + end ( 17.75 0.001 1.2 ); + } + GaugeVOF05 + { + type lineCellFace; + axis xyz; + start ( 21.1 0.001 0 ); + end ( 21.1 0.001 1.2 ); + } + ); + } + gaugesP + { + type sets; + libs ("libsampling.so"); + writeControl outputTime; + writeInterval 1; + setFormat raw; + surfaceFormat raw; + interpolationScheme cellPointFace; + fields ( p ); + sets + ( + GaugesP + { + type boundaryPoints; + axis xyz; + patches 1(caisson); + points ((18.0 0.01 0.75) + (18.00 0.01 0.80) + (18.00 0.01 0.85) + (18.00 0.01 0.95) + (18.01 0.01 0.70) + (18.25 0.01 0.70) + (18.50 0.01 0.70) + (18.75 0.01 0.70)); + maxDistance 0.01; + } + ); + } +} +*/ +// ************************************************************************* // diff --git a/olaflow/of_ts_fine/system/graphUniform b/olaflow/of_ts_fine/system/graphUniform new file mode 100644 index 0000000..cb575db --- /dev/null +++ b/olaflow/of_ts_fine/system/graphUniform @@ -0,0 +1,25 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Writes graph data for specified fields along a line, specified by start and + end points. A specified number of graph points are used, distributed + uniformly along the line. + +\*---------------------------------------------------------------------------*/ + +start (-50 0.5 -15); +end (-50 0.5 15); +nPoints 100; + +fields (alpha.water U); + +axis z; + +#includeEtc "caseDicts/postProcessing/graphs/graphUniform.cfg" + +// ************************************************************************* // diff --git a/olaflow/of_ts_fine/system/graphUniform2 b/olaflow/of_ts_fine/system/graphUniform2 new file mode 100644 index 0000000..185937c --- /dev/null +++ b/olaflow/of_ts_fine/system/graphUniform2 @@ -0,0 +1,25 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 9 + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Writes graph data for specified fields along a line, specified by start and + end points. A specified number of graph points are used, distributed + uniformly along the line. + +\*---------------------------------------------------------------------------*/ + +start (-20 0.5 -15); +end (-20 0.5 15); +nPoints 100; + +fields (alpha.water U); + +axis z; + +#includeEtc "caseDicts/postProcessing/graphs/graphUniform.cfg" + +// ************************************************************************* // diff --git a/olaflow/run_ola.sh b/olaflow/run_ola.sh index a486014..7e2977d 100755 --- a/olaflow/run_ola.sh +++ b/olaflow/run_ola.sh @@ -22,9 +22,9 @@ fi echo START cp -r --reflink of $out_of if [[ $2 ]] -then cp -r --reflink of_$2 $out_of +then cp -r --reflink of_$2/* $out_of fi -cp -r --reflink $inp_of $out_of +cp -r --reflink $inp_of/* $out_of pushd $out_of source /opt/OpenFOAM/OpenFOAM-9/etc/bashrc mkdir log