FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <snl_fei_Constraint.hpp>
Public Member Functions | |
Constraint (int id=0, bool isPenaltyConstr=false) | |
Constraint (int id, int constraintIDType, bool isSlave, bool isPenaltyConstr, int numIDs, const int *idTypes, const int *IDs, const int *fieldIDs, int offsetOfSlave, int offsetIntoSlaveField, const double *weights, double rhsValue, fei::VectorSpace *vspace) | |
virtual | ~Constraint () |
int | getConstraintID () const |
void | setConstraintID (int id) |
int | getIDType () const |
snl_fei::RecordCollection * | getRecordCollection () |
void | setIDType (int idType) |
bool | isPenalty () const |
void | setIsPenalty (bool isPenaltyConstr) |
int | getEqnNumber () const |
void | setEqnNumber (int eqn) |
int | getBlkEqnNumber () const |
void | setBlkEqnNumber (int blkEqn) |
RecordType | getSlave () |
void | setSlave (int slv) |
int | getSlaveFieldID () const |
void | setSlaveFieldID (int f) |
int | getOffsetIntoSlaveField () const |
void | setOffsetIntoSlaveField (int offset) |
std::vector< int > & | getMasters () |
std::vector< int > & | getMasterIDTypes () |
std::vector < snl_fei::RecordCollection * > & | getMasterRecordCollections () |
std::vector< int > & | getMasterFieldIDs () |
std::vector< double > & | getMasterWeights () |
double | getRHSValue () const |
void | setRHSValue (double rhs) |
bool | operator!= (const Constraint< RecordType > &rhs) |
bool | structurallySame (const Constraint< RecordType > &rhs) |
template<> | |
Constraint (int id, int constraintIDType, bool isSlave, bool isPenaltyConstr, int numIDs, const int *idTypes, const int *IDs, const int *fieldIDs, int offsetOfSlave, int offsetIntoSlaveField, const double *weights, double rhsValue, fei::VectorSpace *vspace) | |
Private Member Functions | |
Constraint (const Constraint< RecordType > &src) | |
Constraint< RecordType > & | operator= (const Constraint< RecordType > &src) |
Private Attributes | |
int | constraintID_ |
int | idType_ |
snl_fei::RecordCollection * | recordCollection_ |
bool | isPenalty_ |
int | eqnNumber_ |
int | blkEqnNumber_ |
int | slave_ |
int | slaveField_ |
int | offsetIntoSlaveField_ |
std::vector< int > | masters_ |
std::vector< int > | masterIDTypes_ |
std::vector < snl_fei::RecordCollection * > | masterRecordCollections_ |
std::vector< int > | masterFields_ |
std::vector< double > | masterWeights_ |
double | rhsValue_ |
container for constraint attributes
Definition at line 23 of file snl_fei_Constraint.hpp.
|
inline |
constructor
Definition at line 165 of file snl_fei_Constraint.hpp.
|
inline |
constructor
Definition at line 186 of file snl_fei_Constraint.hpp.
|
inlinevirtual |
destructor
Definition at line 308 of file snl_fei_Constraint.hpp.
|
inlineprivate |
Definition at line 288 of file snl_fei_Constraint.hpp.
|
inline |
Definition at line 220 of file snl_fei_Constraint.hpp.
References fei::VectorSpace::addDOFs(), fei::VectorSpace::getFieldSize(), snl_fei::RecordCollection::getLocalID(), snl_fei::Constraint< RecordType >::getMasterFieldIDs(), snl_fei::Constraint< RecordType >::getMasterIDTypes(), snl_fei::Constraint< RecordType >::getMasters(), fei::VectorSpace::getRecordCollection(), snl_fei::RecordCollection::getRecordWithLocalID(), fei::Record< GlobalIDType >::hasSlaveDof(), snl_fei::Constraint< RecordType >::idType_, snl_fei::Constraint< RecordType >::masterRecordCollections_, snl_fei::Constraint< RecordType >::masterWeights_, snl_fei::Constraint< RecordType >::recordCollection_, snl_fei::Constraint< RecordType >::setOffsetIntoSlaveField(), snl_fei::Constraint< RecordType >::setSlave(), and snl_fei::Constraint< RecordType >::setSlaveFieldID().
|
inline |
get constraint identifier
Definition at line 47 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::constraintID_.
Referenced by fei::MatrixGraph_Impl2::addLagrangeConstraintsToGraph(), snl_fei::LinearSystem_General::loadLagrangeConstraint(), and LinSysCoreFilter::setLinSysCoreCREqns().
|
inline |
set constraint identifier. power-users only
Definition at line 50 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::constraintID_.
Referenced by SNL_FEI_Structure::initCRMult(), and SNL_FEI_Structure::initCRPen().
|
inline |
get the identifier-type that the fei uses to reference constraints
Definition at line 53 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::idType_.
Referenced by fei::MatrixGraph_Impl2::addLagrangeConstraintsToGraph(), fei::MatrixGraph_Impl2::createSlaveMatrices(), and snl_fei::LinearSystem_General::loadLagrangeConstraint().
|
inline |
Definition at line 55 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::recordCollection_.
Referenced by snl_fei::Constraint< RecordType >::getSlave().
|
inline |
set the identifier-type that the fei uses to reference constraints. power-users only, this is a dangerous function with side-effects
Definition at line 59 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::idType_.
|
inline |
query whether constraint is a penalty constraint
Definition at line 62 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::isPenalty_.
|
inline |
set whether constraint is a penalty constraint. Another dangerous function for power-users.
Definition at line 66 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::isPenalty_.
Referenced by SNL_FEI_Structure::initCRPen().
|
inline |
get equation-number of constraint. (only valid if lagrange-multiplier)
Definition at line 70 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::eqnNumber_.
Referenced by LinSysCoreFilter::getCRMultipliers(), SNL_FEI_Structure::initializeBlkEqnMapper(), SNL_FEI_Structure::initMultCRStructure(), LinSysCoreFilter::loadCRMult(), LinSysCoreFilter::putCRMultipliers(), snl_fei::resolveConflictingCRs(), LinSysCoreFilter::resolveConflictingCRs(), LinSysCoreFilter::setLinSysCoreCREqns(), and SNL_FEI_Structure::writeEqn2NodeMap().
|
inline |
set equation-number of constraint. (only valid if lagrange-multiplier)
Definition at line 74 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::eqnNumber_.
Referenced by fei::MatrixGraph_Impl2::addLagrangeConstraintsToGraph(), and SNL_FEI_Structure::setMultCREqnInfo().
|
inline |
get block-equation number of constraint. (only valid if lagrange-multiplier
Definition at line 78 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::blkEqnNumber_.
Referenced by SNL_FEI_Structure::initializeBlkEqnMapper(), and SNL_FEI_Structure::writeEqn2NodeMap().
|
inline |
set block-equation number of constraint. (only valid if lagrange-multiplier
Definition at line 82 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::blkEqnNumber_.
Referenced by fei::MatrixGraph_Impl2::addLagrangeConstraintsToGraph(), and SNL_FEI_Structure::setMultCREqnInfo().
|
inline |
intended for fei-implementation use only
Definition at line 86 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::getRecordCollection(), snl_fei::RecordCollection::getRecordWithLocalID(), and snl_fei::Constraint< RecordType >::slave_.
Referenced by fei::MatrixGraph_Impl2::createSlaveMatrices().
|
inline |
intended for fei-implementation use only
Definition at line 89 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::slave_.
Referenced by snl_fei::Constraint< RecordType >::Constraint().
|
inline |
if slave constraint, return constrained field-identifier of slaved mesh-object
Definition at line 93 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::slaveField_.
Referenced by fei::MatrixGraph_Impl2::createSlaveMatrices().
|
inline |
if slave constraint, set constrained field-identifier of slaved mesh-object
Definition at line 97 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::slaveField_.
Referenced by snl_fei::Constraint< RecordType >::Constraint().
|
inline |
get offset of slaved field-component
Definition at line 100 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::offsetIntoSlaveField_.
Referenced by fei::MatrixGraph_Impl2::createSlaveMatrices().
|
inline |
set offset of slaved field-component
Definition at line 103 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::offsetIntoSlaveField_.
Referenced by snl_fei::Constraint< RecordType >::Constraint().
|
inline |
get master mesh-objects
Definition at line 107 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::masters_.
Referenced by snl_fei::Constraint< RecordType >::Constraint(), fei::MatrixGraph_Impl2::createSlaveMatrices(), SNL_FEI_Structure::finalizeActiveNodes(), fei::MatrixGraph_Impl2::getConstraintConnectivityIndices(), SNL_FEI_Structure::initCRMult(), SNL_FEI_Structure::initCRPen(), FEDataFilter::initLinSysCore(), SNL_FEI_Structure::initMultCRStructure(), SNL_FEI_Structure::initPenCRStructure(), LinSysCoreFilter::loadCRMult(), LinSysCoreFilter::loadCRPen(), LinSysCoreFilter::resolveConflictingCRs(), and LinSysCoreFilter::setLinSysCoreCREqns().
|
inline |
get identifier-types of master mesh-objects
Definition at line 110 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::masterIDTypes_.
Referenced by snl_fei::Constraint< RecordType >::Constraint(), and fei::MatrixGraph_Impl2::createSlaveMatrices().
|
inline |
get record-collections for masters
Definition at line 113 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::masterRecordCollections_.
Referenced by fei::MatrixGraph_Impl2::createSlaveMatrices(), and fei::MatrixGraph_Impl2::getConstraintConnectivityIndices().
|
inline |
get field-identifiers of master mesh-objects
Definition at line 116 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::masterFields_.
Referenced by snl_fei::Constraint< RecordType >::Constraint(), fei::MatrixGraph_Impl2::createSlaveMatrices(), fei::MatrixGraph_Impl2::getConstraintConnectivityIndices(), SNL_FEI_Structure::initCRMult(), SNL_FEI_Structure::initCRPen(), FEDataFilter::initLinSysCore(), SNL_FEI_Structure::initMultCRStructure(), SNL_FEI_Structure::initPenCRStructure(), LinSysCoreFilter::loadCRMult(), LinSysCoreFilter::resolveConflictingCRs(), and LinSysCoreFilter::setLinSysCoreCREqns().
|
inline |
get weight-coefficients of master mesh-objects
Definition at line 119 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::masterWeights_.
Referenced by fei::MatrixGraph_Impl2::createSlaveMatrices(), LinSysCoreFilter::loadCRMult(), LinSysCoreFilter::loadCRPen(), snl_fei::LinearSystem_General::loadLagrangeConstraint(), snl_fei::resolveConflictingCRs(), and LinSysCoreFilter::resolveConflictingCRs().
|
inline |
get right-hand-side value of constraint
Definition at line 123 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::rhsValue_.
Referenced by fei::MatrixGraph_Impl2::createSlaveMatrices().
|
inline |
set right-hand-side value of constraint
Definition at line 126 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::rhsValue_.
Referenced by LinSysCoreFilter::loadCRMult(), and LinSysCoreFilter::loadCRPen().
|
inline |
operator!=
Definition at line 314 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::blkEqnNumber_, snl_fei::Constraint< RecordType >::constraintID_, snl_fei::Constraint< RecordType >::eqnNumber_, snl_fei::Constraint< RecordType >::idType_, snl_fei::Constraint< RecordType >::isPenalty_, snl_fei::Constraint< RecordType >::masterFields_, snl_fei::Constraint< RecordType >::masterIDTypes_, snl_fei::Constraint< RecordType >::masters_, snl_fei::Constraint< RecordType >::masterWeights_, snl_fei::Constraint< RecordType >::offsetIntoSlaveField_, snl_fei::Constraint< RecordType >::rhsValue_, and snl_fei::Constraint< RecordType >::slaveField_.
|
inline |
query whether connectivity is the same as specified constraint
Definition at line 340 of file snl_fei_Constraint.hpp.
References snl_fei::Constraint< RecordType >::blkEqnNumber_, snl_fei::Constraint< RecordType >::constraintID_, snl_fei::Constraint< RecordType >::eqnNumber_, snl_fei::Constraint< RecordType >::idType_, snl_fei::Constraint< RecordType >::isPenalty_, snl_fei::Constraint< RecordType >::masterFields_, snl_fei::Constraint< RecordType >::masterIDTypes_, snl_fei::Constraint< RecordType >::masters_, snl_fei::Constraint< RecordType >::offsetIntoSlaveField_, and snl_fei::Constraint< RecordType >::slaveField_.
Referenced by fei::MatrixGraph_Impl2::initSlaveConstraint().
|
private |
|
private |
|
private |
Definition at line 139 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::Constraint(), snl_fei::Constraint< RecordType >::getIDType(), snl_fei::Constraint< RecordType >::operator!=(), snl_fei::Constraint< RecordType >::setIDType(), and snl_fei::Constraint< RecordType >::structurallySame().
|
private |
Definition at line 140 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::Constraint(), and snl_fei::Constraint< RecordType >::getRecordCollection().
|
private |
Definition at line 141 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::isPenalty(), snl_fei::Constraint< RecordType >::operator!=(), snl_fei::Constraint< RecordType >::setIsPenalty(), and snl_fei::Constraint< RecordType >::structurallySame().
|
private |
|
private |
|
private |
Definition at line 146 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::getSlave(), and snl_fei::Constraint< RecordType >::setSlave().
|
private |
|
private |
Definition at line 148 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::getOffsetIntoSlaveField(), snl_fei::Constraint< RecordType >::operator!=(), snl_fei::Constraint< RecordType >::setOffsetIntoSlaveField(), and snl_fei::Constraint< RecordType >::structurallySame().
|
private |
Definition at line 150 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::getMasters(), snl_fei::Constraint< RecordType >::operator!=(), and snl_fei::Constraint< RecordType >::structurallySame().
|
private |
Definition at line 151 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::getMasterIDTypes(), snl_fei::Constraint< RecordType >::operator!=(), and snl_fei::Constraint< RecordType >::structurallySame().
|
private |
Definition at line 152 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::Constraint(), and snl_fei::Constraint< RecordType >::getMasterRecordCollections().
|
private |
Definition at line 153 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::getMasterFieldIDs(), snl_fei::Constraint< RecordType >::operator!=(), and snl_fei::Constraint< RecordType >::structurallySame().
|
private |
Definition at line 154 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::Constraint(), snl_fei::Constraint< RecordType >::getMasterWeights(), and snl_fei::Constraint< RecordType >::operator!=().
|
private |
Definition at line 156 of file snl_fei_Constraint.hpp.
Referenced by snl_fei::Constraint< RecordType >::getRHSValue(), snl_fei::Constraint< RecordType >::operator!=(), and snl_fei::Constraint< RecordType >::setRHSValue().