xc
Public Member Functions | Protected Member Functions | Friends | List of all members

Container for FE_Element and DOF_Group objects created by the constraint handler. More...

#include <AnalysisModel.h>

Inheritance diagram for XC::AnalysisModel:
Inheritance graph
[legend]
Collaboration diagram for XC::AnalysisModel:
Collaboration graph
[legend]

Public Member Functions

virtual ~AnalysisModel (void)
 Destructor. More...
 
virtual DOF_GroupcreateDOF_Group (const int &, Node *)
 
virtual LagrangeDOF_GroupcreateLagrangeDOF_Group (const int &, SFreedom_Constraint *)
 Appends to the model the Lagrange DOFs for the single freedom constraint being passed as parameter. More...
 
virtual LagrangeDOF_GroupcreateLagrangeDOF_Group (const int &, MFreedom_Constraint *)
 Appends to the model the Lagrange DOFs for the multi-freedom constraint being passed as parameter. More...
 
virtual LagrangeDOF_GroupcreateLagrangeDOF_Group (const int &, MRMFreedom_Constraint *)
 Appends to the model the Lagrange DOFs for the multi-freedom constraint being passed as parameter. More...
 
virtual TransformationDOF_GroupcreateTransformationDOF_Group (const int &, Node *, MFreedom_ConstraintBase *, TransformationConstraintHandler *)
 
virtual TransformationDOF_GroupcreateTransformationDOF_Group (const int &, Node *, TransformationConstraintHandler *)
 
virtual FE_ElementcreateFE_Element (const int &, Element *)
 Creates a FE_Element and appends it to the model.
 
virtual LagrangeSFreedom_FEcreateLagrangeSFreedom_FE (const int &, SFreedom_Constraint &, DOF_Group &, const double &)
 Create an LagrangeSFreedom_FE object and append it to the model.
 
virtual LagrangeMFreedom_FEcreateLagrangeMFreedom_FE (const int &, MFreedom_Constraint &, DOF_Group &, const double &)
 Method to create a LagrangeMFreedom_FE object and append it to the model. More...
 
virtual LagrangeMRMFreedom_FEcreateLagrangeMRMFreedom_FE (const int &, MRMFreedom_Constraint &, DOF_Group &, const double &)
 Method to create a LagrangeMRMFreedom_FE object and append it to the model. More...
 
virtual PenaltySFreedom_FEcreatePenaltySFreedom_FE (const int &, SFreedom_Constraint &, const double &)
 Method to create a PenaltySFreedom_FE object and append it to the model. More...
 
virtual PenaltyMFreedom_FEcreatePenaltyMFreedom_FE (const int &, MFreedom_Constraint &, const double &)
 Create a PenaltyMFreedom_FE object and append it to the model.
 
virtual PenaltyMRMFreedom_FEcreatePenaltyMRMFreedom_FE (const int &, MRMFreedom_Constraint &, const double &)
 Create a PenaltyMRMFreedom_FE object and append it to the model.
 
virtual FE_ElementcreateTransformationFE (const int &, Element *, const std::set< int > &, std::set< FE_Element *> &)
 Create a TransformationFE_Element object and append it to the model.
 
virtual void clearAll (void)
 Clears from the model all FE_Element and DOF_Group objects. More...
 
virtual int getNumDOF_Groups (void) const
 Returns the umber of DOF_Group objects added to the model.
 
virtual DOF_GroupgetDOF_GroupPtr (int tag)
 Returns a pointer to the DEF group with the tag beign passed as parameter. More...
 
virtual const DOF_GroupgetDOF_GroupPtr (int tag) const
 Returns a pointer to the DOF group which the tag being passed as parameter. More...
 
virtual FE_EleItergetFEs ()
 Returns an {FE_EleIter} for the FE_Elements of the model.
 
virtual DOF_GrpItergetDOFGroups ()
 
virtual FE_EleConstItergetConstFEs () const
 Returns a {FE_EleConstIter} for the FE_Elements of the model.
 
virtual DOF_GrpConstItergetConstDOFs () const
 
virtual void setNumEqn (int)
 Sets the value of the number of equations in the model. More...
 
virtual int getNumEqn (void) const
 Returns the number of DOFs in the model which have been assigned an equation number. More...
 
virtual GraphgetDOFGraph (void)
 
virtual GraphgetDOFGroupGraph (void)
 Returns the connectivity of the DOF_Group objects in the model. More...
 
virtual const GraphgetDOFGraph (void) const
 Returns the DOF connectivity graph for the individual dofs in the model. More...
 
