Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
1fbcb686
Commit
1fbcb686
authored
Sep 23, 2016
by
Andrew Heather
Browse files
STYLE: Consistency updates
parent
b9940cbb
Changes
109
Hide whitespace changes
Inline
Side-by-side
applications/solvers/basic/potentialFoam/createControls.H
0 → 100644
View file @
1fbcb686
const
dictionary
&
potentialFlow
(
mesh
.
solutionDict
().
subDict
(
"potentialFlow"
)
);
const
int
nNonOrthCorr
(
potentialFlow
.
lookupOrDefault
<
int
>
(
"nNonOrthogonalCorrectors"
,
0
)
);
applications/solvers/basic/potentialFoam/createFields.H
View file @
1fbcb686
...
...
@@ -119,3 +119,5 @@ setRefCell
PhiRefValue
);
mesh
.
setFluxRequired
(
Phi
.
name
());
#include
"createMRF.H"
applications/solvers/basic/potentialFoam/potentialFoam.C
View file @
1fbcb686
...
...
@@ -132,7 +132,6 @@ int main(int argc, char *argv[])
pisoControl
potentialFlow
(
mesh
,
"potentialFlow"
);
#include
"createFields.H"
#include
"createMRF.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/compressibleMultiRegionCourantNo.H
View file @
1fbcb686
scalar
CoNum
=
-
GREAT
;
forAll
(
fluidRegions
,
region
I
)
forAll
(
fluidRegions
,
region
i
)
{
CoNum
=
max
(
compressibleCourantNo
(
fluidRegions
[
region
I
],
fluidRegions
[
region
i
],
runTime
,
rhoFluid
[
region
I
],
phiFluid
[
region
I
]
rhoFluid
[
region
i
],
phiFluid
[
region
i
]
),
CoNum
);
}
/*
forAll(porousFluidRegions, porous
I
)
forAll(porousFluidRegions, porous
i
)
{
CoNum = max
(
compressibleCourantNo
(
porousFluidRegions[porous
I
],
porousFluidRegions[porous
i
],
runTime,
rhoPorous[porous
I
],
phiPorous[porous
I
]
rhoPorous[porous
i
],
phiPorous[porous
i
]
),
CoNum
);
}
*/
\ No newline at end of file
*/
applications/solvers/multiphase/interCondensingEvaporatingFoam/temperaturePhaseChangeTwoPhaseMixtures/twoPhaseMixtureEThermo/twoPhaseMixtureEThermo.C
View file @
1fbcb686
...
...
@@ -204,13 +204,13 @@ Foam::tmp<Foam::scalarField> Foam::twoPhaseMixtureEThermo::he
(
const
scalarField
&
p
,
const
scalarField
&
T
,
const
label
patch
I
const
label
patch
i
)
const
{
const
scalarField
&
alpha1p
=
alpha1
().
boundaryField
()[
patch
I
];
const
scalarField
&
alpha2p
=
alpha2
().
boundaryField
()[
patch
I
];
const
scalarField
&
alpha1p
=
alpha1
().
boundaryField
()[
patch
i
];
const
scalarField
&
alpha2p
=
alpha2
().
boundaryField
()[
patch
i
];
const
scalarField
&
Tp
=
T_
.
boundaryField
()[
patch
I
];
const
scalarField
&
Tp
=
T_
.
boundaryField
()[
patch
i
];
return
(
...
...
@@ -429,11 +429,11 @@ Foam::tmp<Foam::scalarField> Foam::twoPhaseMixtureEThermo::Cpv
(
const
scalarField
&
p
,
const
scalarField
&
T
,
const
label
patch
I
const
label
patch
i
)
const
{
// This is a e thermo (Cpv = Cv)
return
Cv
(
p
,
T
,
patch
I
);
return
Cv
(
p
,
T
,
patch
i
);
}
...
...
applications/utilities/mesh/advanced/snappyRefineMesh/snappyRefineMesh.C
View file @
1fbcb686
...
...
@@ -127,9 +127,9 @@ scalar getEdgeStats(const primitiveMesh& mesh, const direction excludeCmpt)
const
edgeList
&
edges
=
mesh
.
edges
();
forAll
(
edges
,
edge
I
)
forAll
(
edges
,
edge
i
)
{
const
edge
&
e
=
edges
[
edge
I
];
const
edge
&
e
=
edges
[
edge
i
];
vector
eVec
(
e
.
vec
(
mesh
.
points
()));
...
...
@@ -196,24 +196,24 @@ scalar getEdgeStats(const primitiveMesh& mesh, const direction excludeCmpt)
// Adds empty patch if not yet there. Returns patchID.
label
addPatch
(
polyMesh
&
mesh
,
const
word
&
patchName
)
{
label
patch
I
=
mesh
.
boundaryMesh
().
findPatchID
(
patchName
);
label
patch
i
=
mesh
.
boundaryMesh
().
findPatchID
(
patchName
);
if
(
patch
I
==
-
1
)
if
(
patch
i
==
-
1
)
{
const
polyBoundaryMesh
&
patches
=
mesh
.
boundaryMesh
();
List
<
polyPatch
*>
newPatches
(
patches
.
size
()
+
1
);
// Add empty patch as 0th entry (Note: only since subsetMesh wants this)
patch
I
=
0
;
patch
i
=
0
;
newPatches
[
patch
I
]
=
newPatches
[
patch
i
]
=
new
emptyPolyPatch
(
Foam
::
word
(
patchName
),
0
,
mesh
.
nInternalFaces
(),
patch
I
,
patch
i
,
patches
,
emptyPolyPatch
::
typeName
);
...
...
@@ -235,15 +235,15 @@ label addPatch(polyMesh& mesh, const word& patchName)
mesh
.
removeBoundary
();
mesh
.
addPatches
(
newPatches
);
Info
<<
"Created patch oldInternalFaces at "
<<
patch
I
<<
endl
;
Info
<<
"Created patch oldInternalFaces at "
<<
patch
i
<<
endl
;
}
else
{
Info
<<
"Reusing patch oldInternalFaces at "
<<
patch
I
<<
endl
;
Info
<<
"Reusing patch oldInternalFaces at "
<<
patch
i
<<
endl
;
}
return
patch
I
;
return
patch
i
;
}
...
...
@@ -302,20 +302,20 @@ void addCutNeighbours
forAllConstIter
(
labelHashSet
,
cutCells
,
iter
)
{
const
label
cell
I
=
iter
.
key
();
const
labelList
&
cFaces
=
mesh
.
cells
()[
cell
I
];
const
label
cell
i
=
iter
.
key
();
const
labelList
&
cFaces
=
mesh
.
cells
()[
cell
i
];
forAll
(
cFaces
,
i
)
{
const
label
face
I
=
cFaces
[
i
];
const
label
face
i
=
cFaces
[
i
];
if
(
mesh
.
isInternalFace
(
face
I
))
if
(
mesh
.
isInternalFace
(
face
i
))
{
label
nbr
=
mesh
.
faceOwner
()[
face
I
];
label
nbr
=
mesh
.
faceOwner
()[
face
i
];
if
(
nbr
==
cell
I
)
if
(
nbr
==
cell
i
)
{
nbr
=
mesh
.
faceNeighbour
()[
face
I
];
nbr
=
mesh
.
faceNeighbour
()[
face
i
];
}
if
(
selectInside
&&
inside
.
found
(
nbr
))
...
...
@@ -354,11 +354,11 @@ bool limitRefinementLevel
)
{
// Do simple check on validity of refinement level.
forAll
(
refLevel
,
cell
I
)
forAll
(
refLevel
,
cell
i
)
{
if
(
!
excludeCells
.
found
(
cell
I
))
if
(
!
excludeCells
.
found
(
cell
i
))
{
const
labelList
&
cCells
=
mesh
.
cellCells
()[
cell
I
];
const
labelList
&
cCells
=
mesh
.
cellCells
()[
cell
i
];
forAll
(
cCells
,
i
)
{
...
...
@@ -366,13 +366,13 @@ bool limitRefinementLevel
if
(
!
excludeCells
.
found
(
nbr
))
{
if
(
refLevel
[
cell
I
]
-
refLevel
[
nbr
]
>=
limitDiff
)
if
(
refLevel
[
cell
i
]
-
refLevel
[
nbr
]
>=
limitDiff
)
{
FatalErrorInFunction
<<
"Level difference between neighbouring cells "
<<
cell
I
<<
" and "
<<
nbr
<<
cell
i
<<
" and "
<<
nbr
<<
" greater than or equal to "
<<
limitDiff
<<
endl
<<
"refLevels:"
<<
refLevel
[
cell
I
]
<<
' '
<<
"refLevels:"
<<
refLevel
[
cell
i
]
<<
' '
<<
refLevel
[
nbr
]
<<
abort
(
FatalError
);
}
}
...
...
@@ -386,8 +386,8 @@ bool limitRefinementLevel
forAllConstIter
(
labelHashSet
,
cutCells
,
iter
)
{
// cellI will be refined.
const
label
cell
I
=
iter
.
key
();
const
labelList
&
cCells
=
mesh
.
cellCells
()[
cell
I
];
const
label
cell
i
=
iter
.
key
();
const
labelList
&
cCells
=
mesh
.
cellCells
()[
cell
i
];
forAll
(
cCells
,
i
)
{
...
...
@@ -395,7 +395,7 @@ bool limitRefinementLevel
if
(
!
excludeCells
.
found
(
nbr
)
&&
!
cutCells
.
found
(
nbr
))
{
if
(
refLevel
[
cell
I
]
+
1
-
refLevel
[
nbr
]
>=
limitDiff
)
if
(
refLevel
[
cell
i
]
+
1
-
refLevel
[
nbr
]
>=
limitDiff
)
{
addCutCells
.
insert
(
nbr
);
}
...
...
@@ -454,22 +454,22 @@ void doRefinement
refLevel
.
setSize
(
mesh
.
nCells
());
for
(
label
cell
I
=
oldCells
;
cell
I
<
mesh
.
nCells
();
cell
I
++
)
for
(
label
cell
i
=
oldCells
;
cell
i
<
mesh
.
nCells
();
cell
i
++
)
{
refLevel
[
cell
I
]
=
0
;
refLevel
[
cell
i
]
=
0
;
}
const
labelListList
&
addedCells
=
multiRef
.
addedCells
();
forAll
(
addedCells
,
oldCell
I
)
forAll
(
addedCells
,
oldCell
i
)
{
const
labelList
&
added
=
addedCells
[
oldCell
I
];
const
labelList
&
added
=
addedCells
[
oldCell
i
];
if
(
added
.
size
())
{
// Give all cells resulting from split the refinement level
// of the master.
label
masterLevel
=
++
refLevel
[
oldCell
I
];
label
masterLevel
=
++
refLevel
[
oldCell
i
];
forAll
(
added
,
i
)
{
...
...
@@ -485,7 +485,7 @@ void subsetMesh
(
polyMesh
&
mesh
,
const
label
writeMesh
,
const
label
patch
I
,
// patchID for exposed faces
const
label
patch
i
,
// patchID for exposed faces
const
labelHashSet
&
cellsToRemove
,
cellSet
&
cutCells
,
labelIOList
&
refLevel
...
...
@@ -506,7 +506,7 @@ void subsetMesh
(
cellLabels
,
exposedFaces
,
labelList
(
exposedFaces
.
size
(),
patch
I
),
labelList
(
exposedFaces
.
size
(),
patch
i
),
meshMod
);
...
...
@@ -632,7 +632,7 @@ int main(int argc, char *argv[])
#include
"createPolyMesh.H"
// If nessecary add oldInternalFaces patch
label
newPatch
I
=
addPatch
(
mesh
,
"oldInternalFaces"
);
label
newPatch
i
=
addPatch
(
mesh
,
"oldInternalFaces"
);
//
...
...
@@ -725,9 +725,9 @@ int main(int argc, char *argv[])
meshSearch
queryMesh
(
mesh
,
polyMesh
::
FACE_PLANES
);
// Check all 'outside' points
forAll
(
outsidePts
,
outside
I
)
forAll
(
outsidePts
,
outside
i
)
{
const
point
&
outsidePoint
=
outsidePts
[
outside
I
];
const
point
&
outsidePoint
=
outsidePts
[
outside
i
];
if
(
queryMesh
.
findCell
(
outsidePoint
,
-
1
,
false
)
==
-
1
)
{
...
...
@@ -857,7 +857,7 @@ int main(int argc, char *argv[])
{
// Subset mesh to remove inside cells altogether. Updates cutCells,
// refLevel.
subsetMesh
(
mesh
,
writeMesh
,
newPatch
I
,
inside
,
cutCells
,
refLevel
);
subsetMesh
(
mesh
,
writeMesh
,
newPatch
i
,
inside
,
cutCells
,
refLevel
);
}
...
...
applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C
View file @
1fbcb686
...
...
@@ -91,39 +91,39 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
autoPtr
<
refinementSurfaces
>
surfacePtr
;
// Count number of surfaces.
label
surf
I
=
0
;
forAll
(
allGeometry
.
names
(),
geom
I
)
label
surf
i
=
0
;
forAll
(
allGeometry
.
names
(),
geom
i
)
{
const
word
&
geomName
=
allGeometry
.
names
()[
geom
I
];
const
word
&
geomName
=
allGeometry
.
names
()[
geom
i
];
if
(
surfacesDict
.
found
(
geomName
))
{
surf
I
++
;
surf
i
++
;
}
}
labelList
surfaces
(
surf
I
);
wordList
names
(
surf
I
);
PtrList
<
surfaceZonesInfo
>
surfZones
(
surf
I
);
labelList
surfaces
(
surf
i
);
wordList
names
(
surf
i
);
PtrList
<
surfaceZonesInfo
>
surfZones
(
surf
i
);
labelList
regionOffset
(
surf
I
);
labelList
regionOffset
(
surf
i
);
labelList
globalMinLevel
(
surf
I
,
0
);
labelList
globalMaxLevel
(
surf
I
,
0
);
labelList
globalLevelIncr
(
surf
I
,
0
);
PtrList
<
dictionary
>
globalPatchInfo
(
surf
I
);
List
<
Map
<
label
>>
regionMinLevel
(
surf
I
);
List
<
Map
<
label
>>
regionMaxLevel
(
surf
I
);
List
<
Map
<
label
>>
regionLevelIncr
(
surf
I
);
List
<
Map
<
scalar
>>
regionAngle
(
surf
I
);
List
<
Map
<
autoPtr
<
dictionary
>>>
regionPatchInfo
(
surf
I
);
labelList
globalMinLevel
(
surf
i
,
0
);
labelList
globalMaxLevel
(
surf
i
,
0
);
labelList
globalLevelIncr
(
surf
i
,
0
);
PtrList
<
dictionary
>
globalPatchInfo
(
surf
i
);
List
<
Map
<
label
>>
regionMinLevel
(
surf
i
);
List
<
Map
<
label
>>
regionMaxLevel
(
surf
i
);
List
<
Map
<
label
>>
regionLevelIncr
(
surf
i
);
List
<
Map
<
scalar
>>
regionAngle
(
surf
i
);
List
<
Map
<
autoPtr
<
dictionary
>>>
regionPatchInfo
(
surf
i
);
HashSet
<
word
>
unmatchedKeys
(
surfacesDict
.
toc
());
surf
I
=
0
;
forAll
(
allGeometry
.
names
(),
geom
I
)
surf
i
=
0
;
forAll
(
allGeometry
.
names
(),
geom
i
)
{
const
word
&
geomName
=
allGeometry
.
names
()[
geom
I
];
const
word
&
geomName
=
allGeometry
.
names
()[
geom
i
];
const
entry
*
ePtr
=
surfacesDict
.
lookupEntryPtr
(
geomName
,
false
,
true
);
...
...
@@ -132,10 +132,10 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
const
dictionary
&
shapeDict
=
ePtr
->
dict
();
unmatchedKeys
.
erase
(
ePtr
->
keyword
());
names
[
surf
I
]
=
geomName
;
surfaces
[
surf
I
]
=
geom
I
;
names
[
surf
i
]
=
geomName
;
surfaces
[
surf
i
]
=
geom
i
;
const
searchableSurface
&
surface
=
allGeometry
[
geom
I
];
const
searchableSurface
&
surface
=
allGeometry
[
geom
i
];
// Find the index in shapeControlDict
// Invert surfaceCellSize to get the refinementLevel
...
...
@@ -154,12 +154,12 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
surfaceCellSize
);
globalMinLevel
[
surf
I
]
=
refLevel
;
globalMaxLevel
[
surf
I
]
=
refLevel
;
globalLevelIncr
[
surf
I
]
=
gapLevelIncrement
;
globalMinLevel
[
surf
i
]
=
refLevel
;
globalMaxLevel
[
surf
i
]
=
refLevel
;
globalLevelIncr
[
surf
i
]
=
gapLevelIncrement
;
// Surface zones
surfZones
.
set
(
surf
I
,
new
surfaceZonesInfo
(
surface
,
shapeDict
));
surfZones
.
set
(
surf
i
,
new
surfaceZonesInfo
(
surface
,
shapeDict
));
// Global perpendicular angle
...
...
@@ -167,7 +167,7 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
{
globalPatchInfo
.
set
(
surf
I
,
surf
i
,
shapeDict
.
subDict
(
"patchInfo"
).
clone
()
);
}
...
...
@@ -179,23 +179,23 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
{
const
dictionary
&
regionsDict
=
shapeDict
.
subDict
(
"regions"
);
const
wordList
&
regionNames
=
allGeometry
[
surfaces
[
surf
I
]].
regions
();
allGeometry
[
surfaces
[
surf
i
]].
regions
();
forAll
(
regionNames
,
region
I
)
forAll
(
regionNames
,
region
i
)
{
if
(
regionsDict
.
found
(
regionNames
[
region
I
]))
if
(
regionsDict
.
found
(
regionNames
[
region
i
]))
{
// Get the dictionary for region
const
dictionary
&
regionDict
=
regionsDict
.
subDict
(
regionNames
[
region
I
]
regionNames
[
region
i
]
);
if
(
regionDict
.
found
(
"patchInfo"
))
{
regionPatchInfo
[
surf
I
].
insert
regionPatchInfo
[
surf
i
].
insert
(
region
I
,
region
i
,
regionDict
.
subDict
(
"patchInfo"
).
clone
()
);
}
...
...
@@ -209,16 +209,16 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
const
dictionary
&
shapeControlRegionsDict
=
shapeDict
.
subDict
(
"regions"
);
const
wordList
&
regionNames
=
allGeometry
[
surfaces
[
surf
I
]].
regions
();
allGeometry
[
surfaces
[
surf
i
]].
regions
();
forAll
(
regionNames
,
region
I
)
forAll
(
regionNames
,
region
i
)
{
if
(
shapeControlRegionsDict
.
found
(
regionNames
[
region
I
]))
if
(
shapeControlRegionsDict
.
found
(
regionNames
[
region
i
]))
{
const
dictionary
&
shapeControlRegionDict
=
shapeControlRegionsDict
.
subDict
(
regionNames
[
region
I
]
regionNames
[
region
i
]
);
const
word
scsFuncName
=
...
...
@@ -244,24 +244,24 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
surfaceCellSize
);
regionMinLevel
[
surf
I
].
insert
(
region
I
,
refLevel
);
regionMaxLevel
[
surf
I
].
insert
(
region
I
,
refLevel
);
regionLevelIncr
[
surf
I
].
insert
(
region
I
,
0
);
regionMinLevel
[
surf
i
].
insert
(
region
i
,
refLevel
);
regionMaxLevel
[
surf
i
].
insert
(
region
i
,
refLevel
);
regionLevelIncr
[
surf
i
].
insert
(
region
i
,
0
);
}
}
}
surf
I
++
;
surf
i
++
;
}
}
// Calculate local to global region offset
label
nRegions
=
0
;
forAll
(
surfaces
,
surf
I
)
forAll
(
surfaces
,
surf
i
)
{
regionOffset
[
surf
I
]
=
nRegions
;
nRegions
+=
allGeometry
[
surfaces
[
surf
I
]].
regions
().
size
();
regionOffset
[
surf
i
]
=
nRegions
;
nRegions
+=
allGeometry
[
surfaces
[
surf
i
]].
regions
().
size
();
}
// Rework surface specific information into information per global region
...
...
@@ -270,47 +270,47 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
labelList
gapLevel
(
nRegions
,
-
1
);
PtrList
<
dictionary
>
patchInfo
(
nRegions
);
forAll
(
globalMinLevel
,
surf
I
)
forAll
(
globalMinLevel
,
surf
i
)
{
label
nRegions
=
allGeometry
[
surfaces
[
surf
I
]].
regions
().
size
();
label
nRegions
=
allGeometry
[
surfaces
[
surf
i
]].
regions
().
size
();
// Initialise to global (i.e. per surface)
for
(
label
i
=
0
;
i
<
nRegions
;
i
++
)
{
label
globalRegion
I
=
regionOffset
[
surf
I
]
+
i
;
minLevel
[
globalRegion
I
]
=
globalMinLevel
[
surf
I
];
maxLevel
[
globalRegion
I
]
=
globalMaxLevel
[
surf
I
];
gapLevel
[
globalRegion
I
]
=
maxLevel
[
globalRegion
I
]
+
globalLevelIncr
[
surf
I
];
if
(
globalPatchInfo
.
set
(
surf
I
))
label
globalRegion
i
=
regionOffset
[
surf
i
]
+
i
;
minLevel
[
globalRegion
i
]
=
globalMinLevel
[
surf
i
];
maxLevel
[
globalRegion
i
]
=
globalMaxLevel
[
surf
i
];
gapLevel
[
globalRegion
i
]
=
maxLevel
[
globalRegion
i
]
+
globalLevelIncr
[
surf
i
];
if
(
globalPatchInfo
.
set
(
surf
i
))
{
patchInfo
.
set
(
globalRegion
I
,
globalPatchInfo
[
surf
I
].
clone
()
globalRegion
i
,
globalPatchInfo
[
surf
i
].
clone
()
);
}
}
// Overwrite with region specific information
forAllConstIter
(
Map
<
label
>
,
regionMinLevel
[
surf
I
],
iter
)
forAllConstIter
(
Map
<
label
>
,
regionMinLevel
[
surf
i
],
iter
)
{
label
globalRegion
I
=
regionOffset
[
surf
I
]
+
iter
.
key
();
label
globalRegion
i
=
regionOffset
[
surf
i
]
+
iter
.
key
();
minLevel
[
globalRegion
I
]
=
iter
();
maxLevel
[
globalRegion
I
]
=
regionMaxLevel
[
surf
I
][
iter
.
key
()];
gapLevel
[
globalRegion
I
]
=
maxLevel
[
globalRegion
I
]
+
regionLevelIncr
[
surf
I
][
iter
.
key
()];
minLevel
[
globalRegion
i
]
=
iter
();
maxLevel
[
globalRegion
i
]
=
regionMaxLevel
[
surf
i
][
iter
.
key
()];
gapLevel
[
globalRegion
i
]
=
maxLevel
[
globalRegion
i
]
+
regionLevelIncr
[
surf
i
][
iter
.
key
()];
}
const
Map
<
autoPtr
<
dictionary
>>&
localInfo
=
regionPatchInfo
[
surf
I
];
const
Map
<
autoPtr
<
dictionary
>>&
localInfo
=
regionPatchInfo
[
surf
i
];
forAllConstIter
(
Map
<
autoPtr
<
dictionary
>>
,
localInfo
,
iter
)
{
label
globalRegion
I
=
regionOffset
[
surf
I
]
+
iter
.
key
();
patchInfo
.
set
(
globalRegion
I
,
iter
()().
clone
());
label
globalRegion
i
=
regionOffset
[
surf
i
]
+
iter
.
key
();
patchInfo
.
set
(
globalRegion
i
,
iter
()().
clone
());
}
}
...
...
@@ -336,13 +336,13 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
// Determine maximum region name length
label
maxLen
=
0
;
forAll
(
rf
.
surfaces
(),
surf
I
)
forAll
(
rf
.
surfaces
(),
surf
i
)
{
label
geom
I
=
rf
.
surfaces
()[
surf
I
];
const
wordList
&
regionNames
=
allGeometry
.
regionNames
()[
geom
I
];
forAll
(
regionNames
,
region
I
)
label
geom
i
=
rf
.
surfaces
()[
surf
i
];
const
wordList
&
regionNames
=
allGeometry
.
regionNames
()[
geom
i
];
forAll
(
regionNames
,
region
i
)
{
maxLen
=
Foam
::
max
(
maxLen
,
label
(
regionNames
[
region
I
].
size
()));