53 #ifndef SFreedom_Constraint_h 54 #define SFreedom_Constraint_h 69 #include "Constraint.h" 104 SFreedom_Constraint(
int spTag,
int nodeTag,
int ndof,
double value,
bool isConstant=
true);
111 virtual double getValue(
void)
const;
119 inline void setIsConstant(
const bool &b)
121 inline bool getIsConstant(
void)
const 128 virtual void Print(std::ostream &s,
int flag =0)
const;
129 boost::python::dict
getPyDict(
void)
const;
130 void setPyDict(
const boost::python::dict &);
virtual void setLoadPatternTag(int loadPaternTag)
Sets the load pattern tag for the constraint.
Definition: SFreedom_Constraint.cpp:209
Communication parameters between processes.
Definition: Communicator.h:66
void setPyDict(const boost::python::dict &)
Set the values of the object members from a Python dictionary.
Definition: SFreedom_Constraint.cpp:293
int dofNumber
identifies which of the nodes dof is constrained
Definition: SFreedom_Constraint.h:88
virtual SFreedom_Constraint * getCopy(void) const
Virtual constructor.
Definition: SFreedom_Constraint.cpp:135
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:44
virtual bool affectsNodeAndDOF(int, int) const
Returns true if the constraint affects the node and DOF arguments.
Definition: SFreedom_Constraint.cpp:152
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the object members.
Definition: SFreedom_Constraint.cpp:254
virtual int applyConstraint(double loadFactor)
Applies the constraint with the load factor being passed as parameter.
Definition: SFreedom_Constraint.cpp:182
SFreedom_Constraint(int classTag)
Default constructor.
Definition: SFreedom_Constraint.cpp:79
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: SFreedom_Constraint.cpp:319
Single freedom constraint.
Definition: SFreedom_Constraint.h:85
virtual double getValue(void) const
Returns the value of the prescribed displacement.
Definition: SFreedom_Constraint.cpp:165
virtual void Print(std::ostream &s, int flag=0) const
Prints constraint information.
Definition: SFreedom_Constraint.cpp:339
virtual double getInitialValue(void)
Returns the initial value of the constraint.
Definition: SFreedom_Constraint.cpp:169
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: SFreedom_Constraint.cpp:305
void setDomain(Domain *)
Sets the domain for the constraint.
Definition: SFreedom_Constraint.cpp:216
virtual bool isHomogeneous(void) const
Returns true if it's an homogeneous constraint (prescribed value for the DOF is zero).
Definition: SFreedom_Constraint.cpp:198
int sendData(Communicator &comm)
Sends data through the communicator argument.
Definition: SFreedom_Constraint.cpp:261
boost::python::dict getPyDict(void) const
Return a Python dictionary with the object members values.
Definition: SFreedom_Constraint.cpp:281
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int getVtkCellType(void) const
Returns the cell type to be used to represent the object in VTK graphics.
Definition: SFreedom_Constraint.cpp:335
Base class for model constraints.
Definition: Constraint.h:48
virtual int getLoadPatternTag(void) const
Return the load pattern tag of the constraint.
Definition: SFreedom_Constraint.cpp:213
virtual int getDOF_Number(void) const
Returns the constrained DOF number.
Definition: SFreedom_Constraint.cpp:148
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
double valueR
the reference value
Definition: SFreedom_Constraint.h:89
bool isConstant
flag indicating if constant
Definition: SFreedom_Constraint.h:92
int recvData(const Communicator &comm)
Receives data through the communicator argument.
Definition: SFreedom_Constraint.cpp:271
double valueC
if constant = the reference value, if not constant = the reference value * load factor ...
Definition: SFreedom_Constraint.h:90