mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: topoSetSource::SUBTRACT enum action (#1060)
- old 'DELETE' enum was easily confused with 'REMOVE', which removes the set, not the elements from the set. - provide corresponding subtractSet() method STYLE: HashSet set/unset instead of insert/erase methods in topoSetSource - simplifies switching to/from bitSet storage
This commit is contained in:
@ -228,19 +228,13 @@ actions
|
||||
{
|
||||
name wallPanel;
|
||||
type faceZoneSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source setToFaceZone;
|
||||
sourceInfo
|
||||
{
|
||||
faceSet inletFace;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -59,7 +59,7 @@ actions
|
||||
{
|
||||
name c1;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
@ -63,7 +63,7 @@ actions
|
||||
{
|
||||
name solid;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
@ -108,7 +108,7 @@ actions
|
||||
{
|
||||
name solid;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
@ -59,7 +59,7 @@ actions
|
||||
{
|
||||
name c1;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
@ -65,7 +65,7 @@ actions
|
||||
{
|
||||
name baffleFaceSet;
|
||||
type faceSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source boxToFace;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
@ -63,7 +63,7 @@ actions
|
||||
{
|
||||
name c0;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source faceToCell;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
cellSet c0 new
|
||||
cellSet c0 invert
|
||||
cellSet c0 delete boxToCell (0.4 0.1 0.1) (0.6 0.3 0.3)
|
||||
cellSet c0 delete boxToCell (0.4 0.1 0.4) (0.6 0.3 0.6)
|
||||
cellSet c0 delete boxToCell (0.4 0.4 0.1) (0.6 0.6 0.3)
|
||||
cellSet c0 delete boxToCell (0.4 0.4 0.4) (0.6 0.6 0.6)
|
||||
cellSet c0 subtract boxToCell (0.4 0.1 0.1) (0.6 0.3 0.3)
|
||||
cellSet c0 subtract boxToCell (0.4 0.1 0.4) (0.6 0.3 0.6)
|
||||
cellSet c0 subtract boxToCell (0.4 0.4 0.1) (0.6 0.6 0.3)
|
||||
cellSet c0 subtract boxToCell (0.4 0.4 0.4) (0.6 0.6 0.6)
|
||||
|
||||
@ -30,7 +30,7 @@ actions
|
||||
{
|
||||
name c0;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
@ -40,7 +40,7 @@ actions
|
||||
{
|
||||
name c0;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
@ -50,7 +50,7 @@ actions
|
||||
{
|
||||
name c0;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
@ -60,7 +60,7 @@ actions
|
||||
{
|
||||
name c0;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
@ -18,8 +18,8 @@ FoamFile
|
||||
// Name of set to operate on
|
||||
name facesToBeRemoved;
|
||||
|
||||
// One of (clear | new | invert | add | delete | subset | list)
|
||||
action new;
|
||||
// One of (add | subtract | subset | clear | new | invert | list)
|
||||
action new;
|
||||
|
||||
// Actions to apply to pointSet. These are all the topoSetSource's ending
|
||||
// in ..ToFace (see the meshTools library).
|
||||
|
||||
@ -23,7 +23,7 @@ FoamFile
|
||||
//
|
||||
// // action to perform on set. Two types:
|
||||
// // - require no source : clear/invert
|
||||
// // - require source : new/add/delete/subset
|
||||
// // - require source : add/subtract/subset/new
|
||||
// action new;
|
||||
//
|
||||
// The source entry varies according to the type of set:
|
||||
|
||||
@ -56,7 +56,7 @@ actions
|
||||
{
|
||||
name inner;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
@ -67,7 +67,7 @@ actions
|
||||
{
|
||||
name outer;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
@ -263,7 +263,7 @@ actions
|
||||
{
|
||||
name topBlockCells;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
cellSet c0 new
|
||||
cellSet c0 invert
|
||||
cellSet c0 delete boxToCell (0.375 0.375 0) (0.625 0.625 0.25)
|
||||
cellSet c0 subtract boxToCell (0.375 0.375 0) (0.625 0.625 0.25)
|
||||
|
||||
@ -30,7 +30,7 @@ actions
|
||||
{
|
||||
name c0;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
@ -30,7 +30,7 @@ actions
|
||||
{
|
||||
name c0;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
@ -59,7 +59,7 @@ actions
|
||||
{
|
||||
name c1;
|
||||
type cellSet;
|
||||
action delete;
|
||||
action subtract;
|
||||
source cellToCell;
|
||||
sourceInfo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user