virtual const GraphgetDOFGroupGraph (void) const
 
virtual void setResponse (const Vector &, const Vector &, const Vector &)
 Sets the values of the displacement, velocity and acceleration of the nodes. More...
 
virtual void setDisp (const Vector &disp)
 Sets the values of the displacement of the nodes. More...
 
virtual void setVel (const Vector &vel)
 Sets the values of the velocity of the nodes. More...
 
virtual void setAccel (const Vector &vel)
 Sets the values of the acceleration of the nodes. More...
 
virtual void incrDisp (const Vector &disp)
 Sets the values of the displacement increment of the nodes. More...
 
virtual void incrVel (const Vector &vel)
 Sets the values of the velocity increment of the nodes. More...
 
virtual void incrAccel (const Vector &vel)
 Sets the values of the acceleration increment of the nodes. More...
 
virtual void setNumEigenvectors (int numEigenvectors)
 
virtual void setEigenvector (int mode, const Vector &)
 
virtual void setEigenvalues (const Vector &)
 Informs the domain of the obtained eigenvalues.
 
virtual void setModalParticipationFactors (const Vector &)
 Informs the domain of the obtained modal participation factors.
 
virtual int sendSelf (Communicator &)
 Returns \(0\). More...
 
virtual int recvSelf (const Communicator &)
 Returns \(0\).
 
DomaingetDomainPtr (void)
 Returns a pointer to the associated Domain, that is the Domain set when the links were set. More...
 
const DomaingetDomainPtr (void) const
 Returns a const pointer to the associated Domain, that is the Domain set when the links were set. More...
 
ConstraintHandlergetHandlerPtr (void)
 
const ConstraintHandlergetHandlerPtr (void) const
 
- Public Member Functions inherited from XC::MovableObject
 MovableObject (int classTag, int dbTag)
 Constructor. More...
 
 MovableObject (int classTag)
 Constructor. More...
 
 MovableObject (const MovableObject &)
 Copy constructor. Doesn't copy the dbTag.
 
MovableObjectoperator= (const MovableObject &)
 Assignment operator. Doesn't copy the dbTag.
 
int getClassTag (void) const
 Return the class identifier.
 
int getDbTag (void) const
 Return the object identifier in the database.
 
int getDbTag (Communicator &)
 Return the object identifier in the database.
 
void setDbTag (int dbTag)
 Sets the object identifier in the database.
 
void setDbTag (Communicator &)
 Sets the object identifier in the database if not already set. More...
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 Sets the value param to the parameter argv.
 
virtual int updateParameter (int parameterID, Information &info)
 Updates the parameter identified by parameterID with info.
 
virtual int activateParameter (int parameterID)
 Activates the parameter identified by parameterID.
 
virtual int setVariable (const std::string &variable, Information &)
 Set the value of the variable idenfified by var.
 
virtual int getVariable (const std::string &variable, Information &)
 Return the value of the variable idenfified by var.
 
- Public Member Functions inherited from XC::DistributedBase
 DistributedBase (void)
 Constructor.
 
virtual ~DistributedBase (void)
 Destructor.
 
virtual DbTagDatagetDbTagData (void) const
 Returns a vector to store class dbTags.
 
const int & getDbTagDataPos (const int &i) const
 Returns the data at the i-th position.
 
void setDbTagDataPos (const int &i, const int &v)
 Sets the data at the i-th position.
 
void inicComm (const int &dataSize) const
 Initializes communication.
 
- Public Member Functions inherited from CommandEntity
 CommandEntity (CommandEntity *owr=nullptr)
 Default constructor.
 
CommandEntityOwner (void)
 Return a pointer to the object owner.
 
const CommandEntityOwner (void) const
 Return un puntero al objeto propietario de ESTE.
 
const StandardOutputWrappergetStandardOutputWrapper (void) const
 Return the regular output stream wrapper.
 
StandardOutputWrappergetStandardOutputWrapper (void)
 Return the regular output stream wrapper.
 
const std::string & getLogFileName (void) const
 Returns log file name.
 
void setLogFileName (const std::string &)
 Sets log file name.
 
const std::string & getErrFileName (void) const
 Returns err file name.
 
void setErrFileName (const std::string &)
 Sets error file name.
 
const std::string & getOutputFileName (void) const
 Returns regular output file name.
 
void setOutputFileName (const std::string &)
 Sets regular output file name.
 
boost::python::object evalPy (boost::python::object dict, const std::string &)
 Return the Python object that results from evaluating the argument.
 
