FEI Version of the Day
Public Member Functions
snl_fei::Constraint< RecordType > Class Template Reference

#include <snl_fei_Constraint.hpp>

List of all members.

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
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)

Detailed Description

template<class RecordType>
class snl_fei::Constraint< RecordType >

container for constraint attributes

Definition at line 58 of file snl_fei_Constraint.hpp.


Constructor & Destructor Documentation

template<class RecordType >
snl_fei::Constraint< RecordType >::Constraint ( int  id = 0,
bool  isPenaltyConstr = false 
) [inline]

constructor

Definition at line 200 of file snl_fei_Constraint.hpp.

template<class RecordType >
snl_fei::Constraint< RecordType >::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 
) [inline]

constructor

Definition at line 221 of file snl_fei_Constraint.hpp.

template<class RecordType >
snl_fei::Constraint< RecordType >::~Constraint ( ) [inline, virtual]

destructor

Definition at line 343 of file snl_fei_Constraint.hpp.


Member Function Documentation

template<class RecordType>
int snl_fei::Constraint< RecordType >::getConstraintID ( ) const [inline]

get constraint identifier

Definition at line 82 of file snl_fei_Constraint.hpp.

template<class RecordType>
void snl_fei::Constraint< RecordType >::setConstraintID ( int  id) [inline]

set constraint identifier. power-users only

Definition at line 85 of file snl_fei_Constraint.hpp.

template<class RecordType>
int snl_fei::Constraint< RecordType >::getIDType ( ) const [inline]

get the identifier-type that the fei uses to reference constraints

Definition at line 88 of file snl_fei_Constraint.hpp.

template<class RecordType>
void snl_fei::Constraint< RecordType >::setIDType ( int  idType) [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 94 of file snl_fei_Constraint.hpp.

template<class RecordType>
bool snl_fei::Constraint< RecordType >::isPenalty ( ) const [inline]

query whether constraint is a penalty constraint

Definition at line 97 of file snl_fei_Constraint.hpp.

template<class RecordType>
void snl_fei::Constraint< RecordType >::setIsPenalty ( bool  isPenaltyConstr) [inline]

set whether constraint is a penalty constraint. Another dangerous function for power-users.

Definition at line 101 of file snl_fei_Constraint.hpp.

template<class RecordType>
int snl_fei::Constraint< RecordType >::getEqnNumber ( ) const [inline]

get equation-number of constraint. (only valid if lagrange-multiplier)

Definition at line 105 of file snl_fei_Constraint.hpp.

template<class RecordType>
void snl_fei::Constraint< RecordType >::setEqnNumber ( int  eqn) [inline]

set equation-number of constraint. (only valid if lagrange-multiplier)

Definition at line 109 of file snl_fei_Constraint.hpp.

template<class RecordType>
int snl_fei::Constraint< RecordType >::getBlkEqnNumber ( ) const [inline]

get block-equation number of constraint. (only valid if lagrange-multiplier

Definition at line 113 of file snl_fei_Constraint.hpp.

template<class RecordType>
void snl_fei::Constraint< RecordType >::setBlkEqnNumber ( int  blkEqn) [inline]

set block-equation number of constraint. (only valid if lagrange-multiplier

Definition at line 117 of file snl_fei_Constraint.hpp.

template<class RecordType>
RecordType snl_fei::Constraint< RecordType >::getSlave ( ) [inline]

intended for fei-implementation use only

Definition at line 121 of file snl_fei_Constraint.hpp.

template<class RecordType>
void snl_fei::Constraint< RecordType >::setSlave ( int  slv) [inline]

intended for fei-implementation use only

Definition at line 124 of file snl_fei_Constraint.hpp.

template<class RecordType>
int snl_fei::Constraint< RecordType >::getSlaveFieldID ( ) const [inline]

if slave constraint, return constrained field-identifier of slaved mesh-object

Definition at line 128 of file snl_fei_Constraint.hpp.

template<class RecordType>
void snl_fei::Constraint< RecordType >::setSlaveFieldID ( int  f) [inline]

if slave constraint, set constrained field-identifier of slaved mesh-object

Definition at line 132 of file snl_fei_Constraint.hpp.

template<class RecordType>
int snl_fei::Constraint< RecordType >::getOffsetIntoSlaveField ( ) const [inline]

get offset of slaved field-component

Definition at line 135 of file snl_fei_Constraint.hpp.

template<class RecordType>
void snl_fei::Constraint< RecordType >::setOffsetIntoSlaveField ( int  offset) [inline]

set offset of slaved field-component

Definition at line 138 of file snl_fei_Constraint.hpp.

template<class RecordType>
std::vector<int>& snl_fei::Constraint< RecordType >::getMasters ( ) [inline]

get master mesh-objects

Definition at line 142 of file snl_fei_Constraint.hpp.

template<class RecordType>
std::vector<int>& snl_fei::Constraint< RecordType >::getMasterIDTypes ( ) [inline]

get identifier-types of master mesh-objects

Definition at line 145 of file snl_fei_Constraint.hpp.

template<class RecordType>
std::vector<snl_fei::RecordCollection*>& snl_fei::Constraint< RecordType >::getMasterRecordCollections ( ) [inline]

get record-collections for masters

Definition at line 148 of file snl_fei_Constraint.hpp.

template<class RecordType>
std::vector<int>& snl_fei::Constraint< RecordType >::getMasterFieldIDs ( ) [inline]

get field-identifiers of master mesh-objects

Definition at line 151 of file snl_fei_Constraint.hpp.

template<class RecordType>
std::vector<double>& snl_fei::Constraint< RecordType >::getMasterWeights ( ) [inline]

get weight-coefficients of master mesh-objects

Definition at line 154 of file snl_fei_Constraint.hpp.

template<class RecordType>
double snl_fei::Constraint< RecordType >::getRHSValue ( ) const [inline]

get right-hand-side value of constraint

Definition at line 158 of file snl_fei_Constraint.hpp.

template<class RecordType>
void snl_fei::Constraint< RecordType >::setRHSValue ( double  rhs) [inline]

set right-hand-side value of constraint

Definition at line 161 of file snl_fei_Constraint.hpp.

template<class RecordType >
bool snl_fei::Constraint< RecordType >::operator!= ( const Constraint< RecordType > &  rhs) [inline]

operator!=

Definition at line 349 of file snl_fei_Constraint.hpp.

template<class RecordType >
bool snl_fei::Constraint< RecordType >::structurallySame ( const Constraint< RecordType > &  rhs) [inline]

query whether connectivity is the same as specified constraint

Definition at line 375 of file snl_fei_Constraint.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends