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 &);
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 73 inline std::set<std::string> getMaterialNames(
void)
const 75 inline boost::python::list getMaterialNamesPy(
void)
const 78 inline MAT *operator[](
const size_t &i)
79 {
return theMaterial[i]; }
80 inline const MAT *operator[](
const size_t &i)
const 81 {
return theMaterial[i]; }
86 virtual void Print(std::ostream &s,
int);
107 { theMaterial.setMaterial(matModel); }
111 { theMaterial.setMaterial(matModel,type); }
144 int res= this->sendData(cp);
146 const int dataTag= getDbTag();
149 std::cerr <<
"PhysicalProperties::sendSelf -- failed to send ID data\n";
159 const int dataTag= getDbTag();
162 std::cerr <<
"PhysicalProperties::recvSelf -- failed to receive ID data\n";
164 res+= this->recvData(cp);
172 std::cerr <<
"PhysicalProperties::Print -- not implemented\n";
Base class for element's physical properties.
Definition: PhysicalProperties.h:45
int recvSelf(const CommParameters &)
Receives object.
Definition: PhysicalProperties.h:155
int sendIdData(const DbTagData &, const int &)
Sends miembro data through the channel being passed as parameter.
Definition: CommParameters.cc:392
int revertToLastCommit(void)
Returns materials to its last commited state.
Definition: MaterialVector.h:233
std::set< std::string > getNames(void) const
Return the names of the materials.
Definition: MaterialVector.h:538
Object that can move between processes.
Definition: MovableObject.h:99
int receiveIdData(DbTagData &, const int &) const
Receives el miembro data through the channel being passed as parameter.
Definition: CommParameters.cc:396
int receiveMovable(MovableObject &, DbTagData &, const CommMetaData &) const
Receives a movable object trhrough the channel being passed as parameter.
Definition: CommParameters.cc:1076
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:43
boost::python::list getNamesPy(void) const
Return the names of the materials in a python list.
Definition: MaterialVector.h:548
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: PhysicalProperties.h:116
Material pointer container.
Definition: MaterialVector.h:46
material_vector theMaterial
pointers to the material objects
Definition: PhysicalProperties.h:50
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: PhysicalProperties.h:132
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: PhysicalProperties.h:124
int commitState(void)
Commits materials state (normally after convergence).
Definition: MaterialVector.h:222
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
int sendSelf(CommParameters &)
Sends object.
Definition: PhysicalProperties.h:140
virtual void Print(std::ostream &s, int)
Sends object.
Definition: PhysicalProperties.h:170
int sendMovable(MovableObject &, DbTagData &, const CommMetaData &)
Sends a movable object through the channel being passed as parameter.
Definition: CommParameters.cc:1066
int revertToStart(void)
Return materials to its initial state.
Definition: MaterialVector.h:245