mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: filter tutorial: replace setsToZones with topoSet
This commit is contained in:
@ -13,9 +13,6 @@ runApplication blockMesh
|
|||||||
#setSet -batch system/sets.setSet > log.setSet1 2>&1
|
#setSet -batch system/sets.setSet > log.setSet1 2>&1
|
||||||
runApplication topoSet
|
runApplication topoSet
|
||||||
|
|
||||||
# convert sets to zones
|
|
||||||
setsToZones -noFlipMap > log.setsToZones 2>&1
|
|
||||||
|
|
||||||
# create the first cyclic - lhs of porous zone
|
# create the first cyclic - lhs of porous zone
|
||||||
# Note that we don't know what value to give these patches-out-of-nothing so
|
# Note that we don't know what value to give these patches-out-of-nothing so
|
||||||
# - use binary writing to avoid 'nan'
|
# - use binary writing to avoid 'nan'
|
||||||
|
|||||||
@ -28,6 +28,17 @@ actions
|
|||||||
box (1.5 -10 -10) (2 10 10);
|
box (1.5 -10 -10) (2 10 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name filter;
|
||||||
|
type cellZoneSet;
|
||||||
|
action new;
|
||||||
|
source setToCellZone;
|
||||||
|
sourceInfo
|
||||||
|
{
|
||||||
|
set filter;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name leftFluid;
|
name leftFluid;
|
||||||
@ -39,6 +50,16 @@ actions
|
|||||||
box (-10 -10 -10) (1.5 10 10);
|
box (-10 -10 -10) (1.5 10 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name leftFluid;
|
||||||
|
type cellZoneSet;
|
||||||
|
action new;
|
||||||
|
source setToCellZone;
|
||||||
|
sourceInfo
|
||||||
|
{
|
||||||
|
set leftFluid;
|
||||||
|
}
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name rightFluid;
|
name rightFluid;
|
||||||
type cellSet;
|
type cellSet;
|
||||||
@ -49,6 +70,16 @@ actions
|
|||||||
box (2 -1 -1) (10 10 10);
|
box (2 -1 -1) (10 10 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name rightFluid;
|
||||||
|
type cellZoneSet;
|
||||||
|
action new;
|
||||||
|
source setToCellZone;
|
||||||
|
sourceInfo
|
||||||
|
{
|
||||||
|
set rightFluid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// cycLeft
|
// cycLeft
|
||||||
@ -74,6 +105,17 @@ actions
|
|||||||
option all;
|
option all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Create faceZone from cycLeft
|
||||||
|
{
|
||||||
|
name cycLeft;
|
||||||
|
type faceZoneSet;
|
||||||
|
action new;
|
||||||
|
source setToFaceZone;
|
||||||
|
sourceInfo
|
||||||
|
{
|
||||||
|
faceSet cycLeft; // name of faceSet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// cycRight
|
// cycRight
|
||||||
{
|
{
|
||||||
@ -98,6 +140,18 @@ actions
|
|||||||
option all;
|
option all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Create faceZone from cycRight
|
||||||
|
{
|
||||||
|
name cycRight;
|
||||||
|
type faceZoneSet;
|
||||||
|
action new;
|
||||||
|
source setToFaceZone;
|
||||||
|
sourceInfo
|
||||||
|
{
|
||||||
|
faceSet cycRight; // name of faceSet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user