Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SP_Constraint Class Reference

#include <SP_Constraint.h>

Inheritance diagram for SP_Constraint::

DomainComponent TaggedObject MovableObject ImposedMotionSP ImposedMotionSP1 List of all members.

Public Methods

 SP_Constraint (int classTag)
 constructors. More...

 SP_Constraint (int spTag, int nodeTag, int ndof, int classTag)
 SP_Constraint (int spTag, int nodeTag, int ndof, double value, bool isConstant=true)
virtual ~SP_Constraint ()
 destructor. More...

virtual int getNodeTag (void) const
virtual int getDOF_Number (void) const
virtual int applyConstraint (double loadFactor)
virtual double getValue (void)
virtual bool isHomogeneous (void) const
virtual void setLoadPatternTag (int loadPaternTag)
virtual int getLoadPatternTag (void) const
virtual int sendSelf (int commitTag, Channel &theChannel)
virtual int recvSelf (int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)
virtual void Print (ostream &s, int flag=0)

Protected Attributes

int nodeTag
int dofNumber
 to identify the node in the model. More...

double valueR
 identifies which of the nodes dof is constrrained. More...

double valueC
 the reference value. More...

bool isConstant
 the reference value * load factor. More...

int loadPatternTag
 flag indicating if constant. More...


Detailed Description

An SP\_Constraint represents a single point constraint in the domain. A single point constraint specifies the response of a particular degree-of-freedom at a node. The declaration that all methods are virtual allows for time varying constraints to be introduced. \

Definition at line 57 of file SP_Constraint.h.


Constructor & Destructor Documentation

SP_Constraint::SP_Constraint ( int classTag )
 

constructors.

Definition at line 41 of file SP_Constraint.cpp.

SP_Constraint::SP_Constraint ( int spTag,
int nodeTag,
int ndof,
int classTag )
 

Definition at line 50 of file SP_Constraint.cpp.

SP_Constraint::SP_Constraint ( int spTag,
int nodeTag,
int ndof,
double value,
bool isConstant = true )
 

Definition at line 62 of file SP_Constraint.cpp.

SP_Constraint::~SP_Constraint ( ) [virtual]
 

destructor.

Definition at line 70 of file SP_Constraint.cpp.


Member Function Documentation

void SP_Constraint::Print ( ostream & s,
int flag = 0 ) [virtual]
 

A pure virtual function. The component is to output itself to the output stream {s}. The integer {flag} can be used to select just what should be output, by default is passed.

Reimplemented from TaggedObject.

Reimplemented in ImposedMotionSP, and ImposedMotionSP1.

Definition at line 184 of file SP_Constraint.cpp.

Referenced by MultiSupportPattern::Print().

int SP_Constraint::applyConstraint ( double loadFactor ) [virtual]
 

Reimplemented in ImposedMotionSP, and ImposedMotionSP1.

Definition at line 99 of file SP_Constraint.cpp.

Referenced by MultiSupportPattern::applyLoad(), LoadPattern::applyLoad(), and Domain::applyLoad().

int SP_Constraint::getDOF_Number ( void ) const [virtual]
 

Definition at line 84 of file SP_Constraint.cpp.

Referenced by ImposedMotionSP1::Print(), ImposedMotionSP::Print(), TransformationDOF_Group::TransformationDOF_Group(), TransformationDOF_Group::addSP_Constraint(), PenaltySP_FE::getResidual(), LagrangeSP_FE::getResidual(), PlainHandler::handle(), PenaltySP_FE::setID(), and LagrangeSP_FE::setID().

int SP_Constraint::getLoadPatternTag ( void ) const [virtual]
 

Definition at line 125 of file SP_Constraint.cpp.

Referenced by sendSelf().

int SP_Constraint::getNodeTag ( void ) const [virtual]
 

Definition at line 77 of file SP_Constraint.cpp.

Referenced by LagrangeSP_FE::LagrangeSP_FE(), PenaltySP_FE::PenaltySP_FE(), ImposedMotionSP1::Print(), ImposedMotionSP::Print(), TransformationDOF_Group::TransformationDOF_Group(), Domain::addSP_Constraint(), TransformationConstraintHandler::handle(), and PlainHandler::handle().

double SP_Constraint::getValue ( void ) [virtual]
 

Reimplemented in ImposedMotionSP, and ImposedMotionSP1.

Definition at line 92 of file SP_Constraint.cpp.

Referenced by TransformationDOF_Group::enforceSPs(), PenaltySP_FE::getResidual(), LagrangeSP_FE::getResidual(), PenaltySP_FE::getTangForce(), and LagrangeSP_FE::getTangForce().

bool SP_Constraint::isHomogeneous ( void ) const [virtual]
 

Reimplemented in ImposedMotionSP, and ImposedMotionSP1.

Definition at line 110 of file SP_Constraint.cpp.

Referenced by PlainHandler::handle().

int SP_Constraint::recvSelf ( int commitTag,
Channel & theChannel,
FEM_ObjectBroker & theBroker ) [virtual]
 

This is a pure virtual method, one must be written for each instantiable subclass of MovableObject. Each object has to receive the data needed to be able to recreate itself in the new process after it has been sent through {theChannel}. If the object is an aggregation containing other objects, new objects of the correct type can be constructed using {theBroker}. To return if successful or a if not.

Reimplemented from MovableObject.

Reimplemented in ImposedMotionSP, and ImposedMotionSP1.

Definition at line 155 of file SP_Constraint.cpp.

Referenced by LoadPattern::recvSelf(), and Domain::recvSelf().

int SP_Constraint::sendSelf ( int commitTag,
Channel & theChannel ) [virtual]
 

This is a pure virtual method, one must be written for each instantiable subclass of MovableObject. Each object has to send the data needed to be able to reproduce that object in a remote process. The object uses the methods provided by {theChannel} object to send the data to another channel at the remote actor, the address of the channel is set before this method is called. An object of similar type at the remote actor is invoked with a {receiveSelf()} to receive the data. Returns if successful (successful in that the data got to the channel), or a if no data was sent.

Reimplemented from MovableObject.

Reimplemented in ImposedMotionSP, and ImposedMotionSP1.

Definition at line 131 of file SP_Constraint.cpp.

Referenced by LoadPattern::sendSelf(), and Domain::sendSelf().

void SP_Constraint::setLoadPatternTag ( int loadPaternTag ) [virtual]
 

Definition at line 119 of file SP_Constraint.cpp.

Referenced by LoadPattern::addSP_Constraint(), and recvSelf().


Member Data Documentation

int SP_Constraint::dofNumber [protected]
 

to identify the node in the model.

Definition at line 98 of file SP_Constraint.h.

bool SP_Constraint::isConstant [protected]
 

the reference value * load factor.

Definition at line 103 of file SP_Constraint.h.

int SP_Constraint::loadPatternTag [protected]
 

flag indicating if constant.

Definition at line 104 of file SP_Constraint.h.

int SP_Constraint::nodeTag [protected]
 

Definition at line 97 of file SP_Constraint.h.

double SP_Constraint::valueC [protected]
 

the reference value.

Definition at line 100 of file SP_Constraint.h.

double SP_Constraint::valueR [protected]
 

identifies which of the nodes dof is constrrained.

Definition at line 99 of file SP_Constraint.h.


The documentation for this class was generated from the following files:
Copyright Contact Us