|
|
|
lduAddressing Class ReferenceThe class contains the addressing required by the lduMatrix: upper, lower and losort. More...
Inheritance diagram for lduAddressing:
![]()
Collaboration diagram for lduAddressing:
![]()
Detailed DescriptionThe class contains the addressing required by the lduMatrix: upper, lower and losort.The addressing can be created in two ways: either with references to upper and lower in which case it stores references or from labelLists, in which case it stores the addressing itself. Additionally, the losort addressing belongs to the class is as on lazy evaluation. The ordering of owner addresses is such that the labels are in increasing order, with groups of identical labels for edges "owned" by the same point. The neighbour labels are also ordered in ascending order but only for groups of edges belonging to each point. An example is given below:
owner eighbour
0 1
0 20
1 2
1 21
2 3
2 22
3 4
3 23
4 5
4 24
5 6
5 25
6 7
6 26
7 8
7 27
8 9
8 28
9 10
9 29
There exists an alternative way of addressing the owner list: instead of repeating the same label in the owner list, it is possible to address the start of each point neighbours in the neighbour list. This reduces the size of owner addressing from a list over all edges to a list over all points + 1:
Owner start list: 0 2 4 6 8 10 12 14 16 18
We shall use the second form of the addressing for fast lookup of edge label from the known owner and neighbour, using the following algorithm:
While owner start addressing allows us to find the edge owned by the points, it is also necessary to find the edges for which the point is a neighbour. Losort addressing lists the edges neighboured by the point and we shall use the same trick as above to address into this list. Thus, for every point the losort start gives the address of the first face to neighbour this point.
Definition at line 106 of file lduAddressing.H. Constructor & Destructor Documentation
Definition at line 147 of file lduAddressing.H.
Definition at line 166 of file lduAddressing.C.
Member Function Documentation
Return number of equations.
Definition at line 164 of file lduAddressing.H. Referenced by pairGAMGAgglomeration::agglomerate(), and GAMGAgglomeration::agglomerateLduAddressing().
Here is the caller graph for this function:
![]()
Return lower addressing.
Implemented in fvMeshLduAddressing, and lduPrimitiveMesh. Referenced by pairGAMGAgglomeration::agglomerate(), GAMGAgglomeration::agglomerateLduAddressing(), lduMatrix::Amul(), lduMatrix::H(), fvMesh::interfaces(), and lduMatrix::sumDiag().
Here is the caller graph for this function:
![]()
Return upper addressing.
Implemented in fvMeshLduAddressing, and lduPrimitiveMesh. Referenced by pairGAMGAgglomeration::agglomerate(), GAMGAgglomeration::agglomerateLduAddressing(), lduMatrix::Amul(), lduMatrix::H(), fvMesh::owner(), and lduMatrix::sumDiag().
Here is the caller graph for this function:
![]()
Return patch to internal addressing given patch number.
Implemented in fvMeshLduAddressing, and lduPrimitiveMesh.
Implemented in fvMeshLduAddressing, and lduPrimitiveMesh. Referenced by GAMGAgglomeration::agglomerateLduAddressing(), and lduMatrix::lduAddr().
Here is the caller graph for this function:
![]()
Return losort addressing.
Definition at line 176 of file lduAddressing.C. References Foam::deleteDemandDrivenData().
Here is the call graph for this function:
![]()
Return off-diagonal index given owner and neighbour label.
Definition at line 210 of file lduAddressing.C.
The documentation for this class was generated from the following files:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||