33 #include "preprocessor/set_mgmt/SetEstruct.h" 34 #include "preprocessor/cad/matrices/TritrizPtrNod.h" 35 #include "preprocessor/cad/matrices/TritrizPtrElem.h" 36 #include "preprocessor/MeshingParams.h" 64 virtual void actualiza_topologia(
void)= 0;
84 inline bool TieneNodos(
void)
const 85 {
return !ttzNodes.empty(); }
86 virtual size_t getNumNodeLayers(
void)
const 87 {
return ttzNodes.GetCapas(); }
88 virtual size_t getNumNodeRows(
void)
const 89 {
return ttzNodes.getNumFilas(); }
90 virtual size_t getNumNodeColumns(
void)
const 91 {
return ttzNodes.getNumCols(); }
92 virtual size_t getNumElementLayers(
void)
const 93 {
return ttzElements.GetCapas(); }
94 virtual size_t getNumElementRows(
void)
const 95 {
return ttzElements.getNumFilas(); }
96 virtual size_t getNumElementColumns(
void)
const 97 {
return ttzElements.getNumCols(); }
99 virtual Node *
GetNodo(
const size_t &i=1,
const size_t &j=1,
const size_t &k=1);
100 virtual const Node *
GetNodo(
const size_t &i=1,
const size_t &j=1,
const size_t &k=1)
const;
104 virtual Element *
getElement(
const size_t &i=1,
const size_t &j=1,
const size_t &k=1);
105 virtual const Element *
getElement(
const size_t &i=1,
const size_t &j=1,
const size_t &k=1)
const;
120 {
return ttzElements; }
122 {
return ttzElements; }
125 virtual BND3d Bnd(
void)
const= 0;
127 SetFilaI GetVarRefFilaI(
size_t f=1,
size_t c=1,
const std::string &nmb=
"tmp");
128 SetFilaI GetVarRefFilaI(
const RangoIndice &rango_capas,
size_t f,
size_t c,
const std::string &nmb=
"tmp");
129 SetFilaI GetVarRefFilaI(
const RangoTritriz &rango,
const std::string &nmb=
"tmp");
131 SetFilaJ GetVarRefFilaJ(
size_t capa=1,
size_t c=1,
const std::string &nmb=
"tmp");
132 SetFilaJ GetVarRefFilaJ(
size_t capa,
const RangoIndice &rango_filas,
size_t c,
const std::string &nmb=
"tmp");
133 SetFilaJ GetVarRefFilaJ(
const RangoTritriz &rango,
const std::string &nmb=
"tmp");
135 SetFilaK GetVarRefFilaK(
size_t capa=1,
size_t f=1,
const std::string &nmb=
"tmp");
136 SetFilaK GetVarRefFilaK(
size_t capa,
size_t f,
const RangoIndice &rango_cols,
const std::string &nmb=
"tmp");
137 SetFilaK GetVarRefFilaK(
const RangoTritriz &rango,
const std::string &nmb=
"tmp");
147 virtual std::set<SetBase *> get_sets(
void)
const= 0;
150 virtual double DistanciaA(
const Pos3d &pt)
const;
152 Vector getSimpsonWeights(
const std::string &,
const std::string &,
const size_t &f=1,
const size_t &c=1,
const size_t &n= 10)
const;
SetEstruct * create_set_fila(const RangoTritriz &, const std::string &)
Creates a set that corresponds to a row of nodes and elements.
Definition: EntMdlr.cc:195
"Tritriz" of pointers to elements.
Definition: TritrizPtrElem.h:43
virtual unsigned short int GetDimension(void) const =0
Return the object dimension (0, 1, 2 or 3).
Multiblock topology object (point, line, face, block,...).
Definition: EntMdlr.h:53
size_t getIdx(void) const
Returns the index of the object for it use in VTK arrays.
Definition: EntMdlr.h:81
Vector getSimpsonWeights(const std::string &, const std::string &, const size_t &f=1, const size_t &c=1, const size_t &n=10) const
Return Simpson's weights.
Definition: EntMdlr.cc:226
"Tritriz" of pointers to elements.
Definition: TritrizPtrNod.h:51
Node * getNearestNode(const Pos3d &p)
Returns the node closest to the point being passed as parameter.
Definition: EntMdlr.cc:128
virtual double DistanciaA2(const Pos3d &pt) const
Returns the squared distance to the position being passed as parameter.
Definition: EntMdlr.cc:373
Node * buscaNodo(const int &tag)
Returns a pointer to the node cuyo identificador is being passed as parameter.
Definition: EntMdlr.cc:177
bool create_elements(meshing_dir dm)
Creates elements on the nodes created in create_nodes.
Definition: EntMdlr.cc:273
EntMdlr(Preprocessor *m, const size_t &i=0)
Constructor.
Definition: EntMdlr.cc:48
Mesh node.
Definition: Node.h:99
EntMdlr & operator=(const EntMdlr &otro)
Assignment operator.
Definition: EntMdlr.cc:64
Set of objecst in a row.
Definition: SetFilaI.h:50
Base calass for the finite elements.
Definition: Element.h:104
void BorraPtrNodElem(void)
Clears pointer to nodes and elements.
Definition: EntMdlr.cc:101
virtual double DistanciaA(const Pos3d &pt) const
Returns the distance to the position being passed as parameter.
Definition: EntMdlr.cc:381
Node * create_node(const Pos3d &pos, size_t i=1, size_t j=1, size_t k=1)
Creates a node at the position being passed as parameter.
Definition: EntMdlr.cc:240
void clearAll(void)
Clears object contents.
Definition: EntMdlr.cc:94
Finite element model generation tools.
Definition: Preprocessor.h:58
Pnt * create_point(const Pos3d &)
Creates a point at the position being passed as parameter.
Definition: EntMdlr.cc:322
structured set, i. e. a set that can return a pointer a to a node or an element from its indices i...
Definition: SetEstruct.h:45
Punto (KPoint).
Definition: Pnt.h:49
Set of objects in a row.
Definition: SetFilaK.h:50
Model geometry manager. Management of geometry entities: points, lines, surfaces, bodies...
Definition: Cad.h:69
Objects in a row.
Definition: SetFilaJ.h:50
Element * getNearestElement(const Pos3d &p)
Returns the element closest to the point being passed as parameter.
Definition: EntMdlr.cc:166
void setGenMesh(bool m)
Returns true if the points begins or ends in the line.
Definition: EntMdlr.cc:314
virtual int getMEDCellType(void) const
Interfaz con el formato MED de Salome.
Definition: EntMdlr.cc:87
Set of mesh components (nodes, elements and constraints).
Definition: SetMeshComp.h:58
Object set.
Definition: Set.h:63
ID getNodeIndices(const Node *) const
Returns the indexes of the node being passed as parameter.
Definition: EntMdlr.cc:139
virtual Element * getElement(const size_t &i=1, const size_t &j=1, const size_t &k=1)
Returns a pointer to the element which indexes are being passed as paremeters.
Definition: EntMdlr.cc:148
void create_nodes(const TritrizPos3d &)
Creates nodes at the positions being passed as parameters.
Definition: EntMdlr.cc:248
Element * findElement(const int &)
Returns a pointer to the element identified by the tag being passed as parameter. ...
Definition: EntMdlr.cc:186
Single freedom constraint.
Definition: SFreedom_Constraint.h:79
virtual void set_indice(const size_t &i)
Assigns the objects index for its use in VTK arrays(see numera in Set).
Definition: EntMdlr.cc:76
virtual Node * GetNodo(const size_t &i=1, const size_t &j=1, const size_t &k=1)
Returns a pointer to the node which indexes are being passed as parameters.
Definition: EntMdlr.cc:109
================================================================================
Definition: ContinuaReprComponent.h:34
virtual ~EntMdlr(void)
Destructor.
Definition: EntMdlr.cc:389
void fix(const SFreedom_Constraint &)
Fixes the nodes of the set.
Definition: EntMdlr.cc:385
void create_points(const MatrizPos3d &)
Creates points at the positions being passed as parameters.
Definition: EntMdlr.cc:326
const bool & getGenMesh(void) const
Returns true if the points begins or ends in the line.
Definition: EntMdlr.cc:318
std::vector< int > getTagsNodos(void) const
Returns the tags of the nodes.
Definition: EntMdlr.cc:143
virtual int getVtkCellType(void) const
Interfaz con VTK.
Definition: EntMdlr.cc:80