33 #include "domain/mesh/element/utils/NodePtrsWithIDs.h" 34 #include "material/Material.h" 35 #include "domain/domain/Domain.h" 36 #include "xc_utils/src/geom/pos_vec/Pos3d.h" 51 template <
class TIPOMAT>
69 Pos3d
getPosCdg(
bool initialGeometry=
true)
const;
101 template <
int NNODOS>
106 template <
int NNODOS>
111 template <
int NNODOS>
template <
class TIPOMAT>
114 TIPOMAT *retval=
nullptr;
115 const TIPOMAT *tmp =
dynamic_cast<const TIPOMAT *
>(ptr_mat);
117 retval= tmp->getCopy();
120 std::cerr << nombre_clase() <<
"::" << __FUNCTION__
121 <<
"; on element: " << getTag()
122 <<
" the material " << ptr_mat->getTag()
123 <<
" has not a suitable type." << std::endl;
128 std::cerr << nombre_clase() <<
"::" << __FUNCTION__
129 <<
"; on element: " << getTag()
130 <<
"can't get a copy of the material with tag: " 131 << ptr_mat->getTag() << std::endl;
138 template <
int NNODOS>
147 template <
int NNODOS>
156 template <
int NNODOS>
int sendMovable(MovableObject &, DbTagData &, const CommMetaData &)
Sends a movable object through the channel being passed as parameter.
Definition: CommParameters.cc:959
virtual DbTagData & getDbTagData(void) const
Returns a vector to store class dbTags.
Definition: DistributedBase.cc:39
int sendData(CommParameters &cp)
Send members through the channel being passed as parameter.
Definition: ElementBase.h:139
MovableObject & operator=(const MovableObject &otro)
Operacdor asignación.
Definition: MovableObject.cpp:81
Base class for materials.
Definition: Material.h:85
NodePtrsWithIDs theNodes
pointers to node.
Definition: ElementBase.h:49
TIPOMAT * cast_material(const Material *ptr_mat)
Casts the material pointer to a suitable type.
Definition: ElementBase.h:112
Base calass for the finite elements.
Definition: Element.h:104
int receiveMovable(MovableObject &, DbTagData &, const CommMetaData &) const
Receives a movable object trhrough the channel being passed as parameter.
Definition: CommParameters.cc:969
Node pointer container for elements.
Definition: NodePtrsWithIDs.h:45
Pos3d getPosCdg(bool initialGeometry=true) const
Return position of the element centroid.
Definition: ElementBase.h:157
Base class for finite element with pointer to nodes container.
Definition: ElementBase.h:46
int getNumExternalNodes(void) const
Return the number of external nodes.
Definition: ElementBase.h:97
ElementBase & operator=(const ElementBase &otro)
Assignment operator.
Definition: ElementBase.h:87
static const int numNodos(void)
Returns the element number of nodes.
Definition: ElementBase.h:63
int sendData(CommParameters &cp)
Sends object members through the channel being passed as parameter.
Definition: Element.cpp:939
NodePtrsWithIDs & getNodePtrs(void)
Returns a pointer to the vector de nodos.
Definition: ElementBase.h:107
Communication parameters between processes.
Definition: CommParameters.h:65
ElementBase(int tag, int classTag)
Default constructor.
Definition: ElementBase.h:76
================================================================================
Definition: ContinuaReprComponent.h:34
int recvData(const CommParameters &cp)
Receives object members through the channel being passed as parameter.
Definition: Element.cpp:948
int recvData(const CommParameters &cp)
Receives members through the channel being passed as parameter.
Definition: ElementBase.h:148
Pos3d getPosCdg(bool initialGeometry=true) const
Returns the centro de gravedad de las posiciones of the nodes.
Definition: NodePtrs.cc:371