boost::python::object execPy (boost::python::object dict, const std::string &)
 Return the Python objects that results from executing the code in the string argument.
 
boost::python::object execFilePy (boost::python::object dict, const std::string &)
 Return the Python object that results from executing the code in the file.
 
- Public Member Functions inherited from EntityWithProperties
 EntityWithProperties (EntityWithProperties *owr=nullptr)
 Default constructor.
 
void clearPyProps (void)
 Clear python properties map.
 
bool hasPyProp (const std::string &)
 Returns true if property exists.
 
boost::python::object getPyProp (const std::string &str)
 Return the Python object with the name being passed as parameter.
 
void setPyProp (std::string str, boost::python::object val)
 Sets/appends a value tho the Python object's dictionary.
 
void copyPropsFrom (const EntityWithProperties &)
 Copy the properties from the argument.
 
boost::python::list getPropNames (void) const
 Return the names of the object properties weightings.
 
const PythonDict & getPropertiesDict (void) const
 Return a std::map container with the properties of the object.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary containing the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from EntityWithOwner
 EntityWithOwner (EntityWithOwner *owr=nullptr)
 Default constructor.
 
 EntityWithOwner (const EntityWithOwner &)
 Copy constructor.
 
EntityWithOwneroperator= (const EntityWithOwner &)
 Assignment operator.
 
virtual bool operator== (const EntityWithOwner &) const
 Comparison operator.
 
virtual ~EntityWithOwner (void)
 Virtual destructor.
 
virtual std::string getClassName (void) const
 Returns demangled class name.
 
void set_owner (EntityWithOwner *owr)
 Assigns the owner of the object.
 
EntityWithOwnerOwner (void)
 
const EntityWithOwnerOwner (void) const
 

Protected Member Functions

virtual void applyLoadDomain (double newTime)
 Method which invokes {applyLoad(timeStep, loadFactor)} on the domain. More...
 
virtual int updateDomain (void)
 Method which invokes update() on the domain. More...
 
virtual int updateDomain (double newTime, double dT)
 
virtual int newStepDomain (double dT=0.0)
 
virtual int commitDomain (void)
 Commits domain state. More...
 
virtual int revertDomainToLastCommit (void)
 Returns to the last committed state. More...
 
virtual double getCurrentDomainTime (void) const
 To get the current time in the Domain. More...
 
virtual void setCurrentDomainTime (double newTime)
 To set the current time in the Domain to be newTime. More...
 
virtual void setRayleighDampingFactors (const RayleighDampingFactors &rF)
 
virtual bool addDOF_Group (DOF_Group *theDOF_Grp)
 Method to add an DOF to the model. More...
 
virtual bool addFE_Element (FE_Element *theFE_Ele)
 Adds the FE_Element pointed to by theElement to the model. More...
 
 AnalysisModel (ModelWrapper *owr=nullptr)
 Constructor. More...
 
 AnalysisModel (int classTag, CommandEntity *owr)
 Constructor. More...
 
 AnalysisModel (const AnalysisModel &)
 Copy constructor.
 
AnalysisModeloperator= (const AnalysisModel &)
 Assignment operator.
 
AnalysisModelgetCopy (void) const
 Virtual constructor.
 
- Protected Member Functions inherited from CommandEntity
template<class T >
void string_to (T &, const std::string &) const
 
- Protected Member Functions inherited from EntityWithProperties
bool isEqual (const EntityWithProperties &) const
 Return true if both objects are equal.
 
- Protected Member Functions inherited from EntityWithOwner
virtual bool isEqual (const EntityWithOwner &) const
 Return true if both objects are equal.
 

Friends

class Integrator
 
class Analysis
 
class AutoConstraintHandler
 
class ModelWrapper
 
class FEM_ObjectBroker
 

Additional Inherited Members

- Public Types inherited from EntityWithProperties
typedef std::map< std::string, boost::python::object > PythonDict
 
- Static Public Member Functions inherited from CommandEntity
static void resetStandardOutput (void)
 Reset the standard output streams to its defaults buffers.
 
- Static Public Member Functions inherited from EntityWithOwner
static int getVerbosityLevel (void)
 Get the value of the verbosity level.
 
static void setVerbosityLevel (const int &)
 Set the value of the verbosity level.
 
- Static Protected Member Functions inherited from CommandEntity
static CommandEntityentcmd_cast (boost::any &data)
 
