mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: additional options for transformPoints and surfaceRefineRedGreen
- add -recentre option to shift points according to the bounding box centre before performing other operations - add -auto-origin to use the bounding box centre as the origin for rotations. Has lower priority than the -origin option. - surfaceTransformPoints now has distinct -read-scale, -write-scale options (as per surfaceMeshConvert). Silently accepts -scale as equivalent to -write-scale, for backwards compatibility and similarity with transformPoints - add -steps option for surfaceRefineRedGreen for successive refinement
This commit is contained in:
11
tutorials/compressible/rhoSimpleFoam/squareBend/Allclean
Executable file
11
tutorials/compressible/rhoSimpleFoam/squareBend/Allclean
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -f constant/triSurface/inlet_sample*.obj
|
||||
rm -f constant/triSurface/oversized_sample.obj
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
27
tutorials/compressible/rhoSimpleFoam/squareBend/Allrun
Executable file
27
tutorials/compressible/rhoSimpleFoam/squareBend/Allrun
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
# Extract some faces for sampling
|
||||
runApplication surfaceMeshExtract \
|
||||
-patches inlet -time 0 \
|
||||
constant/triSurface/inlet_sample0.obj
|
||||
|
||||
# Recentre and inflate
|
||||
runApplication surfaceTransformPoints \
|
||||
-recentre \
|
||||
-scale 3.5 \
|
||||
constant/triSurface/inlet_sample0.obj \
|
||||
constant/triSurface/inlet_sample1.obj
|
||||
|
||||
# Finer mesh
|
||||
runApplication surfaceRefineRedGreen \
|
||||
constant/triSurface/inlet_sample1.obj \
|
||||
constant/triSurface/oversized_sample.obj
|
||||
|
||||
runApplication $(getApplication)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user