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

LoadPattern Class Reference

#include <LoadPattern.h>

Inheritance diagram for LoadPattern::

DomainComponent TaggedObject MovableObject EarthquakePattern MultiSupportPattern UniformExcitation List of all members.

Public Methods

 LoadPattern (int tag)
 constructors. More...

 LoadPattern ()
 LoadPattern (int tag, int classTag)
 for FEM_ObjectBroker. More...

virtual ~LoadPattern ()
 destructor. More...

virtual void setTimeSeries (TimeSeries *theSeries)
 method to set the associated TimeSeries and Domain. More...

virtual void setDomain (Domain *theDomain)
virtual bool addSP_Constraint (SP_Constraint *)
 methods to add loads. More...

virtual bool addNodalLoad (NodalLoad *)
virtual bool addElementalLoad (ElementalLoad *)
virtual NodalLoadIter& getNodalLoads (void)
virtual ElementalLoadIter& getElementalLoads (void)
virtual SP_ConstraintIter& getSPs (void)
virtual void clearAll (void)
 methods to remove loads. More...

virtual NodalLoadremoveNodalLoad (int tag)
virtual ElementalLoadremoveElementalLoad (int tag)
virtual SP_ConstraintremoveSP_Constraint (int tag)
virtual void applyLoad (double pseudoTime=0.0)
 methods to apply loads. More...

virtual void setLoadConstant (void)
virtual int sendSelf (int commitTag, Channel &theChannel)
 methods for o/p. More...

virtual int recvSelf (int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)
virtual void Print (ostream &s, int flag=0)
virtual LoadPattern* getCopy (void)
 method to obtain a blank copy of the LoadPattern. More...

int setParameter (char **argv, int argc, Information &info)
 methods for sensitivity studies. More...

int updateParameter (int parameterID, Information &info)

Detailed Description

The LoadPattern class is a concrete base class. A LoadPattern is a container class for Load and SP\_Constraint objects. Each LoadPattern object is assocaited with a TimeSeries object which, for a given pseudo time, will return the appropriate load factor to be applied to th load in the LoadPattern. \

}

Definition at line 64 of file LoadPattern.h.


Constructor & Destructor Documentation

LoadPattern::LoadPattern ( int tag )
 

constructors.

Definition at line 111 of file LoadPattern.cpp.

LoadPattern::LoadPattern ( )
 

The integer {tag} is passed to the DomainComponent classes constructor. Creates three ArrayOftaggedObjects objects to store pointers to the NodalLoad, ElementalLoad and SP\_Constraints and three iters. If not enough memory is available for these objects an error message is printed and the program is terminated.

Definition at line 82 of file LoadPattern.cpp.

Referenced by getCopy().

LoadPattern::LoadPattern ( int tag,
int classTag )
 

for FEM_ObjectBroker.

Definition at line 53 of file LoadPattern.cpp.

LoadPattern::~LoadPattern ( ) [virtual]
 

destructor.

Definition at line 143 of file LoadPattern.cpp.


Member Function Documentation

void LoadPattern::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 EarthquakePattern, MultiSupportPattern, and UniformExcitation.

Definition at line 811 of file LoadPattern.cpp.

bool LoadPattern::addElementalLoad ( ElementalLoad * load ) [virtual]
 

Adds the ElementalLoad pointed to by {theLoad} to the LoadPattern. If the LoadPattern could add the pointer to its storage object for elemental loads, it will invoke {setDomain()} and {setLoadPattern()} on the load object if a Domain has been set.

Reimplemented in EarthquakePattern, and MultiSupportPattern.

Definition at line 225 of file LoadPattern.cpp.

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

bool LoadPattern::addNodalLoad ( NodalLoad * load ) [virtual]
 

Adds the NodalLoad object pointed to by {theLoad} to the LoadPattern. If the LoadPattern could add the pointer to its storage object for nodal loads, it will invoke {setDomain()} and {setLoadPattern()} on the load object if a Domain has been set.

Reimplemented in EarthquakePattern, and MultiSupportPattern.

Definition at line 208 of file LoadPattern.cpp.

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

bool LoadPattern::addSP_Constraint ( SP_Constraint * theSp ) [virtual]
 

methods to add loads.

Reimplemented in EarthquakePattern.

Definition at line 242 of file LoadPattern.cpp.

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

void LoadPattern::applyLoad ( double time = 0.0 ) [virtual]
 

