12 int64_t n_nodes = node_identifiers.size();
17 REAL nodecoordX,nodecoordY,nodecoordZ;
21 for (int64_t inode = 0; inode < n_nodes; inode++) {
23 node_id = node_identifiers[inode]-1;
25 nodecoordX = coord[pos];
26 nodecoordY = coord[pos+1];
27 nodecoordZ = coord[pos+2];
34 gmesh->
NodeVec()[node_id] = node_obj;
41 int n_nodes = node_identifiers.
size();
42 Topology.
Resize(n_nodes, 0);
43 for (
int k_node = 0; k_node<n_nodes; k_node++) {
44 Topology[k_node] = node_identifiers[k_node]-1;
137 std::cout <<
"Element not impelemented." << std::endl;
234 std::cout <<
"Element not impelemented." << std::endl;
246 std::stringstream text_name;
247 std::stringstream vtk_name;
248 text_name << name.c_str() <<
".txt";
249 vtk_name << name.c_str() <<
".vtk";
250 std::ofstream textfile(text_name.str().c_str());
251 gmesh->
Print(textfile);
252 std::ofstream vtkfile(vtk_name.str().c_str());
static void InsertElement(TPZGeoMesh *gmesh, int &physical_identifier, int &el_type, int &el_identifier, std::vector< int > &node_identifiers)
void SetCoord(const TPZVec< REAL > &x)
Sets all coordinates into the current node. It gets the dim values from x.
Implements a vector class which allows to use external storage provided by the user. Utility.
Implements a generic geometric element with a uniform refinement pattern. Geometry.
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object.
static void InsertNodes(TPZGeoMesh *gmesh, std::vector< std::size_t > &node_identifiers, std::vector< double > &coord)
int64_t size() const
Returns the number of elements of the vector.
void Resize(const int newsize)
Increase the size of the chunk vector.
void SetMaxNodeId(int64_t id)
Used in patch meshes.
virtual void Print(std::ostream &out=std::cout) const
Print the information of the grid to an ostream.
Implements a generic geometric element which is refined according to a generic refinement pattern...
#define DebugStop()
Returns a message to user put a breakpoint in.
static void PrintGeometry(TPZGeoMesh *gmesh, std::string &name)
TPZAdmChunkVector< TPZGeoNode > & NodeVec()
static void PrintGMeshVTK(TPZGeoMesh *gmesh, std::ofstream &file, bool matColor=true)
Default constructor for graphical mesh with VTK format.
Implements a geometric node in the pz environment. Geometry.
This class implements a geometric mesh for the pz environment. Geometry.
static int GetNumberofNodes(int &el_type)