- Static Protected Attributes inherited from EntityWithOwner
static int verbosity = 1
 Object that owns THIS ONE. More...
 

Detailed Description

Container for FE_Element and DOF_Group objects created by the constraint handler.

AnalysisModel is a container class. This class is responsible for holding and providing access to the FE_Element and DOF_Group objects that the ConstraintHandler creates. It is also responsible for updating the response quantities at the DOF_Groups and for triggering methods in the associated Domain. It provides operations for the following:

Each subclass of AnalysisModel must have its own subclasses of FE_ELEIter and DOF_GrpIter.

Constructor & Destructor Documentation

◆ AnalysisModel() [1/2]

XC::AnalysisModel::AnalysisModel ( ModelWrapper owr = nullptr)
protected

Constructor.

Constructs an empty AnalysisModel. The constructor allocates space for two arrays of 256 pointers to FE_Elements and DOF_Groups. If not enough memory is available for these arrays, an error message is printed and the program is terminated. Note these arrays grow automatically if the problem needs it.

◆ AnalysisModel() [2/2]

XC::AnalysisModel::AnalysisModel ( int  theClassTag,
CommandEntity owr 
)
protected

Constructor.

Provided for subclasses to be used. The storage of the FE_Elements and DOF_Groups and iters to access them must be provided by the subclass.

◆ ~AnalysisModel()

XC::AnalysisModel::~AnalysisModel ( void  )
virtual

Destructor.

Is responsible for returning to memory the arrays used for storing pointers to the FE_Element and DOF_Groups which have been added to the AnalysisModel. It is not responsible for deleting the individual DOF_Group and FE_Element objects, that is the responsibility of the ConstraintHandler. If the Graphs have been requested their destructor is invoked.

Member Function Documentation

◆ addDOF_Group()

bool XC::AnalysisModel::addDOF_Group ( DOF_Group theGroup)
protectedvirtual

Method to add an DOF to the model.

Adds the DOF_Group pointed to by theGroup to the domain. If the array for the DOF_Groups is large enough, it adds this pointer to the array and increments the number of DOF_Groups in the array. If the array is not large enough, a new one double in size is constructed, all the old pointers are copied to this new array and the new pointer is then added. If not enough room is available for this array, an error message is printed and the program is terminated. Returns true, otherwise false if {theGroup} is \(0\) or derived class used which does not implement the method.

◆ addFE_Element()

bool XC::AnalysisModel::addFE_Element ( FE_Element theElement)
protectedvirtual

Adds the FE_Element pointed to by theElement to the model.

Adds the FE_Element pointed to by theElement to the domain and invokes {setAnalysisModel(*this)} on the FE_Element. If the array for the FE_Elements is large enough, it adds this pointer to the array and increments the number of FE_Elements in the array. If the array is not large enough, a new one double in size is constructed, all the old pointers are copied to this new array and the new pointer is then added. If not enough room is available for this array, an error message is printed and the program is terminated. Returns true, otherwise false if {theElement} is \(0\) or derived class used which does not implement the method.

◆ applyLoadDomain()

void XC::AnalysisModel::applyLoadDomain ( double  pseudoTime)
protectedvirtual

Method which invokes {applyLoad(timeStep, loadFactor)} on the domain.

Method which invokes {applyLoad(timeStep, loadFactor)} on the domain. This method causes the domain ask the loads in the currently set to apply themselves. If no Domain has been set nothing is done and an error message is printed.

◆ clearAll()

void XC::AnalysisModel::clearAll ( void  )
virtual

Clears from the model all FE_Element and DOF_Group objects.

Clears from the model all FE_Element and DOF_Group objects that have been added to the analysis model using the above two methods. It does this by setting the components in the two arrays of pointers equal to \(0\) and setting the number of components to \(0\). If the Graphs have been created their destructor is invoked. Also sets numEqn to \(0\).

◆ commitDomain()

int XC::AnalysisModel::commitDomain ( void  )
protectedvirtual

Commits domain state.

Method which invokes commit() on the domain: this is an operation which causes all nodes in the domain to take the current values of response quantities and copy them into the accepted values. Returns \(0\) if successful , a negative number if not: \(-1\) if no Domain has been set and \(-2\) if commit() fails on the Domain.

◆ createLagrangeDOF_Group() [1/3]

XC::LagrangeDOF_Group * XC::AnalysisModel::createLagrangeDOF_Group ( const int &  tag,
SFreedom_Constraint spPtr 
)
virtual

Appends to the model the Lagrange DOFs for the single freedom constraint being passed as parameter.

