mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: use '/' dictionary scoping for variables and foamDictionary (#1073)
- leave windAroundBuildings blockMeshDict with older '.' syntax (to test compatibility)
This commit is contained in:
@ -18,13 +18,13 @@ mkdir -p 0
|
||||
cp -f system/fvSchemes system/fvSchemes.bck
|
||||
|
||||
# Run with basic
|
||||
foamDictionary system/fvSchemes -entry geometry.type -set basic
|
||||
foamDictionary system/fvSchemes -entry geometry/type -set basic
|
||||
runApplication -s basic snappyHexMesh
|
||||
runApplication -s basic checkMesh -writeAllFields
|
||||
foamListTimes -rm
|
||||
|
||||
# Run with highAspectRatio
|
||||
foamDictionary system/fvSchemes -entry geometry.type -set highAspectRatio
|
||||
foamDictionary system/fvSchemes -entry geometry/type -set highAspectRatio
|
||||
runApplication -s highAspectRatio snappyHexMesh
|
||||
runApplication -s highAspectRatio checkMesh -writeAllFields
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2306 |
|
||||
| \\ / O peration | Version: v2312 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -14,7 +14,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
backgroundMesh
|
||||
domain
|
||||
{
|
||||
xMin -1.26;
|
||||
xMax 1.26;
|
||||
@ -31,24 +31,24 @@ scale 1;
|
||||
|
||||
vertices
|
||||
(
|
||||
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMin)
|
||||
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMin)
|
||||
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMin)
|
||||
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMin)
|
||||
($/domain/xMin $/domain/yMin $/domain/zMin)
|
||||
($/domain/xMax $/domain/yMin $/domain/zMin)
|
||||
($/domain/xMax $/domain/yMax $/domain/zMin)
|
||||
($/domain/xMin $/domain/yMax $/domain/zMin)
|
||||
|
||||
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMax)
|
||||
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMax)
|
||||
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMax)
|
||||
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMax)
|
||||
($/domain/xMin $/domain/yMin $/domain/zMax)
|
||||
($/domain/xMax $/domain/yMin $/domain/zMax)
|
||||
($/domain/xMax $/domain/yMax $/domain/zMax)
|
||||
($/domain/xMin $/domain/yMax $/domain/zMax)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (0 1 2 3 4 5 6 7)
|
||||
(
|
||||
$:backgroundMesh.xCells
|
||||
$:backgroundMesh.yCells
|
||||
$:backgroundMesh.zCells
|
||||
$/domain/xCells
|
||||
$/domain/yCells
|
||||
$/domain/zCells
|
||||
)
|
||||
simpleGrading (1 1 1)
|
||||
);
|
||||
@ -66,4 +66,7 @@ mergePatchPairs
|
||||
);
|
||||
|
||||
|
||||
// Cleanup
|
||||
#remove ( domain )
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -18,14 +18,14 @@ runApplication decomposePar
|
||||
|
||||
#- Run with leak-detection (writes postProcessing/leakPath) but no closure
|
||||
foamDictionary system/snappyHexMeshDict \
|
||||
-entry castellatedMeshControls.useLeakClosure -set false
|
||||
-entry castellatedMeshControls/useLeakClosure -set false
|
||||
runParallel -s leak snappyHexMesh
|
||||
runParallel -s leak checkMesh
|
||||
cleanTimeDirectories
|
||||
|
||||
#- Run with leak-detection (writes postProcessing/leakPath) and closure
|
||||
foamDictionary system/snappyHexMeshDict \
|
||||
-entry castellatedMeshControls.useLeakClosure -set true
|
||||
-entry castellatedMeshControls/useLeakClosure -set true
|
||||
runParallel -s leak_and_closure snappyHexMesh
|
||||
runParallel -s leak_and_closure checkMesh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user