28 #ifndef MFreedom_ConstraintBase_h 29 #define MFreedom_ConstraintBase_h 43 #include "Constraint.h" 44 #include <utility/matrix/Matrix.h> 85 virtual const ID &getRetainedDOFs(
void)
const= 0;
88 virtual size_t getNumRetainedNodes(
void)
const= 0;
89 virtual std::vector<XC::Node *> getPointersToRetainedNodes(
void)
const= 0;
97 virtual void Print(std::ostream &s,
int flag =0);
MFreedom_ConstraintBase(int tag, int classTag)
Constructor.
Definition: MFreedom_ConstraintBase.cc:62
int constrNodeTag
constrained node tag
Definition: Constraint.h:52
Base class for mult-freedom constraints.
Definition: MFreedom_ConstraintBase.h:57
void set_constrained_dofs(const ID &)
Set the constrained degrees of freedom.
Definition: MFreedom_ConstraintBase.cc:56
Matrix constraintMatrix
Constraint matrix.
Definition: MFreedom_ConstraintBase.h:60
ID constrDOF
ID of constrained DOF at constrained node.
Definition: MFreedom_ConstraintBase.h:61
bool affectsNodeAndDOF(int theNode, int theDOF) const
Returns true if the constraint affects the node and DOF arguments.
Definition: MFreedom_ConstraintBase.cc:105
Vector of integers.
Definition: ID.h:93
bool isTimeVarying(void) const
Returns true if the constraint varies with time.
Definition: MFreedom_ConstraintBase.cc:126
void set_constraint(const Matrix &c)
Set the constraint matrix.
Definition: MFreedom_ConstraintBase.cc:51
int addResistingForceToNodalReaction(bool inclInertia)
Add reactions to nodes.
Definition: MFreedom_ConstraintBase.cc:131
bool affectsNode(int) const
Returns true if the constraints affects the node identified by the tag being passed as parameter...
Definition: MFreedom_ConstraintBase.cc:99
virtual const ID & getConstrainedDOFs(void) const
Returns the identifiers of the constrained degrees of fredom.
Definition: MFreedom_ConstraintBase.cc:118
virtual const int & getNodeConstrained(void) const
Return the identifier of the constrained node.
Definition: MFreedom_ConstraintBase.h:80
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
int sendData(CommParameters &cp)
Send data through the channel being passed as parameter.
Definition: MFreedom_ConstraintBase.cc:148
Matrix of floats.
Definition: Matrix.h:108
virtual void Print(std::ostream &s, int flag=0)
Printing.
Definition: MFreedom_ConstraintBase.cc:169
Base class for model constraints.
Definition: Constraint.h:49
virtual const Matrix & getConstraint(void) const
Returns the constraint matrix.
Definition: MFreedom_ConstraintBase.cc:144
int recvData(const CommParameters &cp)
Receive data through the channel being passed as parameter.
Definition: MFreedom_ConstraintBase.cc:157
virtual int & getNodeConstrained(void)
Return the identifier of the constrained node.
Definition: MFreedom_ConstraintBase.h:83