subsetMesh: Added -noFields option
With the -noFields option the mesh is subset but the fields are not changed. This is useful when the field fields have been created to correspond to the mesh after the mesh subset.
This commit is contained in:
@ -6,16 +6,16 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
rm -rf 0
|
||||
|
||||
# create the underlying block mesh
|
||||
# Create the underlying block mesh
|
||||
runApplication blockMesh
|
||||
|
||||
# create the set for the obstacles
|
||||
# Create the set for the obstacles
|
||||
runApplication topoSet
|
||||
|
||||
# create the obstacles - add obstacle patches to wallFilm patch
|
||||
runApplication subsetMesh c0 -patch wallFilm -overwrite
|
||||
# Create the obstacles - add obstacle patches to wallFilm patch
|
||||
runApplication subsetMesh c0 -patch wallFilm -overwrite -noFields
|
||||
|
||||
# split the obstacle patches into cube[1-6]_patch[1-6]
|
||||
# Split the obstacle patches into cube[1-6]_patch[1-6]
|
||||
runApplication ./patchifyObstacles
|
||||
|
||||
# Create the wall film region via extrusion
|
||||
@ -25,9 +25,6 @@ runApplication extrudeToRegionMesh -overwrite
|
||||
rm -rf system/wallFilmRegion
|
||||
cp -r system/wallFilmRegion.orig system/wallFilmRegion
|
||||
|
||||
find ./0 -maxdepth 1 -type f -exec \
|
||||
sed -i -e "s/wallFilm/\"(region0_to.*)\"/g" {} \;
|
||||
|
||||
paraFoam -touch
|
||||
paraFoam -touch -region wallFilmRegion
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ application=$(getApplication)
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication topoSet
|
||||
runApplication subsetMesh -overwrite c0 -patch floatingObject
|
||||
runApplication subsetMesh -overwrite c0 -patch floatingObject -noFields
|
||||
runApplication setFields
|
||||
runApplication $application
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication topoSet
|
||||
runApplication subsetMesh -overwrite c0 -patch walls
|
||||
runApplication subsetMesh -overwrite c0 -patch walls -noFields
|
||||
runApplication setFields
|
||||
runApplication $(getApplication)
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ runApplication blockMesh
|
||||
|
||||
runApplication -s 1 topoSet
|
||||
|
||||
runApplication subsetMesh -overwrite c0 -patch floatingObject
|
||||
runApplication subsetMesh -overwrite c0 -patch floatingObject -noFields
|
||||
|
||||
runApplication -s selectBottom \
|
||||
topoSet -dict system/topoSetDict-selectBottom
|
||||
|
||||
@ -9,7 +9,7 @@ application=$(getApplication)
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication topoSet
|
||||
runApplication subsetMesh -overwrite c0 -patch floatingObject
|
||||
runApplication subsetMesh -overwrite c0 -patch floatingObject -noFields
|
||||
|
||||
runApplication $application
|
||||
|
||||
|
||||
Reference in New Issue
Block a user