methods to apply loads.

Reimplemented in EarthquakePattern, MultiSupportPattern, and UniformExcitation.

Definition at line 326 of file LoadPattern.cpp.

Referenced by Domain::applyLoad().

void LoadPattern::clearAll ( void ) [virtual]
 

methods to remove loads.

Definition at line 280 of file LoadPattern.cpp.

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

LoadPattern * LoadPattern::getCopy ( void ) [virtual]
 

method to obtain a blank copy of the LoadPattern.

Reimplemented in EarthquakePattern, MultiSupportPattern, and UniformExcitation.

Definition at line 826 of file LoadPattern.cpp.

ElementalLoadIter & LoadPattern::getElementalLoads ( void ) [virtual]
 

Returns an iter to the elemental loads in the LoadPattern.

Definition at line 266 of file LoadPattern.cpp.

Referenced by applyLoad(), recvSelf(), Domain::removeLoadPattern(), sendSelf(), and setDomain().

NodalLoadIter & LoadPattern::getNodalLoads ( void ) [virtual]
 

Returns an iter to the nodal loads in the LoadPattern.

Definition at line 259 of file LoadPattern.cpp.

Referenced by applyLoad(), recvSelf(), Domain::removeLoadPattern(), sendSelf(), setDomain(), setParameter(), and updateParameter().

SP_ConstraintIter & LoadPattern::getSPs ( void ) [virtual]
 

Returns an iter to the single-point constraints in the LoadPattern.

Definition at line 273 of file LoadPattern.cpp.

Referenced by MultiSupportPattern::Print(), MultiSupportPattern::applyLoad(), applyLoad(), recvSelf(), Domain::removeLoadPattern(), sendSelf(), and setDomain().

int LoadPattern::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 EarthquakePattern, MultiSupportPattern, and UniformExcitation.

Definition at line 564 of file LoadPattern.cpp.

Referenced by Domain::recvSelf().

ElementalLoad * LoadPattern::removeElementalLoad ( int tag ) [virtual]
 

To remove the elemental load whose identifier is given by {tag} from the LoadPattern and set the loads associated Domain object to . Returns a pointer to the load if succesfully removed, otherwise is returned.

Definition at line 301 of file LoadPattern.cpp.

Referenced by Domain::removeElementalLoad().

NodalLoad * LoadPattern::removeNodalLoad ( int tag ) [virtual]
 

To remove the nodal load whose identifier is given by {tag} from the LoadPattern and sets the laods associated Domain object to . Returns a pointer to the load if succesfully removed, otherwise is returned.

Definition at line 289 of file LoadPattern.cpp.

Referenced by Domain::removeNodalLoad().

SP_Constraint * LoadPattern::removeSP_Constraint ( int tag ) [virtual]
 

Definition at line 313 of file LoadPattern.cpp.

Referenced by Domain::removeSP_Constraint().

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

methods for o/p.

Reimplemented from MovableObject.

Reimplemented in EarthquakePattern, MultiSupportPattern, and UniformExcitation.

Definition at line 356 of file LoadPattern.cpp.

Referenced by Domain::sendSelf().

void LoadPattern::setDomain ( Domain * theDomain ) [virtual]
 

If any loads or constraint objects exist in the LoadPattern, the LoadPattern will invoke {setDomain()} on those objects. Finally invokes the DomainComponent classes {setDomain()} method.

Reimplemented from DomainComponent.

Reimplemented in UniformExcitation.

Definition at line 181 of file LoadPattern.cpp.

Referenced by Domain::addLoadPattern(), Domain::removeLoadPattern(), and UniformExcitation::setDomain().

void LoadPattern::setLoadConstant ( void ) [virtual]
 

Definition at line 349 of file LoadPattern.cpp.

Referenced by Domain::setLoadConstant().

int LoadPattern::setParameter ( char ** argv,
int argc,
Information & info ) [virtual]
 

methods for sensitivity studies.

Reimplemented from DomainComponent.

Definition at line 841 of file LoadPattern.cpp.

void LoadPattern::setTimeSeries ( TimeSeries * theSeries ) [virtual]
 

method to set the associated TimeSeries and Domain.

Definition at line 169 of file LoadPattern.cpp.

int LoadPattern::updateParameter ( int parameterID,
Information & info ) [virtual]
 

Reimplemented from DomainComponent.

Definition at line 872 of file LoadPattern.cpp.


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