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

Load pattern combination (1.5*PP+1.0*CP+1.6*SC ...). More...

#include <LoadCombination.h>

Inheritance diagram for XC::LoadCombination:
XC::ForceReprComponent XC::DomainComponent XC::TaggedObject XC::MovableObject XC::DistributedBase

Public Types

typedef std::deque< summand > TDescomp
 Container type for the combination expression (1.5*PP+1.0*CP+1.6*SC ...).
 
typedef TDescomp::iterator iterator
 
typedef TDescomp::const_iterator const_iterator
 

Public Member Functions

 ~LoadCombination (void)
 Destructor.
 
virtual void setDomain (Domain *theDomain)
 Sets the pointer to the domain. More...
 
bool addToDomain (void)
 Adds to the domain being passed as parameter each of the load cases of the combination.
 
void removeFromDomain (void)
 Removes from the domain being passed as parameter the load cases of the combination.
 
const std::string & getName (void) const
 
void setDescomp (const std::string &descomp)
 
const LoadCombinationGroupgetGroup (void) const
 Returns the group to wich the combination belongs.
 
LoadCombinationGroupgetGroup (void)
 Returns the group to wich the combination belongs.
 
const_iterator begin (void) const
 
const_iterator end (void) const
 
size_t size (void) const
 
bool empty (void) const
 
float getCoefCaso (const LoadPattern *) const
 Returns the weighting factor for the load case being passed as parameter. More...
 
LoadCombinationmultiplica (const float &)
 Multiplies the combination by the number being passed as parameter.
 
LoadCombinationdivide (const float &)
 Divides the combination by the number being passed as parameter.
 
LoadCombinationadd (const std::string &)
 Add the combination identified by the name being passed as parameter.
 
LoadCombinationsubstract (const std::string &)
 Substracts the combination being passed as parameter.
 
LoadCombinationasigna (const std::string &)
 Assigns the combination identified by the name being passed as parameter.
 
LoadCombinationoperator+= (const LoadCombination &c)
 
LoadCombinationoperator-= (const LoadCombination &c)
 
LoadCombinationoperator*= (const float &f)
 
LoadCombinationoperator/= (const float &f)
 
LoadCombination operator+ (const LoadCombination &) const
 Addition operator.
 
LoadCombination operator- (const LoadCombination &) const
 Substraction operator.
 
LoadCombination operator* (const float &) const
 Product by a number operator.
 
LoadCombination operator/ (const float &) const
 Division by a number operator.
 
bool operator== (const LoadCombination &) const
 
bool operator!= (const LoadCombination &) const
 
bool dominaA (const LoadCombination &otra) const
 Returns true if the factors that weight all the load patterns of this load combination are greater that those in the combination being passed as parameter. More...
 
const LoadCombinationgetPtrCombPrevia (void) const
 Returns, if possible, a pointer to the "previous" combination.
 
const std::string getNombreCombPrevia (void) const
 Returns, if possible, the name of the "previous" combination.
 
int getTagCombPrevia (void) const
 Returns, if possible, the tag of the "previous" combination.
 
const std::string getDescompCombPrevia (void) const
 Returns, if possible, the decomposition of the "previous" combination.
 
const std::string getDescompRestoSobrePrevia (void) const
 Returns, si puede, la diferencia entre esta y la previa.
 
int sendSelf (CommParameters &)
 Sends object through the channel being passed as parameter.
 
int recvSelf (const CommParameters &)
 Receives object through the channel being passed as parameter.
 
std::string getString (const std::string &fmt="") const
 Returns a string that represents the load combination «1.35*G1+0.90*G1». More...
 
virtual void Print (std::ostream &s, int flag=0) const
 Imprime.
 
- Public Member Functions inherited from XC::ForceReprComponent
 ForceReprComponent (int classTag)
 
 ForceReprComponent (int tag, int classTag)
 
