30 #ifndef PlateAdaptorMaterial_h 31 #define PlateAdaptorMaterial_h 33 #include "material/nD/NDMaterial.h" 34 #include "material/MaterialWrapper.h" 41 template <
class MaterialWrapper>
45 typedef typename MaterialWrapper::MaterialType MaterialType;
66 int getOrder(
void)
const;
69 const std::string &getType(
void)
const;
74 void Print(std::ostream &s,
int flag = 0)
const;
77 template <
class MaterialWrapper>
82 template <
class MaterialWrapper>
88 const MaterialType *tmp=
dynamic_cast<const MaterialType *
>(ptr_mat);
92 std::cerr <<
getClassName() <<
"::" << __FUNCTION__ <<
"; " 93 <<
"material identified by: '" << matName
94 <<
"' is not an appropriate material." << std::endl;
97 std::cerr <<
getClassName() <<
"::" << __FUNCTION__ <<
"; " 98 <<
"material identified by: '" << matName
99 <<
"' not found." << std::endl;
103 template <
class MaterialWrapper>
110 template <
class MaterialWrapper>
116 template <
class MaterialWrapper>
120 template <
class MaterialWrapper>
123 static const std::string retval(
"PlateFiber");
128 template <
class MaterialWrapper>
134 template <
class MaterialWrapper>
137 s << getType() <<
" material tag: " << this->
getTag() << std::endl;
138 s <<
"using material: " << std::endl;
143 template <
class MaterialWrapper>
152 template <
class MaterialWrapper>
int sendMovable(MovableObject &, DbTagData &, const CommMetaData &)
Sends a movable object through the communicator argument.
Definition: Communicator.cc:1163
virtual void setMaterial(const MatType &)
Sets the wrapped material.
Definition: MaterialWrapper.h:95
void Print(std::ostream &s, int flag=0) const
print out data
Definition: PlateAdaptorMaterial.h:135
double getRho(void) const
Get material density.
Definition: PlateAdaptorMaterial.h:129
Plate response adaptor.
Definition: PlateAdaptorMaterial.h:42
Communication parameters between processes.
Definition: Communicator.h:66
NDMaterial()
Constructor.
Definition: NDMaterial.cpp:91
const Material * getMaterialByName(const std::string &) const
Definition: Material.cpp:71
int receiveMovable(MovableObject &, DbTagData &, const CommMetaData &) const
Receives a movable object trhrough the communicator argument.
Definition: Communicator.cc:1174
Base class for materials.
Definition: Material.h:93
MaterialType * getMaterial(void)
Return a pointer to the encapsulated material.
Definition: PlateAdaptorMaterial.h:60
Encapsulates a copy to a material.
Definition: MaterialWrapper.h:41
const MatType * getMaterial(void) const
Return a pointer to the wrapped material.
Definition: MaterialWrapper.h:58
virtual DbTagData & getDbTagData(void) const
Returns a vector to store class dbTags.
Definition: DistributedBase.cc:43
virtual std::string getClassName(void) const
Returns demangled class name.
Definition: EntityWithOwner.cc:90
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: NDMaterial.cpp:400
int sendData(Communicator &)
Send material data.
Definition: PlateAdaptorMaterial.h:144
virtual void setMaterial(const MaterialType &)
Sets the encapsulated material.
Definition: PlateAdaptorMaterial.h:78
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: NDMaterial.cpp:407
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
const MaterialType * getMaterial(void) const
Return a pointer to the encapsulated material.
Definition: PlateAdaptorMaterial.h:57
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int getTag(void) const
Returns the tag associated with the object.
Definition: TaggedObject.h:119
int recvData(const Communicator &)
Receive material data.
Definition: PlateAdaptorMaterial.h:153