GEOS
|
#include "common/DataTypes.hpp"
#include "linearAlgebra/interfaces/InterfaceTypes.hpp"
#include "linearAlgebra/DofManager.hpp"
#include "mesh/MeshBody.hpp"
#include "mesh/NodeManager.hpp"
#include "mesh/ElementRegionManager.hpp"
Go to the source code of this file.
Namespaces | |
geos | |
Functions | |
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 > | |
array1d< VECTOR > | geos::LAIHelperFunctions::computeRigidBodyModes (arrayView2d< real64 const, nodes::REFERENCE_POSITION_USD > const &nodePosition, arrayView1d< globalIndex const > const &dofIndex, globalIndex const dofOffset, localIndex const numLocalDof) |
Computes rigid body modes. More... | |
array1d< VECTOR > geos::LAIHelperFunctions::computeRigidBodyModes | ( | arrayView2d< real64 const, nodes::REFERENCE_POSITION_USD > const & | nodePosition, |
arrayView1d< globalIndex const > const & | dofIndex, | ||
globalIndex const | dofOffset, | ||
localIndex const | numLocalDof | ||
) |
Computes rigid body modes.
VECTOR | output vector type |
nodePosition | array of node coordinates |
dofIndex | array of nodal degree-of-freedom indices |
dofOffset | global dof offset for displacement field |
numLocalDof | the number of locally owned displacement dofs |
Definition at line 217 of file LAIHelperFunctions.hpp.
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.
MATRIX | the parallel matrix type |
[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.
void geos::LAIHelperFunctions::createPermutationMatrix | ( | NodeManager const & | nodeManager, |
int const | nDofPerNode, | ||
string const & | dofKey, | ||
MATRIX & | permutationMatrix | ||
) |
Create a permutation matrix for a given nodal variable.
MATRIX | the parallel matrix type |
[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.
void geos::LAIHelperFunctions::makeIdentity | ( | localIndex const | n, |
MPI_Comm const & | comm, | ||
MATRIX & | mat | ||
) |
Create an identity matrix.
MATRIX | type of matrix |
n | local size of the square identity matrix |
comm | MPI communicator |
mat | the output matrix |
Definition at line 43 of file LAIHelperFunctions.hpp.
MATRIX geos::LAIHelperFunctions::permuteMatrix | ( | MATRIX const & | matrix, |
MATRIX const & | permutationMatrix | ||
) |
Permute rows and columns of a square matrix.
[in] | matrix | the source matrix |
[in] | permutationMatrix | permutation matrix |
Definition at line 181 of file LAIHelperFunctions.hpp.
MATRIX geos::LAIHelperFunctions::permuteMatrix | ( | MATRIX const & | matrix, |
MATRIX const & | permutationMatrixLeft, | ||
MATRIX const & | permutationMatrixRight | ||
) |
Permute rows and columns of a rectangular matrix
[in] | matrix | the source matrix |
[in] | permutationMatrixLeft | left permutation matrix |
[in] | permutationMatrixRight | right permutation matrix |
Definition at line 197 of file LAIHelperFunctions.hpp.
VECTOR geos::LAIHelperFunctions::permuteVector | ( | VECTOR const & | vector, |
MATRIX const & | permutationMatrix | ||
) |
Permute a vector.
VECTOR | the parallel vector type |
MATRIX | the parallel matrix type |
[in] | vector | the source vector |
[in] | permutationMatrix | the permutation matrix |
Definition at line 165 of file LAIHelperFunctions.hpp.