From ad5be0586b27c5a20eef7e375ee20c9d3e1b11cd Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Sat, 2 Nov 2019 19:46:12 +0100 Subject: [PATCH] TUT: define slip boundaries in building motion tutorial - define nut conditions explicitly, without fallback definition --- .../building/steady/0.orig/U | 5 ++-- .../building/steady/0.orig/epsilon | 3 +-- .../building/steady/0.orig/k | 3 +-- .../building/steady/0.orig/nut | 24 ++++++++++++------- .../building/steady/0.orig/omega | 3 +-- .../building/steady/0.orig/p | 4 ++-- .../building/steady/0.orig/pointDisplacement | 2 +- .../building/steady/system/blockMeshDict | 8 +++---- 8 files changed, 28 insertions(+), 24 deletions(-) diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/U b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/U index 940e969e75..c23a5ae2cb 100644 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/U +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/U @@ -25,6 +25,7 @@ boundaryField #includeEtc "caseDicts/setConstraintTypes" #include "include/fixedInlet" + #include "include/environ" outlet { @@ -33,7 +34,7 @@ boundaryField value $internalField; } - // the ground + // Ground z_ { type noSlip; @@ -43,8 +44,6 @@ boundaryField { type noSlip; } - - #include "include/environ" } // ************************************************************************* // diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/epsilon b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/epsilon index 804292f43a..71e7a7513b 100644 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/epsilon +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/epsilon @@ -25,6 +25,7 @@ boundaryField #includeEtc "caseDicts/setConstraintTypes" #include "include/fixedInlet" + #include "include/environ" outlet { @@ -44,8 +45,6 @@ boundaryField type epsilonWallFunction; value $internalField; } - - #include "include/environ" } // ************************************************************************* // diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/k b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/k index 4e6494a387..dc764e5aeb 100644 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/k +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/k @@ -25,6 +25,7 @@ boundaryField #includeEtc "caseDicts/setConstraintTypes" #include "include/fixedInlet" + #include "include/environ" outlet { @@ -44,8 +45,6 @@ boundaryField type kqRWallFunction; value $internalField; } - - #include "include/environ" } // ************************************************************************* // diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/nut b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/nut index 43ef7456ae..3125cc8849 100644 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/nut +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/nut @@ -22,22 +22,30 @@ boundaryField { #includeEtc "caseDicts/setConstraintTypes" + #include "include/environ" + + inlet + { + type calculated; + value $internalField; + } + + outlet + { + type calculated; + value $internalField; + } + z_ { type nutkWallFunction; - value uniform 0; + value $internalField; } "(?i).*building.*" { type nutkWallFunction; - value uniform 0; - } - - ".*" - { - type nutkWallFunction; - value uniform 0; + value $internalField; } } diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/omega b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/omega index 985c327381..68fa2cc361 100644 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/omega +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/omega @@ -25,6 +25,7 @@ boundaryField #includeEtc "caseDicts/setConstraintTypes" #include "include/fixedInlet" + #include "include/environ" outlet { @@ -44,8 +45,6 @@ boundaryField type omegaWallFunction; value $internalField; } - - #include "include/environ" } // ************************************************************************* // diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/p b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/p index 285f0cc778..2c4ddf1a70 100644 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/p +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/p @@ -24,6 +24,8 @@ boundaryField { #includeEtc "caseDicts/setConstraintTypes" + #include "include/environ" + inlet { type zeroGradient; @@ -44,8 +46,6 @@ boundaryField { type zeroGradient; } - - #include "include/environ" } // ************************************************************************* // diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/pointDisplacement b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/pointDisplacement index 3ccdc862d4..d136dd5983 100644 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/pointDisplacement +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/0.orig/pointDisplacement @@ -57,7 +57,7 @@ boundaryField uniformValue (0 0 0); } - // the ground + // Ground z_ { type slip; diff --git a/tutorials/incompressible/lumpedPointMotion/building/steady/system/blockMeshDict b/tutorials/incompressible/lumpedPointMotion/building/steady/system/blockMeshDict index c8bc2dbdda..04206788dd 100644 --- a/tutorials/incompressible/lumpedPointMotion/building/steady/system/blockMeshDict +++ b/tutorials/incompressible/lumpedPointMotion/building/steady/system/blockMeshDict @@ -2,7 +2,7 @@ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1906 | -| \\ / A nd | Web: www.OpenFOAM.com | +| \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile @@ -61,7 +61,7 @@ boundary } y_ // -ve Y { - type wall; + type patch; // (slip) faces ( ( 0 1 5 4) @@ -69,7 +69,7 @@ boundary } _y // +ve Y { - type wall; + type patch; // (slip) faces ( ( 3 7 6 2) @@ -85,7 +85,7 @@ boundary } _z // +ve Z = sky { - type wall; + type patch; // (slip) faces ( ( 4 5 6 7)