xc
|
Earthquake load pattern. More...
#include <EarthquakePattern.h>
Public Member Functions | |
EarthquakePattern (int tag, int classTag) | |
virtual void | applyLoad (double time) |
Applies the earthquake load. More... | |
virtual bool | addSFreedom_Constraint (SFreedom_Constraint *) |
Adds the constraint being passed as parameter. | |
virtual bool | addNodalLoad (NodalLoad *) |
Adds the nodal load being passed as parameter. | |
virtual bool | addElementalLoad (ElementalLoad *) |
Adds the element load being passed as parameter. | |
virtual int | sendSelf (CommParameters &)=0 |
Sends object through the channel being passed as parameter. | |
virtual int | recvSelf (const CommParameters &)=0 |
Receives object through the channel being passed as parameter. | |
virtual void | Print (std::ostream &s, int flag=0) |
Prints load pattern information. | |
virtual void | applyLoadSensitivity (double pseudoTime=0.0) |
virtual int | setParameter (const std::vector< std::string > &argv, Parameter ¶m) |
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 . | |
![]() | |
EQBasePattern (int tag, int classTag) | |
size_t | getNumMotions (void) const |
void | clear (void) |
![]() | |
LoadPattern (int tag=0) | |
Constructor. | |
LoadPattern (int tag, int classTag) | |
Constructor. More... | |
virtual | ~LoadPattern (void) |
Destructor. | |
virtual void | setTimeSeries (TimeSeries *theSeries) |
Set the time series for the pattern. | |
virtual void | setDomain (Domain *theDomain) |
Set the domain for the pattern loads. | |
bool | addToDomain (void) |
Apply load. | |
void | removeFromDomain (void) |
Removes load. | |
NodalLoad * | newNodalLoad (const int &, const Vector &) |
Creates a nodal load. More... | |
bool | newElementalLoad (ElementalLoad *) |
Appends the elemental load being passed as parameter. | |
ElementalLoad * | newElementalLoad (const std::string &) |
Crea una load over elements. | |
LoadContainer & | getLoads (void) |
Return the load container. | |
const LoadContainer & | getLoads (void) const |
Return the load container. | |
int | getNumNodalLoads (void) const |
Return the number of nodal loads. | |
int | getNumElementalLoads (void) const |
Return the number of elemental loads. | |
int | getNumLoads (void) const |
Return the number of loads. | |
virtual void | clearAll (void) |
Deletes all loads, constraints AND pointer to time series. | |
virtual void | clearLoads (void) |
Deletes all loads. | |
virtual bool | removeNodalLoad (int tag) |
Remove the nodal load which tag is being passed as parameter. | |
virtual bool | removeElementalLoad (int tag) |
Remove the load over element which tag is being passed as parameter. | |
virtual void | setLoadConstant (void) |
Marks the LoadPattern as being constant. More... | |
void | setIsConstant (const bool &b) |
bool | getIsConstant (void) const |
const MapLoadPatterns * | getMapLoadPatterns (void) const |
Returns a const pointer to the container of the load pattern. | |
MapLoadPatterns * | getMapLoadPatterns (void) |
Returns a pointer to the container of the load pattern. | |
const std::string & | getName (void) const |
Returns the name of this load pattern. | |
const std::string & | getDescription (void) const |
void | setDescription (const std::string &d) |
virtual const double & | getLoadFactor (void) const |
Returns the weighting factor obtained from the TimeSeries object. | |
const double & | GammaF (void) const |
Returns the weighting factor set by the load combination. | |
double & | GammaF (void) |
Returns the weighting factor set by the load combination. | |
void | setGammaF (const double &) |
Sets the weighting factor set by the load combination. | |
LoadPattern & | operator*= (const double &fact) |
LoadPattern & | operator/= (const double &fact) |
virtual LoadPattern * | getCopy (void) |
Virtual constructor. | |
virtual int | addMotion (GroundMotion &theMotion, int tag) |
virtual GroundMotion * | getMotion (int tag) |
virtual const Vector & | getExternalForceSensitivity (int gradNumber) |
![]() | |
virtual | ~NodeLocker (void) |
Destructor. | |
virtual SFreedom_Constraint * | addSFreedom_Constraint (const int &nodeTag, const int &dofId, const double &) |
Adds the single freedom constraint being passed as parameter. | |
virtual SFreedom_ConstraintIter & | getSPs (void) |
Returns an iterator to the single freedom constraints. | |
int | getNumSPs (void) const |
Returns the number of single freedom constraints. | |
SFreedom_Constraint * | newSPConstraint (const int &, const int &, const double &) |
Creates a single freedom constraint. More... | |
virtual bool | removeSFreedom_Constraint (int tag) |
Erases the single freedom constraint identified by the argument. More... | |
virtual void | applyLoad (const double &pseudoTime=0.0, const double &factor=1.0) |
Applies the single freedom constraints. More... | |
std::deque< int > | getTagsSPsNode (int theNode, int theDOF) const |
Returns the constraint that affect the node and DOF being passed as parameter. More... | |
std::deque< int > | getTagsSPsNode (int theNode) const |
Returns the constraint that affect the node being passed as parameter. More... | |
bool | nodeAffectedBySPs (int nodeTag) const |
Returns true if the single freedom constraints affect the node which identifier is being passed as parameter. More... | |
![]() | |
ForceReprComponent (int classTag) | |
ForceReprComponent (int tag, int classTag) | |
![]() | |
~DomainComponent (void) | |
Destructor. | |
size_t | getIdx (void) const |
Returns the index of the object (to be used in VTK arrays). | |
virtual Domain * | getDomain (void) const |
Returns a pointer to the enclosing domain. More... | |
const Preprocessor * | getPreprocessor (void) const |
Returns (if possible) a pointer to the preprocessor. | |
Preprocessor * | getPreprocessor (void) |
Return (if possible) a pointer to the preprocessor. | |
void | set_index (const size_t &i) |
Set the index for the object (see numera in Set). More... | |
![]() | |
TaggedObject (int tag, CommandEntity *owr=nullptr) | |
Constructor. More... | |
virtual TaggedObject * | getCopy (void) const |
Virtual constructor. | |
void | assignTag (int newTag) |
Set tag (to be called from Python interface). | |
int | getTag (void) const |
Returns the tag associated with the object. | |
![]() | |
MovableObject (int classTag, int dbTag) | |
Constructor. More... | |
MovableObject (int classTag) | |
Constructor. More... | |
MovableObject (const MovableObject &) | |
Copy constructor. Doesn't copy the dbTag. | |
MovableObject & | operator= (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 (CommParameters &) |
Return the object identifier in the database. | |
void | setDbTag (int dbTag) |
Sets the object identifier in the database. | |
void | setDbTag (CommParameters &) |
Sets the object identifier in the database if not already set. More... | |
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 . | |
![]() | |
DistributedBase (void) | |
Constructor. | |
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. | |
Protected Member Functions | |
void | copy (const Vector *, const Vector *) |
int | addMotion (GroundMotion &) |
Adds the GroundMotion, theMotion to the list of GroundMotion objects. More... | |
int | sendData (CommParameters &) |
Send object members through the channel being passed as parameter. | |
int | recvData (const CommParameters &) |
Receives object members through the channel being passed as parameter. | |
![]() | |
int | addMotion (GroundMotion &theMotion) |
int | sendData (CommParameters &) |
Send members through the channel being passed as parameter. | |
int | recvData (const CommParameters &) |
Receives members through the channel being passed as parameter. | |
![]() | |
DbTagData & | getDbTagData (void) const |
Returns a vector to store the dbTags of the class members. More... | |
int | sendData (CommParameters &cp) |
Send members through the channel being passed as parameter. | |
int | recvData (const CommParameters &cp) |
Receives members through the channel being passed as parameter. | |
![]() | |
DbTagData & | getDbTagData (void) const |
Returns a vector to store the dbTags de los miembros of the clase. More... | |
int | sendData (CommParameters &cp) |
Send members through the channel being passed as parameter. | |
int | recvData (const CommParameters &cp) |
Receives members through the channel being passed as parameter. | |
NodeLocker (void) | |
Default constructor. | |
NodeLocker (int tag) | |
Constructor. | |
NodeLocker (int tag, int classTag) | |
Constructor. | |
![]() | |
DomainComponent (int tag, int classTag) | |
Constructor. More... | |
int | sendData (CommParameters &) |
Send object members through the channel being passed as parameter. | |
int | recvData (const CommParameters &) |
Receive object members through the channel being passed as parameter. | |
![]() | |
void | setTag (int newTag) |
Set tag. More... | |
Additional Inherited Members | |
![]() | |
DqGroundMotions | theMotions |
![]() | |
bool | isConstant |
to indicate whether setConstant has been called | |
![]() | |
int | nextTag |
Default tag for next node locker. | |
int | currentGeoTag |
int | lastGeoSendTag |
TaggedObjectStorage * | theSPs |
Constraint container. | |
SingleDomSFreedom_Iter * | theSpIter |
Constraint iterator. | |
Earthquake load pattern.
The EarthquakePattern class is an abstract class. An EarthquakePattern is an object which adds earthquake loads to models. This abstract class keeps track of the GroundMotion objects and implements the applyLoad() method. It is up to the concrete subclasses to set the appropriate values of R
at each node in the model.
|
protected |
Adds the GroundMotion, theMotion
to the list of GroundMotion objects.
|
virtual |
Applies the earthquake load.
Obtains from each GroundMotion, the velocity and acceleration for the time specified. These values are placed in two Vectors of size equal to the number of GroundMotion objects. For each node in the Domain addInertiaLoadToUnbalance() is invoked with the acceleration Vector objects. SIMILAR OPERATION WITH VEL and ACCEL NEEDS TO BE INVOKED ON ELEMENTS .. NEED TO MODIFY ELEMENT INTERFACE
Reimplemented from XC::LoadPattern.
Reimplemented in XC::UniformExcitation.