Go to the documentation of this file.
34 Info<<
"void polyMesh::initMesh() : "
35 <<
"initialising primitiveMesh" <<
endl;
66 <<
"Illegal cell label " <<
owner_[facei]
67 <<
" in neighbour addressing for face " << facei
80 <<
" in neighbour addressing for face " << facei
112 Info<<
"void polyMesh::initMesh(cellList& c) : "
113 <<
"calculating owner-neighbour arrays" <<
endl;
116 owner_.setSize(faces_.size(), -1);
117 neighbour_.setSize(faces_.size(), -1);
119 boolList markedFaces(faces_.size(),
false);
121 label nInternalFaces = 0;
130 if (cellfaces[faceI] < 0)
133 <<
"Illegal face label " << cellfaces[faceI]
134 <<
" in cell " << cellI
138 if (!markedFaces[cellfaces[faceI]])
141 owner_[cellfaces[faceI]] = cellI;
142 markedFaces[cellfaces[faceI]] =
true;
147 neighbour_[cellfaces[faceI]] = cellI;
156 neighbour_.
setSize(nInternalFaces);
172 +
" nInternalFaces: " +
Foam::name(this->nInternalFaces());
174 owner_.note() = meshInfo;
175 neighbour_.note() = meshInfo;
#define forAll(list, i)
Loop across all elements in list.
labelIOList neighbour_
Face neighbour.
Ostream & endl(Ostream &os)
Add newline and flush stream.
labelIOList owner_
Face owner.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label nInternalFaces() const
pointIOField points_
Points.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
void setSize(const label)
Reset size of List.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void reset(const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
Reset this primitiveMesh given the primitive array sizes.
const dimensionedScalar c
Speed of light in a vacuum.
void size(const label)
Override size to be inconsistent with allocated storage.
word name(const complex &)
Return a string representation of a complex.
string & note()
Return non-constant access to the optional note.
void initMesh()
Initialise the polyMesh from the primitive data.