43 const UPtrList<lduMesh>&
meshes
50 tot +=
meshes[meshi].lduAddr().size();
74 <<
"Communicator " <<
meshes[meshi].comm()
75 <<
" at index " << meshi
76 <<
" differs between meshes " <<
nl;
107 patchMap_.setSize(nMeshes);
108 patchLocalToGlobalMap_.setSize(nMeshes);
109 faceMap_.setSize(nMeshes);
110 faceBoundMap_.setSize(nMeshes);
111 cellBoundMap_.setSize(nMeshes);
113 facePatchFaceMap_.setSize(nMeshes);
116 cellOffsets_.setSize(1+nMeshes);
118 for (label meshi=0; meshi < nMeshes; ++meshi)
120 cellOffsets_[meshi+1] =
121 cellOffsets_[meshi] +
meshes[meshi].lduAddr().
size();
124 for (label i=0; i < nMeshes; ++i)
126 patchMap_[i].setSize(meshes_[i].interfaces().size(), -1);
127 patchLocalToGlobalMap_[i].setSize(patchMap_[i].size(), -1);
129 faceBoundMap_[i].setSize(patchMap_[i].size());
130 cellBoundMap_[i].setSize(patchMap_[i].size());
131 facePatchFaceMap_[i].setSize(patchMap_[i].size());
label totalSize() const
The total addressed size.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
label size() const noexcept
The number of elements in the list.
Abstract base class for meshes which provide LDU addressing for the construction of lduMatrix and LDU...
An assembly of lduMatrix that is specific inter-region coupling through mapped patches.
void updateMaps(const UPtrList< lduMesh > &)
Size maps.
label findNbrMeshId(const polyPatch &pp, const label iMesh) const
Find nrb mesh Id for mapped patches.
const UPtrList< lduMesh > & meshes() const
Return fvMeshes.
Simplest concrete lduMesh that stores the addressing needed by lduMatrix.
virtual label comm() const
Return communicator used for parallel communication.
A patch is a list of labels that address the faces in the global face list.
virtual word neighbRegionID() const
Return neighbour region name.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Foam::PtrList< Foam::fvMesh > meshes(regionNames.size())
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.