Variant of fvMeshLduAddressing that contains addressing instead of slices. More...
Public Member Functions | |
fvMeshPrimitiveLduAddressing (const fvMesh &mesh) | |
Construct from mesh. More... | |
fvMeshPrimitiveLduAddressing (const label nCells, labelList &&lowerAddr, labelList &&upperAddr, const List< const labelUList * > &interfaces, const lduSchedule &ps) | |
Construct from components. More... | |
virtual | ~fvMeshPrimitiveLduAddressing ()=default |
Destructor. More... | |
virtual const labelUList & | lowerAddr () const |
Return lower addressing (i.e. lower label = upper triangle) More... | |
virtual const labelUList & | upperAddr () const |
Return upper addressing (i.e. upper label) More... | |
virtual const labelUList & | patchAddr (const label i) const |
Return patch addressing. More... | |
virtual const lduSchedule & | patchSchedule () const |
Public Member Functions inherited from lduAddressing | |
lduAddressing (const label nEqns) | |
Construct with size (number of equations) More... | |
virtual | ~lduAddressing () |
Destructor. More... | |
label | size () const |
Return number of equations. More... | |
void | clearOut () |
Clear additional addressing. More... | |
const labelUList & | losortAddr () const |
Return losort addressing. More... | |
const labelUList & | ownerStartAddr () const |
Return owner start addressing. More... | |
const labelUList & | losortStartAddr () const |
Return losort start addressing. More... | |
label | triIndex (const label a, const label b) const |
Return off-diagonal index given owner and neighbour label. More... | |
Tuple2< label, scalar > | band () const |
Calculate bandwidth and profile of addressing. More... | |
Static Public Member Functions | |
static labelList | addAddressing (const lduAddressing &addr, const labelListList &nbrCells, label &nExtraFaces, labelList &lower, labelList &upper, labelListList &nbrCellFaces, const globalIndex &, const labelList &globalCellIDs, labelListList &localFaceCells, labelListList &remoteFaceCells) |
Given additional addressing (in the form of additional neighbour. More... | |
static label | triIndex (const lduAddressing &, const label, const label) |
Return off-diagonal index given owner and neighbour label. Return. More... | |
Variant of fvMeshLduAddressing that contains addressing instead of slices.
Alternatively use lduPrimitiveMesh but that assumes there are only lduInterfaces and not also generic patches.
Definition at line 57 of file fvMeshPrimitiveLduAddressing.H.
fvMeshPrimitiveLduAddressing | ( | const fvMesh & | mesh | ) |
Construct from mesh.
Definition at line 37 of file fvMeshPrimitiveLduAddressing.C.
fvMeshPrimitiveLduAddressing | ( | const label | nCells, |
labelList && | lowerAddr, | ||
labelList && | upperAddr, | ||
const List< const labelUList * > & | interfaces, | ||
const lduSchedule & | ps | ||
) |
Construct from components.
Definition at line 62 of file fvMeshPrimitiveLduAddressing.C.
|
virtualdefault |
Destructor.
|
inlinevirtual |
Return lower addressing (i.e. lower label = upper triangle)
Implements lduAddressing.
Definition at line 113 of file fvMeshPrimitiveLduAddressing.H.
Referenced by dynamicOversetFvMesh::active().
|
inlinevirtual |
Return upper addressing (i.e. upper label)
Implements lduAddressing.
Definition at line 119 of file fvMeshPrimitiveLduAddressing.H.
|
inlinevirtual |
Return patch addressing.
Implements lduAddressing.
Definition at line 125 of file fvMeshPrimitiveLduAddressing.H.
|
inlinevirtual |
Implements lduAddressing.
Definition at line 131 of file fvMeshPrimitiveLduAddressing.H.
|
static |
Given additional addressing (in the form of additional neighbour.
cells, i.e. like cellCells)
Definition at line 109 of file fvMeshPrimitiveLduAddressing.C.
References forAll, Foam::ListListOps::inplaceRenumber(), Foam::inplaceReorder(), lduAddressing::lowerAddr(), Foam::max(), Foam::min(), List< T >::setSize(), UList< T >::size(), lduAddressing::size(), globalIndex::toLocal(), lduAddressing::upperAddr(), globalIndex::whichProcID(), and Foam::Zero.
Referenced by dynamicOversetFvMesh::updateAddressing().
|
static |
Return off-diagonal index given owner and neighbour label. Return.
-1 if not found
Definition at line 81 of file fvMeshPrimitiveLduAddressing.C.
References Foam::constant::physicoChemical::b, Foam::max(), Foam::min(), lduAddressing::ownerStartAddr(), and lduAddressing::upperAddr().