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
29e06d36
Commit
29e06d36
authored
Dec 21, 2010
by
Mark Olesen
Browse files
STYLE: use faceUList typedef instead of unallocFaceList
parent
399e160e
Changes
10
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/conversion/foamMeshToFluent/fluentFvMesh.C
View file @
29e06d36
...
...
@@ -158,7 +158,7 @@ void Foam::fluentFvMesh::writeFluentMesh() const
// Writing boundary faces
forAll
(
boundary
(),
patchI
)
{
const
unallocF
aceList
&
patchFaces
=
boundaryMesh
()[
patchI
];
const
f
ace
U
List
&
patchFaces
=
boundaryMesh
()[
patchI
];
const
labelList
&
patchFaceCells
=
boundaryMesh
()[
patchI
].
faceCells
();
...
...
applications/utilities/postProcessing/velocityField/streamFunction/streamFunction.C
View file @
29e06d36
...
...
@@ -107,7 +107,7 @@ int main(int argc, char *argv[])
label
nVisited
=
0
;
label
nVisitedOld
=
0
;
const
unallocF
aceList
&
faces
=
mesh
.
faces
();
const
f
ace
U
List
&
faces
=
mesh
.
faces
();
const
pointField
&
points
=
mesh
.
points
();
label
nInternalFaces
=
mesh
.
nInternalFaces
();
...
...
src/OpenFOAM/meshes/meshShapes/cell/cell.C
View file @
29e06d36
...
...
@@ -32,7 +32,7 @@ const char* const Foam::cell::typeName = "cell";
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam
::
labelList
Foam
::
cell
::
labels
(
const
unallocF
aceList
&
f
)
const
Foam
::
labelList
Foam
::
cell
::
labels
(
const
f
ace
U
List
&
f
)
const
{
// return the unordered list of vertex labels supporting the cell
...
...
@@ -100,7 +100,7 @@ Foam::labelList Foam::cell::labels(const unallocFaceList& f) const
Foam
::
pointField
Foam
::
cell
::
points
(
const
unallocF
aceList
&
f
,
const
f
ace
U
List
&
f
,
const
pointField
&
meshPoints
)
const
{
...
...
@@ -117,7 +117,7 @@ Foam::pointField Foam::cell::points
}
Foam
::
edgeList
Foam
::
cell
::
edges
(
const
unallocF
aceList
&
f
)
const
Foam
::
edgeList
Foam
::
cell
::
edges
(
const
f
ace
U
List
&
f
)
const
{
// return the lisf of cell edges
...
...
@@ -172,7 +172,7 @@ Foam::edgeList Foam::cell::edges(const unallocFaceList& f) const
Foam
::
point
Foam
::
cell
::
centre
(
const
pointField
&
p
,
const
unallocF
aceList
&
f
const
f
ace
U
List
&
f
)
const
{
// When one wants to access the cell centre and magnitude, the
...
...
@@ -238,7 +238,7 @@ Foam::point Foam::cell::centre
Foam
::
scalar
Foam
::
cell
::
mag
(
const
pointField
&
p
,
const
unallocF
aceList
&
f
const
f
ace
U
List
&
f
)
const
{
// When one wants to access the cell centre and magnitude, the
...
...
src/OpenFOAM/meshes/meshShapes/cell/cell.H
View file @
29e06d36
...
...
@@ -90,26 +90,26 @@ public:
inline
label
nFaces
()
const
;
//- Return labels of cell vertices
labelList
labels
(
const
unallocF
aceList
&
)
const
;
labelList
labels
(
const
f
ace
U
List
&
)
const
;
//- Return the cell vertices
pointField
points
(
const
unallocF
aceList
&
,
const
pointField
&
)
const
;
pointField
points
(
const
f
ace
U
List
&
,
const
pointField
&
)
const
;
//- Return cell edges
edgeList
edges
(
const
unallocF
aceList
&
)
const
;
edgeList
edges
(
const
f
ace
U
List
&
)
const
;
//- Return index of opposite face
label
opposingFaceLabel
(
const
label
masterFaceLabel
,
const
unallocF
aceList
&
meshFaces
const
f
ace
U
List
&
meshFaces
)
const
;
//- Return opposite face oriented the same way as the master face
oppositeFace
opposingFace
(
const
label
masterFaceLabel
,
const
unallocF
aceList
&
meshFaces
const
f
ace
U
List
&
meshFaces
)
const
;
...
...
@@ -122,10 +122,10 @@ public:
// future.
//- Returns cell centre
point
centre
(
const
pointField
&
,
const
unallocF
aceList
&
)
const
;
point
centre
(
const
pointField
&
,
const
f
ace
U
List
&
)
const
;
//- Returns cell volume
scalar
mag
(
const
pointField
&
,
const
unallocF
aceList
&
)
const
;
scalar
mag
(
const
pointField
&
,
const
f
ace
U
List
&
)
const
;
// Friend Operators
...
...
src/OpenFOAM/meshes/meshShapes/cell/oppositeCellFace.C
View file @
29e06d36
...
...
@@ -39,7 +39,7 @@ Description
Foam
::
label
Foam
::
cell
::
opposingFaceLabel
(
const
label
masterFaceLabel
,
const
unallocF
aceList
&
meshFaces
const
f
ace
U
List
&
meshFaces
)
const
{
// Algorithm:
...
...
@@ -114,7 +114,7 @@ Foam::label Foam::cell::opposingFaceLabel
Foam
::
oppositeFace
Foam
::
cell
::
opposingFace
(
const
label
masterFaceLabel
,
const
unallocF
aceList
&
meshFaces
const
f
ace
U
List
&
meshFaces
)
const
{
// Get the label of the opposite face
...
...
src/OpenFOAM/meshes/meshShapes/face/faceListFwd.H
View file @
29e06d36
...
...
@@ -39,10 +39,12 @@ Description
namespace
Foam
{
class
face
;
typedef
UList
<
face
>
unallocF
aceList
;
typedef
UList
<
face
>
f
ace
U
List
;
typedef
List
<
face
>
faceList
;
typedef
SubList
<
face
>
faceSubList
;
typedef
List
<
faceList
>
faceListList
;
// same as faceUList:
typedef
UList
<
face
>
unallocFaceList
;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/finiteVolume/fvMesh/fvMeshLduAddressing.H
View file @
29e06d36
...
...
@@ -60,7 +60,7 @@ class fvMeshLduAddressing
const
labelList
&
upperAddr_
;
//- Patch addressing as a list of sublists
List
<
const
unallocL
abelList
*>
patchAddr_
;
List
<
const
l
abel
U
List
*>
patchAddr_
;
//- Patch field evaluation schedule
const
lduSchedule
&
patchSchedule_
;
...
...
src/parallel/reconstruct/reconstruct/fvFieldReconstructor.H
View file @
29e06d36
...
...
@@ -117,7 +117,7 @@ public:
const
labelUList
&
directAddressing
()
const
{
return
unallocL
abelList
::
null
();
return
l
abel
U
List
::
null
();
}
};
...
...
src/parallel/reconstruct/reconstruct/pointFieldReconstructor.H
View file @
29e06d36
...
...
@@ -114,7 +114,7 @@ public:
const
labelUList
&
directAddressing
()
const
{
return
unallocL
abelList
::
null
();
return
l
abel
U
List
::
null
();
}
};
...
...
src/thermophysicalModels/basicSolidThermo/solidMixtureThermo/solidMixtureThermo/solidMixtureThermo.C
View file @
29e06d36
...
...
@@ -226,7 +226,7 @@ Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::rho
{
const
scalarField
&
patchT
=
T_
.
boundaryField
()[
patchI
];
const
polyPatch
&
pp
=
mesh_
.
boundaryMesh
()[
patchI
];
const
unallocL
abelList
&
cells
=
pp
.
faceCells
();
const
l
abel
U
List
&
cells
=
pp
.
faceCells
();
tmp
<
scalarField
>
tRho
(
new
scalarField
(
patchT
.
size
()));
scalarField
&
Rho
=
tRho
();
...
...
@@ -248,7 +248,7 @@ Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::Cp
{
const
scalarField
&
patchT
=
T_
.
boundaryField
()[
patchI
];
const
polyPatch
&
pp
=
mesh_
.
boundaryMesh
()[
patchI
];
const
unallocL
abelList
&
cells
=
pp
.
faceCells
();
const
l
abel
U
List
&
cells
=
pp
.
faceCells
();
tmp
<
scalarField
>
tCp
(
new
scalarField
(
patchT
.
size
()));
scalarField
&
Cp
=
tCp
();
...
...
@@ -270,7 +270,7 @@ Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::hs
{
const
scalarField
&
patchT
=
T_
.
boundaryField
()[
patchI
];
const
polyPatch
&
pp
=
mesh_
.
boundaryMesh
()[
patchI
];
const
unallocL
abelList
&
cells
=
pp
.
faceCells
();
const
l
abel
U
List
&
cells
=
pp
.
faceCells
();
tmp
<
scalarField
>
ths
(
new
scalarField
(
patchT
.
size
()));
scalarField
&
hs
=
ths
();
...
...
@@ -292,7 +292,7 @@ Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::K
{
const
scalarField
&
patchT
=
T_
.
boundaryField
()[
patchI
];
const
polyPatch
&
pp
=
mesh_
.
boundaryMesh
()[
patchI
];
const
unallocL
abelList
&
cells
=
pp
.
faceCells
();
const
l
abel
U
List
&
cells
=
pp
.
faceCells
();
tmp
<
scalarField
>
tK
(
new
scalarField
(
patchT
.
size
()));
scalarField
&
K
=
tK
();
...
...
@@ -314,7 +314,7 @@ Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::Hf
{
const
scalarField
&
patchT
=
T_
.
boundaryField
()[
patchI
];
const
polyPatch
&
pp
=
mesh_
.
boundaryMesh
()[
patchI
];
const
unallocL
abelList
&
cells
=
pp
.
faceCells
();
const
l
abel
U
List
&
cells
=
pp
.
faceCells
();
tmp
<
scalarField
>
tHf
(
new
scalarField
(
patchT
.
size
()));
scalarField
&
Hf
=
tHf
();
...
...
@@ -336,7 +336,7 @@ Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::sigmaS
{
const
scalarField
&
patchT
=
T_
.
boundaryField
()[
patchI
];
const
polyPatch
&
pp
=
mesh_
.
boundaryMesh
()[
patchI
];
const
unallocL
abelList
&
cells
=
pp
.
faceCells
();
const
l
abel
U
List
&
cells
=
pp
.
faceCells
();
tmp
<
scalarField
>
tsigmaS
(
new
scalarField
(
patchT
.
size
()));
scalarField
&
sigmaS
=
tsigmaS
();
...
...
@@ -359,7 +359,7 @@ Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::kappa
{
const
scalarField
&
patchT
=
T_
.
boundaryField
()[
patchI
];
const
polyPatch
&
pp
=
mesh_
.
boundaryMesh
()[
patchI
];
const
unallocL
abelList
&
cells
=
pp
.
faceCells
();
const
l
abel
U
List
&
cells
=
pp
.
faceCells
();
tmp
<
scalarField
>
tKappa
(
new
scalarField
(
patchT
.
size
()));
scalarField
&
kappa
=
tKappa
();
...
...
@@ -382,7 +382,7 @@ Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::emissivity
{
const
scalarField
&
patchT
=
T_
.
boundaryField
()[
patchI
];
const
polyPatch
&
pp
=
mesh_
.
boundaryMesh
()[
patchI
];
const
unallocL
abelList
&
cells
=
pp
.
faceCells
();
const
l
abel
U
List
&
cells
=
pp
.
faceCells
();
tmp
<
scalarField
>
te
(
new
scalarField
(
patchT
.
size
()));
scalarField
&
e
=
te
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment