mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: support multiple zones for topo set sources (#1060)
- uses the keywords 'zones' and 'zone' to avoid potential conflicts with a named topoSet action, but accepts 'name' for compatibility.
This commit is contained in:
@ -25,7 +25,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name cylinder;
|
||||
zone cylinder;
|
||||
}
|
||||
}
|
||||
{
|
||||
|
||||
@ -25,17 +25,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name cylinder;
|
||||
}
|
||||
}
|
||||
{
|
||||
name rotorCells;
|
||||
type cellSet;
|
||||
action add;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name innerCylinder;
|
||||
zones (cylinder innerCylinder);
|
||||
}
|
||||
}
|
||||
{
|
||||
|
||||
@ -46,13 +46,15 @@ FoamFile
|
||||
// // Cells in cell zone
|
||||
// source zoneToCell;
|
||||
// {
|
||||
// name ".*Zone"; // Name of cellZone, regular expressions allowed
|
||||
// zones (".*Zone"); // Name of cellZones, regular expressions allowed
|
||||
// zone ".*Zone"; // Name of cellZone, regular expressions allowed
|
||||
// }
|
||||
//
|
||||
// // Cells on master or slave side of faceZone
|
||||
// source faceZoneToCell;
|
||||
// {
|
||||
// name ".*Zone"; // Name of faceZone, regular expressions allowed
|
||||
// zones (".*Zone"); // Name of faceZones, regular expressions allowed
|
||||
// zone ".*Zone"; // Name of faceZone, regular expressions allowed
|
||||
// option master; // master/slave
|
||||
// }
|
||||
//
|
||||
@ -190,7 +192,7 @@ FoamFile
|
||||
// // All faces of faceZone
|
||||
// source zoneToFace;
|
||||
// {
|
||||
// name ".*Zone1"; // Name of faceZone, regular expressions allowed
|
||||
// zone ".*Zone1"; // Name of faceZone, regular expressions allowed
|
||||
// }
|
||||
//
|
||||
// // Faces with face centre within box
|
||||
@ -240,7 +242,7 @@ FoamFile
|
||||
// // All points in pointzone
|
||||
// source zoneToPoint;
|
||||
// {
|
||||
// name ".*Zone"; // name of pointZone, regular expressions allowed
|
||||
// zone ".*Zone"; // name of pointZone, regular expressions allowed
|
||||
// }
|
||||
//
|
||||
// // Points nearest to coordinates
|
||||
|
||||
@ -27,7 +27,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name topBlock;
|
||||
zone topBlock;
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name centralBlock;
|
||||
zone centralBlock;
|
||||
}
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name bottomBlock;
|
||||
zone bottomBlock;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rotor;
|
||||
zone rotor;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@ -24,7 +24,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rotor;
|
||||
zone rotor;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@ -24,7 +24,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rotor;
|
||||
zone rotor;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@ -24,7 +24,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rotor;
|
||||
zone rotor;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@ -17,14 +17,14 @@ FoamFile
|
||||
actions
|
||||
(
|
||||
{
|
||||
name bgr0; // all around bgr
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name background;
|
||||
}
|
||||
name bgr0; // all around bgr
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
zone background;
|
||||
}
|
||||
}
|
||||
{
|
||||
name hullBox0; // all around bgr
|
||||
@ -33,7 +33,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name hullBox;
|
||||
zone hullBox;
|
||||
}
|
||||
}
|
||||
{
|
||||
@ -43,7 +43,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name propeller;
|
||||
zone propeller;
|
||||
}
|
||||
}
|
||||
{
|
||||
@ -53,7 +53,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rudder;
|
||||
zone rudder;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,14 +17,14 @@ FoamFile
|
||||
actions
|
||||
(
|
||||
{
|
||||
name bgr0; // all around bgr
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name background;
|
||||
}
|
||||
name bgr0; // all around bgr
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
zone background;
|
||||
}
|
||||
}
|
||||
{
|
||||
name hullBox0; // all around hull
|
||||
@ -33,7 +33,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name hullBox;
|
||||
zone hullBox;
|
||||
}
|
||||
}
|
||||
{
|
||||
@ -43,7 +43,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name propeller;
|
||||
zone propeller;
|
||||
}
|
||||
}
|
||||
{
|
||||
@ -53,7 +53,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rudder;
|
||||
zone rudder;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,14 +17,14 @@ FoamFile
|
||||
actions
|
||||
(
|
||||
{
|
||||
name bgr0; // all around bgr
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name background;
|
||||
}
|
||||
name bgr0; // all around bgr
|
||||
type cellSet;
|
||||
action new;
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
zone background;
|
||||
}
|
||||
}
|
||||
{
|
||||
name hullBox0; // all around hull
|
||||
@ -33,7 +33,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name hullBox;
|
||||
zone hullBox;
|
||||
}
|
||||
}
|
||||
{
|
||||
@ -43,7 +43,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name propeller;
|
||||
zone propeller;
|
||||
}
|
||||
}
|
||||
{
|
||||
@ -53,7 +53,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rudder;
|
||||
zone rudder;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rotor;
|
||||
zone rotor;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@ -24,7 +24,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rotor;
|
||||
zone rotor;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@ -24,7 +24,7 @@ actions
|
||||
source zoneToCell;
|
||||
sourceInfo
|
||||
{
|
||||
name rotor;
|
||||
zone rotor;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user