xc
|
Base class for materials. More...
#include <Material.h>
Public Member Functions | |
Material (int tag, int classTag) | |
Constructor. More... | |
const MaterialHandler * | getMaterialHandler (void) const |
Returns (if possible) a pointer to the material handler (owner). | |
MaterialHandler * | getMaterialHandler (void) |
Returs a pointer to the material handler (if possible). | |
std::string | getName (void) const |
Returns the name of the material. | |
virtual int | setVariable (const std::string &argv) |
virtual int | getVariable (int variableID, double &info) |
virtual int | setParameter (const std::vector< std::string > &argv, Parameter ¶m) |
Sets the value param to the parameter argv . | |
virtual int | updateParameter (int responseID, Information &eleInformation) |
Updates the parameter identified by parameterID with info . | |
virtual Response * | setResponse (const std::vector< std::string > &argv, Information &eleInformation) |
virtual int | getResponse (int responseID, Information &info) |
Returns material response. | |
virtual void | update (void) |
Update state variables for the material according to the new values of the parameters. More... | |
virtual const Vector & | getGeneralizedStress (void) const =0 |
virtual const Vector & | getGeneralizedStrain (void) const =0 |
virtual const Vector & | getInitialGeneralizedStrain (void) const =0 |
virtual void | setInitialGeneralizedStrain (const Vector &)=0 |
virtual void | addInitialGeneralizedStrain (const Vector &) |
Increments generalized strain. More... | |
virtual void | zeroInitialGeneralizedStrain (void) |
zeroes initial generalized strain | |
virtual int | commitState (void)=0 |
virtual int | revertToLastCommit (void)=0 |
virtual int | revertToStart (void)=0 |
![]() | |
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. | |
virtual void | Print (std::ostream &, int flag=0) |
Print stuff. | |
![]() | |
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 | sendSelf (CommParameters &cp)=0 |
Send the object. More... | |
virtual int | recvSelf (const CommParameters &cp)=0 |
Receive the object. More... | |
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 . | |
![]() | |
DistributedBase (void) | |
Constructor. | |
virtual DbTagData & | getDbTagData (void) const |
Returns a vector to store class dbTags. | |
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. | |
Additional Inherited Members | |
![]() | |
void | setTag (int newTag) |
Set tag. More... | |
Base class for materials.
This class provides the interface that all subclasses must provide when introducing new material types. A material object is responsible for keeping track of stress, strain and the state variables for a particular integration point (Gauss point,...) in the domain.
XC::Material::Material | ( | int | tag, |
int | clasTag | ||
) |
Constructor.
To construct a material whose unique identifier among materials in the domain is given by tag
, and whose class identifier is given by classTag
. These integers are passed to the TaggedObject and MovableObject class constructors.
|
virtual |
Increments generalized strain.
incS | strain increment. |
|
virtual |
Update state variables for the material according to the new values of the parameters.