xc
Public Types | Public Member Functions | Protected Member Functions | List of all members
XC::MaterialVector< MAT > Class Template Reference

Material pointer container. More...

#include <MaterialVector.h>

Inheritance diagram for XC::MaterialVector< MAT >:
XC::MovableObject XC::DistributedBase

Public Types

typedef std::vector< MAT * > mat_vector
 
typedef mat_vector::iterator iterator
 
typedef mat_vector::const_iterator const_iterator
 
typedef mat_vector::reference reference
 
typedef mat_vector::const_reference const_reference
 

Public Member Functions

 MaterialVector (const size_t &nMat, const MAT *matModel=nullptr)
 Default constructor.
 
 MaterialVector (const MaterialVector< MAT > &)
 Copy constructor.
 
MaterialVector< MAT > & operator= (const MaterialVector< MAT > &)
 Assignment operator.
 
void setMaterial (const MAT *)
 
void setMaterial (size_t i, MAT *)
 
void setMaterial (const MAT *, const std::string &)
 
bool empty (void) const
 Returns true ifno se ha asignado material.
 
int commitState (void)
 Commits materials state (normally after convergence).
 
int revertToLastCommit (void)
 Returns materials to its last commited state.
 
int revertToStart (void)
 Return materials to its initial state.
 
void setInitialGeneralizedStrains (const std::vector< Vector > &)
 Assigns initial values to materials initial strains.
 
void addInitialGeneralizedStrains (const std::vector< Vector > &)
 Adds to the materials initial strains the values being passed as parameters.
 
void zeroInitialGeneralizedStrains (void)
 Initialize initial strains.
 
size_t getGeneralizedStressSize (void) const
 Returns the size of stress vector.
 
size_t getGeneralizedStrainSize (void) const
 Returns the size of generalized strains vector.
 
m_double getGeneralizedStresses (void) const
 Returns generalized stress values on each integration point.
 
m_double getGeneralizedStrains (void) const
 Returns generalized strain values on each integration point.
 
const VectorgetMeanGeneralizedStress (void) const
 Returns average generalized stress values on element. In a future we can enhance this by providing an extrapolation of results in gauss points as described in 28.4 IFEM chapter 28.
 
const VectorgetMeanGeneralizedStrain (void) const
 Returns average generalized strain values on element.In a future we can enhance this by providing an extrapolation of results in gauss points as described in 28.4 IFEM chapter 28.
 
double getMeanGeneralizedStrain (const int &defID) const
 Returns the defID component of the average strain vector. More...
 
double getMeanGeneralizedStress (const int &defID) const
 Returns the defID component of the average generalized stress vector. More...
 
double getMeanGeneralizedStrainByName (const std::string &) const
 Returns the component of the average strain vector which has the code being passed as parameter. More...
 
double getMeanGeneralizedStressByName (const std::string &) const
 Returns the component of the average generalized stress vector which corresponds to the code being passed as parameter. More...
 
m_double getGeneralizedStrain (const int &defID) const
 Returns the defID component of generalized strain vector on each integration point. More...
 
m_double getGeneralizedStress (const int &defID) const
 Returns the defID component of generalized stress vector on each integration point. More...
 
std::set< std::string > getNames (void) const
 Return the names of the materials.
 
boost::python::list getNamesPy (void) const
 Return the names of the materials in a python list.
 
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.
 
- 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 clear_materials (void)
 
void clearAll (void)
 
void alloc (const std::vector< MAT *> &mats)
 Copy materials from another vector.
 
DbTagDatagetDbTagData (void) const
 Returns a vector to store the dbTags of the class members. More...
 
int sendData (CommParameters &)
 Send object members through the channel being passed as parameter.
 
int recvData (const CommParameters &)
 Receives object through the channel being passed as parameter.
 

Detailed Description

template<class MAT>
class XC::MaterialVector< MAT >

Material pointer container.

It's used by elements to store materials for each integration point.

Member Function Documentation

§ getDbTagData()

template<class MAT >
XC::DbTagData & XC::MaterialVector< MAT >::getDbTagData ( void  ) const
protectedvirtual

Returns a vector to store the dbTags of the class members.

Reimplemented from XC::DistributedBase.

§ getGeneralizedStrain()

template<class MAT >
m_double XC::MaterialVector< MAT >::getGeneralizedStrain ( const int &  defID) const

Returns the defID component of generalized strain vector on each integration point.

Parameters
defIDcomponent index.

§ getGeneralizedStress()

template<class MAT >
m_double XC::MaterialVector< MAT >::getGeneralizedStress ( const int &  defID) const

Returns the defID component of generalized stress vector on each integration point.

Parameters
defIDcomponent index.

§ getMeanGeneralizedStrain()

template<class MAT >
double XC::MaterialVector< MAT >::getMeanGeneralizedStrain ( const int &  defID) const

Returns the defID component of the average strain vector.

Parameters
defIDcomponent index.

§ getMeanGeneralizedStrainByName()

template<class MAT >
double XC::MaterialVector< MAT >::getMeanGeneralizedStrainByName ( const std::string &  cod) const

Returns the component of the average strain vector which has the code being passed as parameter.

Parameters
codcomponent code.

§ getMeanGeneralizedStress()

template<class MAT >
double XC::MaterialVector< MAT >::getMeanGeneralizedStress ( const int &  defID) const

Returns the defID component of the average generalized stress vector.

Parameters
defIDcomponent index.

§ getMeanGeneralizedStressByName()

template<class MAT >
double XC::MaterialVector< MAT >::getMeanGeneralizedStressByName ( const std::string &  cod) const

Returns the component of the average generalized stress vector which corresponds to the code being passed as parameter.

Parameters
codcomponent code (n1,n2,n12,m1,m2,m12,q13,q23)

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