Parameters
tagidentifier for the new Lagrange DOFs group.
spPtrsingle freedom constraint to introduce.

◆ createLagrangeDOF_Group() [2/3]

XC::LagrangeDOF_Group * XC::AnalysisModel::createLagrangeDOF_Group ( const int &  tag,
MFreedom_Constraint mpPtr 
)
virtual

Appends to the model the Lagrange DOFs for the multi-freedom constraint being passed as parameter.

Parameters
tagidentifier for the new Lagrange DOFs group.
mpPtrmulti-freedom constraint to introduce.

◆ createLagrangeDOF_Group() [3/3]

XC::LagrangeDOF_Group * XC::AnalysisModel::createLagrangeDOF_Group ( const int &  tag,
MRMFreedom_Constraint mrmpPtr 
)
virtual

Appends to the model the Lagrange DOFs for the multi-freedom constraint being passed as parameter.

Parameters
tagidentifier for the new Lagrange DOFs group.
mrmpPtrmulti-row, multi-freedom constraint to introduce.

◆ createLagrangeMFreedom_FE()

XC::LagrangeMFreedom_FE * XC::AnalysisModel::createLagrangeMFreedom_FE ( const int &  tag,
MFreedom_Constraint theMP,
DOF_Group theDofGrp,
const double &  alpha 
)
virtual

Method to create a LagrangeMFreedom_FE object and append it to the model.

◆ createLagrangeMRMFreedom_FE()

XC::LagrangeMRMFreedom_FE * XC::AnalysisModel::createLagrangeMRMFreedom_FE ( const int &  tag,
MRMFreedom_Constraint theMRMP,
DOF_Group theDofGrp,
const double &  alpha 
)
virtual

Method to create a LagrangeMRMFreedom_FE object and append it to the model.

◆ createPenaltySFreedom_FE()

XC::PenaltySFreedom_FE * XC::AnalysisModel::createPenaltySFreedom_FE ( const int &  tag,
SFreedom_Constraint theSP,
const double &  alpha 
)
virtual

Method to create a PenaltySFreedom_FE object and append it to the model.

◆ getCurrentDomainTime()

double XC::AnalysisModel::getCurrentDomainTime ( void  ) const
protectedvirtual

To get the current time in the Domain.

To get the current time in the Domain. If no Domain has been set a warning message is printed and \(0.0\) is returned, otherwise the result of invoking getCurrentTime() on the Domain is returned.

◆ getDOF_GroupPtr() [1/2]

XC::DOF_Group * XC::AnalysisModel::getDOF_GroupPtr ( int  tag)
virtual

Returns a pointer to the DEF group with the tag beign passed as parameter.

Returns a pointer to the DOF_Group object whose tag is given by {tag}. It first checks to see if the DOF_Group object is at the location in the array given by tag; if not it searches through the array to find the DOF_Group object. Returns a pointer to the object if found, otherwise \(0\) is returned.

◆ getDOF_GroupPtr() [2/2]

const XC::DOF_Group * XC::AnalysisModel::getDOF_GroupPtr ( int  tag) const
virtual

Returns a pointer to the DOF group which the tag being passed as parameter.

◆ getDOFGraph()

const XC::Graph & XC::AnalysisModel::getDOFGraph ( void  ) const
virtual

Returns the DOF connectivity graph for the individual dofs in the model.

This graph is used by the system of equation object to determine its size. If no graph has yet been constructed it creates a new DOF_Graph object using itself as the argument, otherwise it returns a pointer to this graph. THIS WILL CHANGE WHEN I REMOVE DOF_Graph CLASS - will go through and construct the Graph.

◆ getDOFGroupGraph()

XC::Graph & XC::AnalysisModel::getDOFGroupGraph ( void  )
virtual

Returns the connectivity of the DOF_Group objects in the model.

Returns the connectivity of the DOF_Group objects in the model. This graph is used by the DOF_Numberer to assign equation numbers to the dofs. If no graph has yet been constructed it creates a new DOF_GroupGraph object using itself as the argument, otherwise it returns a pointer to this graph. AGAIN WILL CHANGE.

◆ getDomainPtr() [1/2]

XC::Domain * XC::AnalysisModel::getDomainPtr ( void  )

Returns a pointer to the associated Domain, that is the Domain set when the links were set.

◆ getDomainPtr() [2/2]

const XC::Domain * XC::AnalysisModel::getDomainPtr ( void  ) const

Returns a const pointer to the associated Domain, that is the Domain set when the links were set.

