ENH: zone improvements

- retain group information when copying zones
- support construct empty (add details later)
- improve consistency for zone and boundaryMesh construction

- support front/back/both selection for faceZoneToCell

STYLE: prefer faceZone patch() method instead of operator()

STYLE: use std::unique_ptr instead of manual pointer management

- for zones and core patch types.
  Easier data management, allows default destructors (for example)
This commit is contained in:
Mark Olesen
2023-09-01 14:10:29 +02:00
parent 59c366525e
commit 6aa8b82744
41 changed files with 1322 additions and 629 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 |
| \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -30,17 +30,8 @@ actions
name c1;
type cellSet;
action new;
source faceZoneToCell;//zoneToCel;
option master;
zones (domain0_to_v_CPU);
}
{
name c1;
type cellSet;
action add;
source faceZoneToCell;//zoneToCel;
option slave;
source faceZoneToCell;
option both;
zones (domain0_to_v_CPU);
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 |
| \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -589,7 +589,7 @@ actions
type cellSet;
action new;
source faceZoneToCell;
option slave;
option back;
zones
(
faceZone1
@ -601,7 +601,7 @@ actions
type cellSet;
action new;
source faceZoneToCell;
option master;
option front;
zone faceZone1;
}