29 #ifndef PhysicalProperties_h 30 #define PhysicalProperties_h 32 #include "utility/actor/actor/MovableObject.h" 33 #include "material/MaterialVector.h" 58 void setMaterial(
const MAT *);
59 void setMaterial(
const MAT *,
const std::string &tipo);
60 void setMaterial(
size_t i,
const MAT *);
63 int commitState(
void);
64 int revertToLastCommit(
void);
65 int revertToStart(
void);
67 inline size_t size(
void)
const 68 {
return theMaterial.size(); }
69 inline material_vector &getMaterialsVector(
void)
71 inline const material_vector &getMaterialsVector(
void)
const 74 inline MAT *operator[](
const size_t &i)
75 {
return theMaterial[i]; }
76 inline const MAT *operator[](
const size_t &i)
const 77 {
return theMaterial[i]; }
82 virtual void Print(std::ostream &s,
int);
103 { theMaterial.setMaterial(matModel); }
107 { theMaterial.setMaterial(matModel,tipo); }
140 int res= this->sendData(cp);
142 const int dataTag= getDbTag();
145 std::cerr <<
"PhysicalProperties::sendSelf -- failed to send ID data\n";
155 const int dataTag= getDbTag();
158 std::cerr <<
"PhysicalProperties::recvSelf -- failed to receive ID data\n";
160 res+= this->recvData(cp);
168 std::cerr <<
"PhysicalProperties::Print -- not implemented\n";
int sendMovable(MovableObject &, DbTagData &, const CommMetaData &)
Sends a movable object through the channel being passed as parameter.
Definition: CommParameters.cc:959
Vector que almacena los dbTags de los miembros de la clase.
Definition: DbTagData.h:43
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: PhysicalProperties.h:120
int receiveIdData(DbTagData &, const int &) const
Recibe el miembro data through the channel being passed as parameter.
Definition: CommParameters.cc:396
DbTagData & getDbTagData(void) const
Returns a vector para almacenar los dbTags de los miembros de la clase.
Definition: PhysicalProperties.h:112
int sendIdData(const DbTagData &, const int &)
Sends miembro data through the channel being passed as parameter.
Definition: CommParameters.cc:392
virtual void Print(std::ostream &s, int)
Sends object.
Definition: PhysicalProperties.h:166
Object that can move between processes.
Definition: MovableObject.h:91
int receiveMovable(MovableObject &, DbTagData &, const CommMetaData &) const
Receives a movable object trhrough the channel being passed as parameter.
Definition: CommParameters.cc:969
int commitState(void)
Commits materials state (normally after convergence).
Definition: MaterialVector.h:218
int sendSelf(CommParameters &)
Sends object.
Definition: PhysicalProperties.h:136
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: PhysicalProperties.h:128
Base class for element's physical properties.
Definition: PhysicalProperties.h:45
Material pointer container. It's used by elements to store materials for each integration point...
Definition: MaterialVector.h:46
material_vector theMaterial
pointers to the material objects
Definition: PhysicalProperties.h:50
int revertToStart(void)
Return materials to its initial state.
Definition: MaterialVector.h:241
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
int revertToLastCommit(void)
Returns materials to its last commited state.
Definition: MaterialVector.h:229
int recvSelf(const CommParameters &)
Receives object.
Definition: PhysicalProperties.h:151