16 # ifndef __MESH2D_CPP_PARSER
17 # define __MESH2D_CPP_PARSER
54 std::map< std::string, std::vector< std::string > >
vars_;
std::vector< std::string > e_mtl
Element markers – single word strings.
void parse_mesh(void)
This function parses a given input mesh file line by line and extracts the necessary information into...
std::vector< int > ref_elt
List of elements to be refined.
int n_ref
Number of elements with specified refinements.
std::map< std::string, std::vector< std::string > > vars_
Map for storing variables in input mesh file.
MeshData & operator=(const MeshData &m)
MeshData Assignment Operator.
std::vector< int > curv_second
Second node of a curved edge.
int n_vert
Number of vertices.
std::vector< bool > curv_nurbs
Nurbs Indicator. True if curve is modeled with NURBS. False if it is a circular arc.
int n_el
Number of elements.
std::vector< std::string > bdy_type
Boundary name.
Class to stored 2d mesh parameters. The MeshData class organizes all the necessary data structures re...
std::vector< int > en4
Nodes with local node number 4. Only for quadrilateral elements. For triangular elements it is set to...
int n_curv
Number of curved edges (including NURBS curves)
std::vector< int > en3
Nodes with local node number 3.
std::vector< int > en2
Nodes with local node number 2.
std::vector< int > ref_type
List of element refinement type.
MeshData(const std::string &mesh_file)
MeshData Constructor.
int n_bdy
Number of boundary edges.
std::vector< std::string > curv_inner_pts
Name of the list of the control points and weights of a NURBS curve. Set to "none" for a circular arc...
std::vector< std::string > curv_knots
Name of the list of knot vectors of a NURBS curve. Set to "none" for a circular arc.
std::vector< int > bdy_first
First node of a boundary edge.
std::vector< int > en1
Nodes with local node number 1.
std::vector< double > y_vertex
y-coordinate of the vertices
std::vector< double > x_vertex
x-coordinate of the vertices
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
std::vector< int > bdy_second
Second node of a boundary edge.
~MeshData()
MeshData Destructor.
std::vector< int > curv_first
First node of a curved edge.
std::vector< double > curv_third
Third entry of a curve specification. Angle for a circular arc and degree for a NURBS curve...