XC Open source finite element analysis program
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< sumando > 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)
 Asigna a pointer al domain.
 
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 & getNombre (void) const
 
void setDescomp (const std::string &descomp)
 
const LoadCombinationGroupgetGrupo (void) const
 Returns the group to wich the combination belongs.
 
LoadCombinationGroupgetGrupo (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.
 
LoadCombinationmultiplica (const float &otro)
 Multiplies the combination by the number being passed as parameter.
 
LoadCombinationdivide (const float &otro)
 Divides the combination by the number being passed as parameter.
 
LoadCombinationsuma (const std::string &)
 Suma the combination identified by the name being passed as parameter.
 
LoadCombinationresta (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.
 
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 domain.
 
const PreprocessorGetPreprocessor (void) const
 Returns (if possible) a pointer to the preprocessor.
 
PreprocessorGetPreprocessor (void)
 Returns (if possible) a pointer to the preprocessor.
 
void set_indice (const size_t &i)
 Set the index for the object (see numera in Set). This index is used on VTK arrays.
 
- Public Member Functions inherited from XC::TaggedObject
 TaggedObject (int tag, EntCmd *owr=nullptr)
 Constructor.
 
virtual TaggedObjectgetCopy (void) const
 Virtual constructor.
 
void assignTag (int newTag)
 Establece el valor del tag.
 
int getTag (void) const
 
virtual void Print (std::ostream &s, int flag=0)
 Imprime el objeto.
 
- Public Member Functions inherited from XC::MovableObject
 MovableObject (int classTag, int dbTag)
 Constructor.
 
 MovableObject (int classTag)
 Constructor.
 
 MovableObject (const MovableObject &otro)
 Copy constructor.
 
MovableObjectoperator= (const MovableObject &otro)
 Operacdor asignación.
 
int getClassTag (void) const
 Returns the tag de la clase.
 
int getDbTag (void) const
 Returns the tag para la database.
 
int getDbTag (CommParameters &)
 Returns the tag para la database.
 
void setDbTag (int dbTag)
 Asigna el tag para la database.
 
void setDbTag (CommParameters &)
 Asigna, sólo si es preciso, el tag para la database.
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 
virtual int updateParameter (int parameterID, Information &info)
 
virtual int activateParameter (int parameterID)
 
virtual int setVariable (const std::string &variable, Information &)
 Returns the identificador de la variable cuyo nombre being passed as parameter.
 
virtual int getVariable (const std::string &variable, Information &)
 
- 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 sumando &)
 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)
 
LoadCombinationsuma (const LoadCombination &otro)
 Sums the combination being passed as parameter.
 
LoadCombinationresta (const LoadCombination &otro)
 Substracts the combination being passed as parameter.
 
DbTagDatagetDbTagData (void) const
 Returns a vector para almacenar los dbTags de los miembros de la clase.
 
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 -LoadLoader-).
 
 LoadCombination (LoadCombinationGroup *owr=nullptr, const std::string &nmb="", int tag=0, LoadLoader *ll=nullptr)
 Constructor.
 
void setNombre (const std::string &nmb)
 
void setLoader (LoadLoader *ll)
 
- Protected Member Functions inherited from XC::DomainComponent
 DomainComponent (int tag, int classTag)
 Constructor.
 
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.
 
- Protected Member Functions inherited from XC::TaggedObject
void setTag (int newTag)
 Establece el valor del tag.
 

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

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.

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