30 #ifndef PhysicalProperties_h 31 #define PhysicalProperties_h 33 #include "utility/actor/actor/MovableObject.h" 34 #include "material/MaterialVector.h" 51 typedef MAT material_type;
62 void setMaterial(
const MAT *);
63 void setMaterial(
const MAT *,
const std::string &);
64 void setMaterial(
size_t i,
const MAT *);
65 void setMaterial(
size_t i,
const MAT &);
70 int commitState(
void);
71 int revertToLastCommit(
void);
72 int revertToStart(
void);
74 inline size_t size(
void)
const 75 {
return theMaterial.size(); }
76 inline material_vector &getMaterialsVector(
void)
78 inline const material_vector &getMaterialsVector(
void)
const 80 inline std::set<std::string> getMaterialNames(
void)
const 82 inline boost::python::list getMaterialNamesPy(
void)
const 84 inline std::set<std::string> getMaterialTags(
void)
const 85 {
return theMaterial.
getTags(); }
86 inline boost::python::list getMaterialTagsPy(
void)
const 92 inline MAT *operator[](
const size_t &i)
93 {
return theMaterial[i]; }
94 inline const MAT *operator[](
const size_t &i)
const 95 {
return theMaterial[i]; }
110 virtual void Print(std::ostream &s,
int)
const;
131 { theMaterial.setMaterial(matModel); }
135 { theMaterial.setMaterial(matModel,type); }
139 { theMaterial.setMaterial(i,matModel); }
143 { theMaterial.setMaterial(i,matModel); }
182 <<
"; failed to send ID data\n";
196 <<
"; failed to receive ID data\n";
207 <<
"; not implemented yet.\n";
216 <<
"; not implemented yet.\n";
225 <<
"; not implemented yet.\n";
int sendMovable(MovableObject &, DbTagData &, const CommMetaData &)
Sends a movable object through the communicator argument.
Definition: Communicator.cc:1163
Base class for element's physical properties.
Definition: PhysicalProperties.h:48
int sendIdData(const DbTagData &, const int &)
Sends miembro data through the communicator argument.
Definition: Communicator.cc:411
Communication parameters between processes.
Definition: Communicator.h:66
Response * setResponse(const std::vector< std::string > &argv, Information &eleInformation)
Material response.
Definition: PhysicalProperties.h:213
Base class response objects.
Definition: Response.h:81
Object that can return properties as Python objects.
Definition: EntityWithProperties.h:32
int revertToLastCommit(void)
Returns materials to its last committed state.
Definition: MaterialVector.h:266
std::set< std::string > getNames(void) const
Return the names of the materials.
Definition: MaterialVector.h:592
Object that can move between processes.
Definition: MovableObject.h:100
int receiveMovable(MovableObject &, DbTagData &, const CommMetaData &) const
Receives a movable object trhrough the communicator argument.
Definition: Communicator.cc:1174
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:44
Matrix getGeneralizedStresses(void) const
Returns generalized stress values on each integration point.
Definition: MaterialVector.h:338
boost::python::list getNamesPy(void) const
Return the names of the materials in a python list.
Definition: MaterialVector.h:602
void copyPropsFrom(const EntityWithProperties *)
copy the user defined properties of the given object on each of the materials.
Definition: MaterialVector.h:210
int getResponse(int responseID, Information &eleInformation)
Obtain information from the analysis results.
Definition: PhysicalProperties.h:204
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: PhysicalProperties.h:148
Matrix getGeneralizedStrains(void) const
Return the generalized strains at material points.
Definition: PhysicalProperties.h:104
boost::python::list getTagsPy(void) const
Return the identifiers of the materials in a python list.
Definition: MaterialVector.h:623
Material pointer container.
Definition: MaterialVector.h:48
virtual void Print(std::ostream &s, int) const
Print stuff.
Definition: PhysicalProperties.h:222
virtual std::string getClassName(void) const
Returns demangled class name.
Definition: EntityWithOwner.cc:90
std::set< int > getTags(void) const
Return the identifiers of the materials.
Definition: MaterialVector.h:613
Objet that can execute python scripts.
Definition: CommandEntity.h:40
Matrix getGeneralizedStresses(void) const
Return the generalized stresses at material points.
Definition: PhysicalProperties.h:101
int recvSelf(const Communicator &)
Receives object.
Definition: PhysicalProperties.h:188
material_vector theMaterial
pointers to the material objects
Definition: PhysicalProperties.h:54
Matrix getGeneralizedStrains(void) const
Returns generalized strain values on each integration point.
Definition: MaterialVector.h:353
int commitState(void)
Commits materials state (normally after convergence).
Definition: MaterialVector.h:255
int receiveIdData(DbTagData &, const int &) const
Receives el miembro data through the communicator argument.
Definition: Communicator.cc:415
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
MovableObject(int classTag, int dbTag)
Constructor.
Definition: MovableObject.cpp:74
void inicComm(const int &dataSize) const
Initializes communication.
Definition: DistributedBase.cc:61
Matrix of floats.
Definition: Matrix.h:111
int recvData(const Communicator &)
Receives members through the communicator argument.
Definition: PhysicalProperties.h:164
int getDbTag(void) const
Return the object identifier in the database.
Definition: MovableObject.cpp:99
int sendSelf(Communicator &)
Sends object.
Definition: PhysicalProperties.h:172
int revertToStart(void)
Return materials to its initial state.
Definition: MaterialVector.h:278
int sendData(Communicator &)
Send members through the communicator argument.
Definition: PhysicalProperties.h:156