XC Open source finite element analysis program
Public Types | Public Member Functions | Protected Member Functions | List of all members
XC::MaterialVector< MAT > Class Template Reference

Material pointer container. It's used by elements to store materials for each integration point. 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::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 &tipo)
 
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...
 
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.
 
 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 clear_materials (void)
 
void clearAll (void)
 
void alloc (const std::vector< MAT * > &mats)
 Copy materials from another vector.
 
DbTagDatagetDbTagData (void) const
 Returns a vector para almacenar los dbTags de los miembros de la clase.
 
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

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.
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.
template<class MAT >
double XC::MaterialVector< MAT >::getMeanGeneralizedStrain ( const int &  defID) const

Returns the defID component of the average strain vector.

Parameters
defIDcomponent index.
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.
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.
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: