mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: new sampled faceZones (#1874)
This commit is contained in:
@ -16,8 +16,9 @@ runApplication subsetMesh c0 -patch walls -overwrite
|
||||
runApplication splitMeshRegions -cellZones -overwrite
|
||||
|
||||
# create register face and cell zones
|
||||
rm log.topoSet
|
||||
runApplication topoSet -region cabin -dict system/topoSetDictRegister
|
||||
rm -f log.topoSet.register
|
||||
runApplication -s register \
|
||||
topoSet -region cabin -dict system/topoSetDictRegister
|
||||
|
||||
# set the initial fields
|
||||
restore0Dir
|
||||
|
||||
@ -16,8 +16,9 @@ runApplication subsetMesh c0 -patch walls -overwrite
|
||||
runApplication splitMeshRegions -cellZones -overwrite
|
||||
|
||||
# create register face and cell zones
|
||||
rm log.topoSet
|
||||
runApplication topoSet -region cabin -dict system/topoSetDictRegister
|
||||
rm -f log.topoSet.register
|
||||
runApplication -o -s register \
|
||||
topoSet -region cabin -dict system/topoSetDictRegister
|
||||
|
||||
# set the initial fields
|
||||
restore0Dir
|
||||
|
||||
@ -83,6 +83,27 @@ functions
|
||||
( 60 "<system>/solverControls.60")
|
||||
);
|
||||
}
|
||||
|
||||
// Verify values for sampling multiple faceZones
|
||||
inletFaces
|
||||
{
|
||||
type surfaces;
|
||||
libs (sampling);
|
||||
writeControl onEnd;
|
||||
region cabin;
|
||||
surfaceFormat vtk;
|
||||
fields (H2O U);
|
||||
|
||||
surfaces
|
||||
{
|
||||
inletFaces
|
||||
{
|
||||
type faceZone;
|
||||
zones (inletFaces f1Zone);
|
||||
interpolate false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -44,6 +44,28 @@ actions
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name f0tmp;
|
||||
type faceSet;
|
||||
action new;
|
||||
source patchToFace;
|
||||
patch inlet;
|
||||
}
|
||||
|
||||
{
|
||||
name inletFaces;
|
||||
type faceZoneSet;
|
||||
action new;
|
||||
source setToFaceZone;
|
||||
faceSet f0tmp;
|
||||
}
|
||||
|
||||
{
|
||||
name f0tmp;
|
||||
type faceSet;
|
||||
action remove;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user