mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
This adds a 'geometry' scheme section to the system/fvSchemes:
geometry
{
type highAspectRatio;
}
These 'fvGeometryMethod's are used to calculate
- deltaCoeffs
- nonOrthoCoeffs
etc and can even modify the basic face/cellCentres calculation.
23 lines
799 B
Bash
Executable File
23 lines
799 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
|
|
runApplication blockMesh
|
|
runApplication surfaceFeatureExtract
|
|
|
|
mkdir -p 0
|
|
|
|
# Run with basic
|
|
foamDictionary -entry geometry.type -set basic system/fvSchemes
|
|
runApplication -s basic snappyHexMesh
|
|
runApplication -s basic checkMesh -writeAllFields
|
|
foamListTimes -rm
|
|
|
|
# Run with highAspectRatio
|
|
foamDictionary -entry geometry.type -set highAspectRatio system/fvSchemes
|
|
runApplication -s highAspectRatio snappyHexMesh
|
|
runApplication -s highAspectRatio checkMesh -writeAllFields
|
|
|
|
#------------------------------------------------------------------------------
|