Go to the source code of this file.
|
template<typename MATRIX > |
void | geos::LAIHelperFunctions::makeIdentity (localIndex const n, MPI_Comm const &comm, MATRIX &mat) |
| Create an identity matrix. More...
|
|
template<typename MATRIX > |
void | geos::LAIHelperFunctions::createPermutationMatrix (NodeManager const &nodeManager, int const nDofPerNode, string const &dofKey, MATRIX &permutationMatrix) |
| Create a permutation matrix for a given nodal variable. More...
|
|
template<typename MATRIX > |
void | geos::LAIHelperFunctions::createPermutationMatrix (ElementRegionManager const &elemManager, int const nDofPerCell, string const &dofKey, MATRIX &permutationMatrix) |
| Create a permutation matrix for a given cell-centered variable. More...
|
|
template<typename VECTOR , typename MATRIX > |
VECTOR | geos::LAIHelperFunctions::permuteVector (VECTOR const &vector, MATRIX const &permutationMatrix) |
| Permute a vector. More...
|
|
template<typename MATRIX > |
MATRIX | geos::LAIHelperFunctions::permuteMatrix (MATRIX const &matrix, MATRIX const &permutationMatrix) |
| Permute rows and columns of a square matrix. More...
|
|
template<typename MATRIX > |
MATRIX | geos::LAIHelperFunctions::permuteMatrix (MATRIX const &matrix, MATRIX const &permutationMatrixLeft, MATRIX const &permutationMatrixRight) |
|
template<typename VECTOR > |
void | geos::LAIHelperFunctions::computeRigidBodyModes (MeshLevel const &mesh, DofManager const &dofManager, std::vector< string > const &selection, array1d< VECTOR > &rigidBodyModes) |
| Computes rigid body modes. More...
|
|
◆ computeRigidBodyModes()
template<typename VECTOR >
void geos::LAIHelperFunctions::computeRigidBodyModes |
( |
MeshLevel const & |
mesh, |
|
|
DofManager const & |
dofManager, |
|
|
std::vector< string > const & |
selection, |
|
|
array1d< VECTOR > & |
rigidBodyModes |
|
) |
| |
Computes rigid body modes.
- Template Parameters
-
- Parameters
-
mesh | the mesh |
dofManager | the degree-of-freedom manager |
selection | list of field names |
rigidBodyModes | the output array of linear algebra vectors containing RBMs |
Definition at line 215 of file LAIHelperFunctions.hpp.
◆ createPermutationMatrix() [1/2]
template<typename MATRIX >
void geos::LAIHelperFunctions::createPermutationMatrix |
( |
ElementRegionManager const & |
elemManager, |
|
|
int const |
nDofPerCell, |
|
|
string const & |
dofKey, |
|
|
MATRIX & |
permutationMatrix |
|
) |
| |
Create a permutation matrix for a given cell-centered variable.
- Template Parameters
-
MATRIX | the parallel matrix type |
- Parameters
-
[in] | elemManager | the element region manager |
[in] | nDofPerCell | number of degrees-of-freedom per node |
[in] | dofKey | DofManager key used to access dof index array |
[out] | permutationMatrix | the target matrix |
Definition at line 109 of file LAIHelperFunctions.hpp.
◆ createPermutationMatrix() [2/2]
template<typename MATRIX >
void geos::LAIHelperFunctions::createPermutationMatrix |
( |
NodeManager const & |
nodeManager, |
|
|
int const |
nDofPerNode, |
|
|
string const & |
dofKey, |
|
|
MATRIX & |
permutationMatrix |
|
) |
| |
Create a permutation matrix for a given nodal variable.
- Template Parameters
-
MATRIX | the parallel matrix type |
- Parameters
-
[in] | nodeManager | the node manager |
[in] | nDofPerNode | number of degrees-of-freedom per node |
[in] | dofKey | DofManager key used to access dof index array |
[out] | permutationMatrix | the target matrix |
Definition at line 65 of file LAIHelperFunctions.hpp.
◆ makeIdentity()
template<typename MATRIX >
void geos::LAIHelperFunctions::makeIdentity |
( |
localIndex const |
n, |
|
|
MPI_Comm const & |
comm, |
|
|
MATRIX & |
mat |
|
) |
| |
Create an identity matrix.
- Template Parameters
-
- Parameters
-
n | local size of the square identity matrix |
comm | MPI communicator |
mat | the output matrix |
Definition at line 43 of file LAIHelperFunctions.hpp.
◆ permuteMatrix() [1/2]
template<typename MATRIX >
MATRIX geos::LAIHelperFunctions::permuteMatrix |
( |
MATRIX const & |
matrix, |
|
|
MATRIX const & |
permutationMatrix |
|
) |
| |
Permute rows and columns of a square matrix.
- Parameters
-
[in] | matrix | the source matrix |
[in] | permutationMatrix | permutation matrix |
- Returns
- the permuted matrix
Definition at line 181 of file LAIHelperFunctions.hpp.
◆ permuteMatrix() [2/2]
template<typename MATRIX >
MATRIX geos::LAIHelperFunctions::permuteMatrix |
( |
MATRIX const & |
matrix, |
|
|
MATRIX const & |
permutationMatrixLeft, |
|
|
MATRIX const & |
permutationMatrixRight |
|
) |
| |
Permute rows and columns of a rectangular matrix
- Parameters
-
[in] | matrix | the source matrix |
[in] | permutationMatrixLeft | left permutation matrix |
[in] | permutationMatrixRight | right permutation matrix |
- Returns
- the permuted matrix
Definition at line 197 of file LAIHelperFunctions.hpp.
◆ permuteVector()
template<typename VECTOR , typename MATRIX >
VECTOR geos::LAIHelperFunctions::permuteVector |
( |
VECTOR const & |
vector, |
|
|
MATRIX const & |
permutationMatrix |
|
) |
| |
Permute a vector.
- Template Parameters
-
VECTOR | the parallel vector type |
MATRIX | the parallel matrix type |
- Parameters
-
[in] | vector | the source vector |
[in] | permutationMatrix | the permutation matrix |
- Returns
- the permuted vector
Definition at line 165 of file LAIHelperFunctions.hpp.