- Public Member Functions inherited from XC::DomainComponent
 ~DomainComponent (void)
 Destructor.
 
size_t getIdx (void) const
 Returns the index of the object (to be used in VTK arrays).
 
virtual DomaingetDomain (void) const
 Returns a pointer to the enclosing domain. More...
 
const PreprocessorgetPreprocessor (void) const
 Returns (if possible) a pointer to the preprocessor.
 
PreprocessorgetPreprocessor (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...
 
- Public Member Functions inherited from XC::TaggedObject
 TaggedObject (int tag, CommandEntity *owr=nullptr)
 Constructor. More...
 
virtual TaggedObjectgetCopy (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.
 
virtual void Print (std::ostream &, int flag=0)
 Print stuff.
 
- 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 (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 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.
 
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 set_gamma_f (void)
 
void set_domain (void)
 Assigns the domain to each domain.
 
void add_component (const summand &)
 Adds a component to the combination.
 
void interpreta_descomp (const std::string &str)
 Computes the combination from the string being passed as parameter.
 
void limpia_ceros (void)
 Deletes the null weighted load combinations.
 
void clear (void)
 Deletes the components of the load combination.
 
const_iterator buscaCaso (const LoadPattern *) const
 Returns a const iterator pointing to the load pattern being passed as parameter.
 
iterator buscaCaso (const LoadPattern *)
 Returns an iterator pointing to the load pattern being passed as parameter.
 
iterator begin (void)
 
iterator end (void)
 
LoadCombinationadd (const LoadCombination &)
 Sums the combination being passed as parameter.
 
LoadCombinationsubstract (const LoadCombination &)
 Substracts the combination being passed as parameter.
 
DbTagDatagetDbTagData (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.
 
int recvDescomp (void)
 Returns the combination decomposition (it must be called only after setting un the object's owner and the pointer to the load handler -LoadHandler-). More...
 
 LoadCombination (LoadCombinationGroup *owr=nullptr, const std::string &nmb="", int tag=0, LoadHandler *ll=nullptr)
 Constructor.
 
void setNombre (const std::string &nmb)
 
void setHandler (LoadHandler *ll)
 
- Protected Member Functions inherited from XC::DomainComponent
 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.
 
- Protected Member Functions inherited from XC::TaggedObject
void setTag (int newTag)
 Set tag. More...
 

Friends

class Domain
 
class FEM_ObjectBroker
 
class LoadCombinationGroup
 

Detailed Description

Load pattern combination (1.5*PP+1.0*CP+1.6*SC ...).

Member Function Documentation

§ dominaA()

bool XC::LoadCombination::dominaA ( const LoadCombination otra) const

Returns true if the factors that weight all the load patterns of this load combination are greater that those in the combination being passed as parameter.

§ getCoefCaso()

float XC::LoadCombination::getCoefCaso ( const LoadPattern lp) const

Returns the weighting factor for the load case being passed as parameter.

§ getDbTagData()

XC::DbTagData & XC::LoadCombination::getDbTagData ( void  ) const
protectedvirtual

Returns a vector to store the dbTags de los miembros of the clase.

Reimplemented from XC::DistributedBase.

§ getString()

std::string XC::LoadCombination::getString ( const std::string &  fmt = "") const

Returns a string that represents the load combination «1.35*G1+0.90*G1».

  • fmt: Format for the factor that multiplies the load case.

§ recvDescomp()

int XC::LoadCombination::recvDescomp ( void  )
protected

Returns the combination decomposition (it must be called only after setting un the object's owner and the pointer to the load handler -LoadHandler-).

§ setDomain()

virtual void XC::LoadCombination::setDomain ( Domain model)
virtual

Sets the pointer to the domain.

Sets the encompassing domain of the component to that given by {theDomain}. This method is invoked by theDomain when the component is being added to the domain, in an {addDomain..} invocation (see interface for Domain).

Reimplemented from XC::DomainComponent.


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