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
2d5ff316
Commit
2d5ff316
authored
Apr 24, 2016
by
Henry Weller
Browse files
boundaryField() -> boundaryFieldRef()
parent
3758659a
Changes
155
Hide whitespace changes
Inline
Side-by-side
applications/solvers/multiphase/reactingEulerFoam/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C
View file @
2d5ff316
...
...
@@ -36,18 +36,17 @@ void Foam::BlendedInterfacialModel<ModelType>::correctFixedFluxBCs
GeometricField
&
field
)
const
{
forAll
(
phase1_
.
phi
()().
boundaryField
(),
patch
I
)
forAll
(
phase1_
.
phi
()().
boundaryField
(),
patch
i
)
{
if
(
isA
<
fixedValueFvsPatchScalarField
>
(
phase1_
.
phi
()().
boundaryField
()[
patch
I
]
phase1_
.
phi
()().
boundaryField
()[
patch
i
]
)
)
{
field
.
boundaryField
()[
patchI
]
=
Zero
;
field
.
boundaryField
()[
patchi
]
=
Zero
;
}
}
}
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C
View file @
2d5ff316
...
...
@@ -36,18 +36,17 @@ void Foam::BlendedInterfacialModel<modelType>::correctFixedFluxBCs
GeometricField
&
field
)
const
{
forAll
(
pair_
.
phase1
().
phi
().
boundaryField
(),
patch
I
)
forAll
(
pair_
.
phase1
().
phi
().
boundaryField
(),
patch
i
)
{
if
(
isA
<
fixedValueFvsPatchScalarField
>
(
pair_
.
phase1
().
phi
().
boundaryField
()[
patch
I
]
pair_
.
phase1
().
phi
().
boundaryField
()[
patch
i
]
)
)
{
field
.
boundaryField
()[
patchI
]
=
Zero
;
field
.
boundaryField
()[
patchi
]
=
Zero
;
}
}
}
...
...
applications/test/PatchTools/Test-PatchTools.C
View file @
2d5ff316
...
...
@@ -208,8 +208,8 @@ int main(int argc, char *argv[])
#include
"createMesh.H"
const
word
patchName
=
args
[
1
];
label
patch
I
=
mesh
.
boundaryMesh
().
findPatchID
(
patchName
);
const
polyPatch
&
pp
=
mesh
.
boundaryMesh
()[
patch
I
];
label
patch
i
=
mesh
.
boundaryMesh
().
findPatchID
(
patchName
);
const
polyPatch
&
pp
=
mesh
.
boundaryMesh
()[
patch
i
];
const
indirectPrimitivePatch
&
cpp
=
mesh
.
globalData
().
coupledPatch
();
...
...
applications/test/extendedStencil/Test-ExtendedStencil2.C
View file @
2d5ff316
...
...
@@ -156,9 +156,9 @@ int main(int argc, char *argv[])
}
// Insert my boundary values
label
nCompact
=
fld
.
size
();
forAll
(
fld
.
boundaryField
(),
patch
I
)
forAll
(
fld
.
boundaryField
(),
patch
i
)
{
const
fvPatchField
<
vector
>&
pfld
=
fld
.
boundaryField
()[
patch
I
];
const
fvPatchField
<
vector
>&
pfld
=
fld
.
boundaryField
()[
patch
i
];
forAll
(
pfld
,
i
)
{
...
...
applications/test/mappedPatch/Test-MappedPatch.C
View file @
2d5ff316
...
...
@@ -60,11 +60,11 @@ int main(int argc, char *argv[])
calculatedFvPatchVectorField
::
typeName
);
forAll
(
mesh
.
boundaryMesh
(),
patch
I
)
forAll
(
mesh
.
boundaryMesh
(),
patch
i
)
{
if
(
isA
<
mappedPolyPatch
>
(
mesh
.
boundaryMesh
()[
patch
I
]))
if
(
isA
<
mappedPolyPatch
>
(
mesh
.
boundaryMesh
()[
patch
i
]))
{
patchFieldTypes
[
patch
I
]
=
patchFieldTypes
[
patch
i
]
=
mappedFixedValueFvPatchVectorField
::
typeName
;
}
}
...
...
@@ -89,23 +89,23 @@ int main(int argc, char *argv[])
cc
.
internalField
()
=
mesh
.
C
().
internalField
();
cc
.
boundaryFieldRef
().
updateCoeffs
();
forAll
(
cc
.
boundaryField
(),
patch
I
)
forAll
(
cc
.
boundaryField
(),
patch
i
)
{
if
(
isA
<
mappedFixedValueFvPatchVectorField
>
(
cc
.
boundaryField
()[
patch
I
]
cc
.
boundaryField
()[
patch
i
]
)
)
{
Pout
<<
"Detected a mapped patch:"
<<
patch
I
<<
endl
;
Pout
<<
"Detected a mapped patch:"
<<
patch
i
<<
endl
;
OFstream
str
(
mesh
.
boundaryMesh
()[
patch
I
].
name
()
+
".obj"
);
OFstream
str
(
mesh
.
boundaryMesh
()[
patch
i
].
name
()
+
".obj"
);
Pout
<<
"Writing mapped values to "
<<
str
.
name
()
<<
endl
;
label
vertI
=
0
;
const
fvPatchVectorField
&
fvp
=
cc
.
boundaryField
()[
patch
I
];
const
fvPatchVectorField
&
fvp
=
cc
.
boundaryField
()[
patch
i
];
forAll
(
fvp
,
i
)
{
...
...
applications/test/mesh/Test-mesh.C
View file @
2d5ff316
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -66,18 +66,18 @@ int main(int argc, char *argv[])
const
polyBoundaryMesh
&
pbm
=
mesh
.
boundaryMesh
();
faceListList
boundaryFaces
(
pbm
.
size
());
forAll
(
pbm
,
patch
I
)
forAll
(
pbm
,
patch
i
)
{
boundaryFaces
[
patch
I
]
=
pbm
[
patch
I
];
boundaryFaces
[
patch
i
]
=
pbm
[
patch
i
];
}
wordList
boundaryPatchNames
(
pbm
.
names
());
PtrList
<
dictionary
>
boundaryDicts
(
pbm
.
size
());
forAll
(
pbm
,
patch
I
)
forAll
(
pbm
,
patch
i
)
{
OStringStream
os
;
os
<<
pbm
[
patch
I
];
os
<<
pbm
[
patch
i
];
IStringStream
is
(
os
.
str
());
boundaryDicts
.
set
(
patch
I
,
new
dictionary
(
is
));
boundaryDicts
.
set
(
patch
i
,
new
dictionary
(
is
));
}
word
defaultBoundaryPatchName
=
"defaultFaces"
;
...
...
applications/test/patchRegion/Test-patchRegion.C
View file @
2d5ff316
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -59,8 +59,8 @@ int main(int argc, char *argv[])
const
polyBoundaryMesh
&
pbm
=
mesh
.
boundaryMesh
();
label
patch
I
=
pbm
.
findPatchID
(
patchName
);
const
polyPatch
&
patch
=
pbm
[
patch
I
];
label
patch
i
=
pbm
.
findPatchID
(
patchName
);
const
polyPatch
&
patch
=
pbm
[
patch
i
];
Info
<<
"Patch:"
<<
patch
.
name
()
<<
endl
;
...
...
applications/test/router/Test-processorRouter.C
View file @
2d5ff316
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -52,9 +52,9 @@ labelList procNeighbours(const polyMesh& mesh)
label
nNeighbours
=
0
;
forAll
(
mesh
.
boundaryMesh
(),
patch
I
)
forAll
(
mesh
.
boundaryMesh
(),
patch
i
)
{
if
(
isA
<
processorPolyPatch
>
(
mesh
.
boundaryMesh
()[
patch
I
]))
if
(
isA
<
processorPolyPatch
>
(
mesh
.
boundaryMesh
()[
patch
i
]))
{
nNeighbours
++
;
}
...
...
@@ -64,11 +64,11 @@ labelList procNeighbours(const polyMesh& mesh)
nNeighbours
=
0
;
forAll
(
mesh
.
boundaryMesh
(),
patch
I
)
forAll
(
mesh
.
boundaryMesh
(),
patch
i
)
{
if
(
isA
<
processorPolyPatch
>
(
mesh
.
boundaryMesh
()[
patch
I
]))
if
(
isA
<
processorPolyPatch
>
(
mesh
.
boundaryMesh
()[
patch
i
]))
{
const
polyPatch
&
patch
=
mesh
.
boundaryMesh
()[
patch
I
];
const
polyPatch
&
patch
=
mesh
.
boundaryMesh
()[
patch
i
];
const
processorPolyPatch
&
procPatch
=
refCast
<
const
processorPolyPatch
>
(
patch
);
...
...
applications/test/volPointInterpolation/Test-volPointInterpolation.C
View file @
2d5ff316
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2016
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -70,11 +70,11 @@ int main(int argc, char *argv[])
const
pointBoundaryMesh
&
pbm
=
pMesh
.
boundary
();
Info
<<
"pointMesh boundary"
<<
nl
;
forAll
(
pbm
,
patch
I
)
forAll
(
pbm
,
patch
i
)
{
Info
<<
"patch="
<<
pbm
[
patch
I
].
name
()
<<
", type="
<<
pbm
[
patch
I
].
type
()
<<
", coupled="
<<
pbm
[
patch
I
].
coupled
()
Info
<<
"patch="
<<
pbm
[
patch
i
].
name
()
<<
", type="
<<
pbm
[
patch
i
].
type
()
<<
", coupled="
<<
pbm
[
patch
i
].
coupled
()
<<
endl
;
}
...
...
@@ -83,10 +83,10 @@ int main(int argc, char *argv[])
pointScalarField
pp
(
pInterp
.
interpolate
(
p
));
Info
<<
pp
.
name
()
<<
" boundary"
<<
endl
;
forAll
(
pp
.
boundaryField
(),
patch
I
)
forAll
(
pp
.
boundaryField
(),
patch
i
)
{
Info
<<
pbm
[
patch
I
].
name
()
<<
" coupled="
<<
pp
.
boundaryField
()[
patch
I
].
coupled
()
<<
endl
;
Info
<<
pbm
[
patch
i
].
name
()
<<
" coupled="
<<
pp
.
boundaryField
()[
patch
i
].
coupled
()
<<
endl
;
}
pp
.
write
();
...
...
applications/utilities/mesh/advanced/PDRMesh/PDRMesh.C
View file @
2d5ff316
...
...
@@ -126,7 +126,7 @@ void subsetVolFields
(
const
fvMeshSubset
&
subsetter
,
const
IOobjectList
&
objectsList
,
const
label
patch
I
,
const
label
patch
i
,
const
Type
&
exposedValue
,
const
word
GeomVolType
,
PtrList
<
GeometricField
<
Type
,
fvPatchField
,
volMesh
>>&
subFields
...
...
@@ -152,15 +152,15 @@ void subsetVolFields
subFields
.
set
(
i
,
subsetter
.
interpolate
(
volField
));
// Explicitly set exposed faces (in patch
I
) to exposedValue.
if
(
patch
I
>=
0
)
// Explicitly set exposed faces (in patch
i
) to exposedValue.
if
(
patch
i
>=
0
)
{
fvPatchField
<
Type
>&
fld
=
subFields
[
i
++
].
boundaryField
()[
patch
I
];
subFields
[
i
++
].
boundaryField
Ref
()[
patch
i
];
label
newStart
=
fld
.
patch
().
patch
().
start
();
label
oldPatchI
=
subsetter
.
patchMap
()[
patch
I
];
label
oldPatchI
=
subsetter
.
patchMap
()[
patch
i
];
if
(
oldPatchI
==
-
1
)
{
...
...
@@ -198,7 +198,7 @@ void subsetSurfaceFields
(
const
fvMeshSubset
&
subsetter
,
const
IOobjectList
&
objectsList
,
const
label
patch
I
,
const
label
patch
i
,
const
Type
&
exposedValue
,
const
word
GeomSurfType
,
PtrList
<
GeometricField
<
Type
,
fvsPatchField
,
surfaceMesh
>>&
subFields
...
...
@@ -225,15 +225,15 @@ void subsetSurfaceFields
subFields
.
set
(
i
,
subsetter
.
interpolate
(
volField
));
// Explicitly set exposed faces (in patch
I
) to exposedValue.
if
(
patch
I
>=
0
)
// Explicitly set exposed faces (in patch
i
) to exposedValue.
if
(
patch
i
>=
0
)
{
fvsPatchField
<
Type
>&
fld
=
subFields
[
i
++
].
boundaryField
()[
patch
I
];
subFields
[
i
++
].
boundaryField
Ref
()[
patch
i
];
label
newStart
=
fld
.
patch
().
patch
().
start
();
label
oldPatchI
=
subsetter
.
patchMap
()[
patch
I
];
label
oldPatchI
=
subsetter
.
patchMap
()[
patch
i
];
if
(
oldPatchI
==
-
1
)
{
...
...
@@ -291,16 +291,19 @@ void initCreatedPatches
{
GeoField
&
field
=
const_cast
<
GeoField
&>
(
*
fieldIter
());
forAll
(
field
.
boundaryField
(),
patchi
)
typename
GeoField
::
GeometricBoundaryField
&
fieldBf
=
field
.
boundaryFieldRef
();
forAll
(
fieldBf
,
patchi
)
{
if
(
map
.
oldPatchSizes
()[
patchi
]
==
0
)
{
// Not mapped.
field
.
boundaryField
()
[
patchi
]
=
initValue
;
field
Bf
[
patchi
]
=
initValue
;
if
(
field
.
boundaryField
()
[
patchi
].
fixesValue
())
if
(
field
Bf
[
patchi
].
fixesValue
())
{
field
.
boundaryField
()
[
patchi
]
==
initValue
;
field
Bf
[
patchi
]
==
initValue
;
}
}
}
...
...
@@ -526,9 +529,9 @@ void createBaffles
// Wrapper around find patch. Also makes sure same patch in parallel.
label
findPatch
(
const
polyBoundaryMesh
&
patches
,
const
word
&
patchName
)
{
label
patch
I
=
patches
.
findPatchID
(
patchName
);
label
patch
i
=
patches
.
findPatchID
(
patchName
);
if
(
patch
I
==
-
1
)
if
(
patch
i
==
-
1
)
{
FatalErrorInFunction
<<
"Illegal patch "
<<
patchName
...
...
@@ -538,20 +541,20 @@ label findPatch(const polyBoundaryMesh& patches, const word& patchName)
// Check same patch for all procs
{
label
newPatch
=
patch
I
;
label
newPatch
=
patch
i
;
reduce
(
newPatch
,
minOp
<
label
>
());
if
(
newPatch
!=
patch
I
)
if
(
newPatch
!=
patch
i
)
{
FatalErrorInFunction
<<
"Patch "
<<
patchName
<<
" should have the same patch index on all processors."
<<
nl
<<
"On my processor it has index "
<<
patch
I
<<
"On my processor it has index "
<<
patch
i
<<
" ; on some other processor it has index "
<<
newPatch
<<
exit
(
FatalError
);
}
}
return
patch
I
;
return
patch
i
;
}
...
...
@@ -641,7 +644,7 @@ int main(int argc, char *argv[])
{
faceSet
fSet
(
mesh
,
setsAndPatches
[
setI
][
0
]);
label
patch
I
=
findPatch
label
patch
i
=
findPatch
(
mesh
.
boundaryMesh
(),
setsAndPatches
[
setI
][
1
]
...
...
@@ -658,7 +661,7 @@ int main(int argc, char *argv[])
<<
" but also in patch "
<<
wantedPatch
[
iter
.
key
()]
<<
exit
(
FatalError
);
}
wantedPatch
[
iter
.
key
()]
=
patch
I
;
wantedPatch
[
iter
.
key
()]
=
patch
i
;
}
}
...
...
@@ -683,7 +686,7 @@ int main(int argc, char *argv[])
);
faceSet
fSet
(
mesh
,
coupledAndPatches
[
setI
][
0
]);
label
patch
I
=
findPatch
(
patches
,
coupledAndPatches
[
setI
][
1
]);
label
patch
i
=
findPatch
(
patches
,
coupledAndPatches
[
setI
][
1
]);
forAllConstIter
(
faceSet
,
fSet
,
iter
)
{
...
...
@@ -696,7 +699,7 @@ int main(int argc, char *argv[])
<<
" but also in patch "
<<
coupledWantedPatch
[
iter
.
key
()]
<<
exit
(
FatalError
);
}
coupledWantedPatch
[
iter
.
key
()]
=
patch
I
;
coupledWantedPatch
[
iter
.
key
()]
=
patch
i
;
cyclicWantedPatch_half0
[
iter
.
key
()]
=
cyclicId
;
cyclicWantedPatch_half1
[
iter
.
key
()]
=
cyclicSlaveId
;
}
...
...
applications/utilities/mesh/advanced/autoRefineMesh/snappyRefineMesh.C
View file @
2d5ff316
...
...
@@ -193,24 +193,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
);
...
...
@@ -232,15 +232,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
;
}
...
...
@@ -482,7 +482,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
...
...
@@ -503,7 +503,7 @@ void subsetMesh
(
cellLabels
,
exposedFaces
,
labelList
(
exposedFaces
.
size
(),
patch
I
),
labelList
(
exposedFaces
.
size
(),
patch
i
),
meshMod
);
...
...
applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C
View file @
2d5ff316
...
...
@@ -221,9 +221,9 @@ int main(int argc, char *argv[])
List
<
polyPatch
*>
p
(
patches
.
size
());
forAll
(
p
,
patch
I
)
forAll
(
p
,
patch
i
)
{
p
[
patch
I
]
=
patches
[
patch
I
].
clone
(
fMesh
.
boundaryMesh
()).
ptr
();
p
[
patch
i
]
=
patches
[
patch
i
].
clone
(
fMesh
.
boundaryMesh
()).
ptr
();
}
fMesh
.
addFvPatches
(
p
);
...
...
@@ -294,15 +294,17 @@ int main(int argc, char *argv[])
}
}
volScalarField
::
GeometricBoundaryField
&
postRefLevelBf
=
postRefLevel
.
boundaryFieldRef
();
// For volScalarField: set boundary values to same as cell.
// Note: could also put
// zeroGradient b.c. on postRefLevel and do evaluate.
forAll
(
postRefLevel
.
boundaryField
(),
patch
I
)
forAll
(
postRefLevel
.
boundaryField
(),
patch
i
)
{
const
polyPatch
&
pp
=
patches
[
patch
I
];
const
polyPatch
&
pp
=
patches
[
patch
i
];
fvPatchScalarField
&
bField
=
postRefLevel
.
boundaryField
()
[
patch
I
];
fvPatchScalarField
&
bField
=
postRefLevel
Bf
[
patch
i
];
Info
<<
"Setting field for patch "
<<
endl
;
...
...
applications/utilities/mesh/conversion/Optional/ccm26ToFoam/ccm26ToFoam.C
View file @
2d5ff316
...
...
@@ -931,38 +931,38 @@ int main(int argc, char *argv[])
label
meshFaceI
=
foamPatchStarts
[
0
];
forAll
(
newPatches
,
patch
I
)
forAll
(
newPatches
,
patch
i
)
{
const
word
&
patchName
=
foamPatchNames
[
patch
I
];
const
word
&
patchType
=
foamPatchTypes
[
patch
I
];
const
word
&
patchName
=
foamPatchNames
[
patch
i
];
const
word
&
patchType
=
foamPatchTypes
[
patch
i
];
Pout
<<
"Patch:"
<<
patchName
<<
" start at:"
<<
meshFaceI
<<
" size:"
<<
foamPatchSizes
[
patch
I
]
<<
" end at:"
<<
meshFaceI
+
foamPatchSizes
[
patch
I
]
<<
" size:"
<<
foamPatchSizes
[
patch
i
]
<<
" end at:"
<<
meshFaceI
+
foamPatchSizes
[
patch
i
]
<<
endl
;
if
(
patchType
==
"wall"
)
{
newPatches
[
patch
I
]
=
newPatches
[
patch
i
]
=
new
wallPolyPatch
(
patchName
,
foamPatchSizes
[
patch
I
],
foamPatchSizes
[
patch
i
],
meshFaceI
,
patch
I
,
patch
i
,
mesh
.
boundaryMesh
(),
patchType
);
}
else
if
(
patchType
==
"symmetryplane"
)
{
newPatches
[
patch
I
]
=
newPatches
[
patch
i
]
=
new
symmetryPolyPatch
(
patchName
,
foamPatchSizes
[
patch
I
],
foamPatchSizes
[
patch
i
],
meshFaceI
,
patch
I
,
patch
i
,
mesh
.
boundaryMesh
(),
patchType
);
...
...
@@ -970,13 +970,13 @@ int main(int argc, char *argv[])
else
if
(
patchType
==
"empty"
)
{
// Note: not ccm name, introduced by us above.
newPatches
[
patch
I
]
=
newPatches
[
patch
i
]
=
new
emptyPolyPatch
(
patchName
,
foamPatchSizes
[
patch
I
],
foamPatchSizes
[
patch
i
],
meshFaceI
,
patch
I
,
patch
i
,
mesh
.
boundaryMesh
(),
patchType
);
...
...
@@ -985,19 +985,19 @@ int main(int argc, char *argv[])
{
// All other ccm types become straight polyPatch:
// 'inlet', 'outlet', ...
newPatches
[
patch
I
]
=
newPatches
[
patch
i
]
=
new
polyPatch
(
patchName
,
foamPatchSizes
[
patch
I
],
foamPatchSizes
[
patch
i
],
meshFaceI
,
patch
I
,
patch
i
,
mesh
.
boundaryMesh
(),
word
::
null
);
}
meshFaceI
+=
foamPatchSizes
[
patch
I
];
meshFaceI
+=
foamPatchSizes
[
patch
i
];
}
if
(
meshFaceI
!=
foamOwner
.
size
())
...
...
applications/utilities/mesh/conversion/ansysToFoam/ansysToFoam.L
View file @
2d5ff316
...
...
@@ -485,18 +485,18 @@ int main(int argc, char *argv[])
faceListList boundary(slPatchCells.size());
wordList patchNames(slPatchCells.size());
forAll(slPatchCells, patch
I
)
forAll(slPatchCells, patch
i
)