◆ getNumEqn()

int XC::AnalysisModel::getNumEqn ( void  ) const
virtual

Returns the number of DOFs in the model which have been assigned an equation number.

Returns the number of DOFs in the model which have been assigned an equation number. Returns the value passed in setNumEqn(), if setNumEqn() was not invoked \(0\) is returned.

◆ incrAccel()

void XC::AnalysisModel::incrAccel ( const Vector accel)
virtual

Sets the values of the acceleration increment of the nodes.

The model is responsible for invoking {incrNodeAccel(accel)} on each DOF_Group in the model. It does this by getting an iter to the DOF_Group objects and iterating through them invoking {incrNodeAccel(accel)} on each DOF_Group.

◆ incrDisp()

void XC::AnalysisModel::incrDisp ( const Vector disp)
virtual

Sets the values of the displacement increment of the nodes.

The model is responsible for invoking {incrNodeDisp(disp)} on each DOF_Group in the model. It does this by getting an iter to the DOF_Group objects and iterating through them invoking {incrNodeDisp(disp)} on each DOF_Group.

◆ incrVel()

void XC::AnalysisModel::incrVel ( const Vector vel)
virtual

Sets the values of the velocity increment of the nodes.

The model is responsible for invoking {incrNodeVel(vel)} on each DOF_Group in the model. It does this by getting an iter to the DOF_Group objects and iterating through them invoking {incrNodeVel(vel)} on each DOF_Group.

◆ revertDomainToLastCommit()

int XC::AnalysisModel::revertDomainToLastCommit ( void  )
protectedvirtual

Returns to the last committed state.

Method which invokes revertToLastCommit() on the domain: this is an operation which causes all nodes in the domain to set the trial response quantities equal to the last committed response quantities. Returns \(0\) if successful , a negative number if not: \(-1\) if no Domain has been set and \(-2\) if revertToLastCommit() fails on the Domain.

◆ sendSelf()

int XC::AnalysisModel::sendSelf ( Communicator comm)
virtual

Returns \(0\).

Note the FE_Elements and DOF_Group objects are not sent as they are not MovableObjects. AnalysisModel objects are only sent when setting up a DomainDecompAnalysis on a remote process; only type info and whatever subclasses might need need to be sent.

Implements XC::MovableObject.

◆ setAccel()

void XC::AnalysisModel::setAccel ( const Vector accel)
virtual

Sets the values of the acceleration of the nodes.

The model is responsible for invoking {setAccel(accel)} on each DOF_Group in the model. It does this by getting an iter to the DOF_Group objects and iterating through them invoking {setNodeAccel(accel)} on each DOF_Group.

◆ setCurrentDomainTime()

void XC::AnalysisModel::setCurrentDomainTime ( double  newTime)
protectedvirtual

To set the current time in the Domain to be newTime.

To set the current time in the Domain to be newTime. If no Domain has been set a warning message is printed, otherwise {setCurrentTime(newTime)} is invoked on the Domain.

◆ setDisp()

void XC::AnalysisModel::setDisp ( const Vector disp)
virtual

Sets the values of the displacement of the nodes.

The model is responsible for invoking {setDisp(disp)} on each DOF_Group in the model. It does this by getting an iter to the DOF_Group objects and iterating through them invoking {setNodeDisp(disp)} on each DOF_Group.

◆ setNumEqn()

void XC::AnalysisModel::setNumEqn ( int  theNumEqn)
virtual

Sets the value of the number of equations in the model.

Invoked by the DOF_Numberer when it is numbering the dofs.

◆ setResponse()

void XC::AnalysisModel::setResponse ( const Vector disp,
const Vector vel,
const Vector accel 
)
virtual

Sets the values of the displacement, velocity and acceleration of the nodes.

The model is responsible for invoking {setNodeDisp(disp)}, {setNodeVel(vel)} and {setNodeAccel(accel)} on each DOF_Group in the model. It does this by iterating over the DOF_Group objects using the iter.

◆ setVel()

void XC::AnalysisModel::setVel ( const Vector vel)
virtual

Sets the values of the velocity of the nodes.

The model is responsible for invoking {setVel(vel)} on each DOF_Group in the model. It does this by getting an iter to the DOF_Group objects and iterating through them invoking {setNodeVel(vel)} on each DOF_Group.

◆ updateDomain()

int XC::AnalysisModel::updateDomain ( void  )
protectedvirtual

Method which invokes update() on the domain.

If no Domain has been set nothing is done and an error message is printed.


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