|
std::vector< Cell2 * > | cell_ |
| List of cells.
|
|
const std::string | coord_ |
| File names of coordinates and cell files.
|
|
const std::string | elms_ |
|
std::vector< Real3d > | vertices_ |
| Coordinates of the vertices.
|
|
uint | dim_ |
|
std::vector< Connector2 * > | cntr2_ |
| List of entities.
|
|
MultiArray< 3, Triangle * > | Tri_ |
| Array of the entities.
|
|
MultiArray< 4, Quad * > | Quad_ |
|
const uint | idxStart_ |
| Starting point of indices in the files (1 or 0)
|
|
std::vector< Vertex * > | vtx_ |
| List of entities.
|
|
std::vector< Connector1 * > | edg_ |
|
MultiArray< 1, Vertex * > | Vtx_ |
| Array of the entities.
|
|
MultiArray< 2, Edge * > | Edg_ |
|
MultiArray< 1, Attribute > | oneAttr_ |
| Attributes of entities.
|
|
MultiArray< 2, Attribute > | twoAttr_ |
|
MultiArray< 3, Attribute > | threeAttr_ |
|
MultiArray< 4, Attribute > | fourAttr_ |
|
MultiArray< 6, Attribute > | sixAttr_ |
|
MultiArray< 8, Attribute > | eightAttr_ |
|
◆ Import2dMesh() [1/2]
concepts::Import2dMesh::Import2dMesh |
( |
const std::string |
coord, |
|
|
const std::string |
elms, |
|
|
const std::string |
boundary, |
|
|
const uint |
idxStart = 1 |
|
) |
| |
Constructor. Reads the data from three files and creates a mesh from it. The vertices, edges and cells should be number in striclty increasing order, ie. 1, 2, 3 etc.
- Parameters
-
coord | File with coordinates of vertices. Format: <node> <x> <y> or <node> <x> <y> <z> For instance: 1 1.0 1.0
2 0.0 0.5
3 0.0 0.0
4 -1.0 2.0 or 1 1.0 1.0 0.0
2 0.0 0.5 0.5
3 0.0 0.0 1.0
4 -1.0 2.0 0.5 |
elms | File with node numbers of triangles or quads. Format: <triangle> <node0> <node1> <node2> or <quad> <node0> <node1> <node2> <node3> For instance: 1 1 2 3 or 1 1 2 3 4 |
boundary | File with node numbers of edges with boundary conditions. Format: <edge> <node0> <node1> <attr> For instance: 1 1 3 0 |
idxStart | Starting point of indices in the files (1 or 0) |
◆ Import2dMesh() [2/2]
concepts::Import2dMesh::Import2dMesh |
( |
const std::string |
coord, |
|
|
const std::string |
elms, |
|
|
const uint |
idxStart = 1 |
|
) |
| |
Constructor. Reads the data from two files and creates a mesh from it. The vertices, edges and cells should be number in strictly increasing order, ie. 1, 2, 3 etc.
- Parameters
-
coord | File with coordinates of vertices. Format: <node> <x> <y> or <node> <x> <y> <z> For instance: 1 1.0 1.0
2 0.0 0.5
3 0.0 0.0
4 -1.0 2.0 or 1 1.0 1.0 0.0
2 0.0 0.5 0.5
3 0.0 0.0 1.0
4 -1.0 2.0 0.5 |
elms | File with node numbers of triangles or quads. Format: <triangle> <node0> <node1> <node2> or <quad> <node0> <node1> <node2> <node3> For instance: 1 1 2 3 or 1 1 2 3 4 |
idxStart | Starting point of indices in the files (1 or 0) |
◆ ~Import2dMesh()
virtual concepts::Import2dMesh::~Import2dMesh |
( |
| ) |
|
|
inlinevirtual |
◆ clear_()
void concepts::ImportMesh::clear_ |
( |
std::vector< T * > & |
field | ) |
|
|
protectedinherited |
Deletes the content of field
of pointers.
Definition at line 132 of file meshImport.hh.
◆ createCell_() [1/3]
|
protectedvirtualinherited |
Creation of geometrical cells with element mapping
Has to be implemented in derivated classes.
◆ createCell_() [2/3]
|
protectedvirtualinherited |
◆ createCell_() [3/3]
|
protectedvirtualinherited |
◆ createEntity_() [1/4]
|
inlineprotectedvirtualinherited |
◆ createEntity_() [2/4]
|
inlineprotectedvirtualinherited |
◆ createEntity_() [3/4]
|
protectedvirtualinherited |
◆ createEntity_() [4/4]
|
protectedvirtualinherited |
◆ info()
virtual std::ostream & concepts::Import2dMesh::info |
( |
std::ostream & |
os | ) |
const |
|
protectedvirtual |
◆ ncell()
virtual uint concepts::Import2dMeshBase::ncell |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ readCells_()
void concepts::ImportMesh::readCells_ |
( |
const std::string & |
elms, |
|
|
const Array< bool > & |
dimensions, |
|
|
const std::vector< Real3d > & |
vertices |
|
) |
| |
|
protectedinherited |
Reads the file with cell information and creates topological entities and geometrical cells
◆ readInts_()
uint concepts::ImportMesh::readInts_ |
( |
const std::string & |
i, |
|
|
std::vector< int > & |
v |
|
) |
| const |
|
protectedinherited |
Reads integers from the string
- Returns
- Number of integers read
◆ readLine_()
uint concepts::ImportMesh::readLine_ |
( |
const std::string & |
i, |
|
|
Array< F > & |
a, |
|
|
bool |
first = false |
|
) |
| const |
|
protectedinherited |
Reads line of numbers from the string
- Parameters
-
i | String |
a | resulting array of integers |
first | flag, if the first integer should be taken into the array |
- Returns
- Number of integers read
Definition at line 114 of file meshImport.hh.
◆ scan()
Returns a scanner over the cells of the mesh.
- Postcondition
- The scanner must be deleted after usage. This has to be done by the user.
Implements concepts::Mesh2.
◆ cell_
std::vector<Cell2*> concepts::Import2dMeshBase::cell_ |
|
protectedinherited |
◆ cntr2_
std::vector<Connector2*> concepts::Import2dMeshBase::cntr2_ |
|
protectedinherited |
◆ coord_
const std::string concepts::Import2dMeshBase::coord_ |
|
protectedinherited |
◆ dim_
uint concepts::Import2dMeshBase::dim_ |
|
protectedinherited |
◆ edg_
std::vector<Connector1*> concepts::ImportMesh::edg_ |
|
protectedinherited |
◆ Edg_
◆ eightAttr_
◆ elms_
const std::string concepts::Import2dMeshBase::elms_ |
|
protectedinherited |
◆ fourAttr_
◆ idxStart_
const uint concepts::ImportMesh::idxStart_ |
|
protectedinherited |
Starting point of indices in the files (1 or 0)
Definition at line 43 of file meshImport.hh.
◆ oneAttr_
◆ Quad_
◆ sixAttr_
◆ threeAttr_
◆ Tri_
◆ twoAttr_
◆ vertices_
std::vector<Real3d> concepts::Import2dMeshBase::vertices_ |
|
protectedinherited |
◆ vtx_
std::vector<Vertex*> concepts::ImportMesh::vtx_ |
|
protectedinherited |
◆ Vtx_
The documentation for this class was generated from the following file: