concepts::Import2dMeshGeneral Class Reference
#include <meshImport2Dgeneral.hh>
Public Member Functions | |
void | addInfiniteQuad (const InOutParameters input) |
Import2dMeshGeneral (const std::string coord, const std::string elms, const File file, const uint idxStart=1) | |
Constructors. More... | |
Import2dMeshGeneral (const std::string coord, const std::string elms, const File file_1, const File file_2, const File file_3, const uint idxStart=1) | |
Import2dMeshGeneral (const std::string coord, const std::string elms, const File file_1, const File file_2, const uint idxStart=1) | |
virtual uint | ncell () const |
Returns the number of cells in the mesh. More... | |
virtual Scan2 * | scan () |
Returns a scanner over the cells of the mesh. More... | |
virtual | ~Import2dMeshGeneral () |
Protected Member Functions | |
void | add_ (uint a, uint b) |
void | attributes_ (const std::string boundary) |
Reads attributes from file boundary . More... | |
bool | build_ (uint a, uint b) |
template<class T > | |
void | clear_ (std::vector< T * > &field) |
Deletes the content of field of pointers. More... | |
void | complete_ (uint a, uint b) |
void | construct_ (const Array< const File * > files) |
Reads the special files. More... | |
virtual void | createCell_ (const MultiIndex< 2 > &idx) throw (concepts::MissingFeature) |
Creation of geometrical cells with element mapping. More... | |
virtual void | createCell_ (const MultiIndex< 3 > &idx) throw (concepts::MissingFeature) |
Creation of geometrical cells with element mapping. More... | |
virtual void | createCell_ (const MultiIndex< 4 > &idx) throw (concepts::MissingFeature) |
Creation of geometrical cells with element mapping. More... | |
virtual void | createCell_ (const MultiIndex< 6 > &idx) throw (concepts::MissingFeature) |
virtual void | createCell_ (const MultiIndex< 8 > &idx) throw (concepts::MissingFeature) |
virtual void | createEntity_ (const MultiIndex< 1 > &idx) |
Creation of topological entities. More... | |
virtual void | createEntity_ (const MultiIndex< 2 > &idx) |
virtual void | createEntity_ (const MultiIndex< 3 > &idx) throw (concepts::MissingFeature) |
Creation of topological entities. More... | |
virtual void | createEntity_ (const MultiIndex< 4 > &idx) throw (concepts::MissingFeature) |
virtual void | createEntity_ (const MultiIndex< 6 > &idx) throw (concepts::MissingFeature) |
virtual void | createEntity_ (const MultiIndex< 8 > &idx) throw (concepts::MissingFeature) |
void | delete_ () |
Clears indermediate data after construction of the mesh. More... | |
void | edgcorr_ (const std::string edgcorr) |
void | edgradia_ (std::string edgradia) |
Reads edge radia file and writes to EdgRadia_. More... | |
void | import_ () |
Reads and builds the mesh. More... | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
void | insert_ (uint a, uint b) |
bool | is_paired_ (const uint key, const uint a) const |
template<uint dim> | |
void | newCell_ (MultiIndex< dim > i) |
Creates topological entities and a geometrical cell. More... | |
void | readAttributes_ (const std::string &bound, const Array< bool > &dimensions) |
void | readCells_ (const std::string &elms, const Array< bool > &dimensions, const std::vector< Real3d > &vertices) |
Reads the file with cell information and creates topological entities and geometrical cells. More... | |
uint | readInts_ (const std::string &i, std::vector< int > &v) const |
Reads integers from the string. More... | |
template<class F > | |
uint | readLine_ (const std::string &i, Array< F > &a, bool first=false) const |
Reads line of numbers from the string. More... | |
uint | readVertexLine_ (const std::string &i, uint *idx, Real3d *coord) const |
virtual void | readVertices_ () |
reads the coordinates of the vertices More... | |
void | vtxcorr_ (const std::string vtxcorr) |
Protected Attributes | |
std::vector< Cell2 * > | cell_ |
List of cells. More... | |
std::vector< Connector2 * > | cntr2_ |
List of entities. More... | |
const std::string | coord_ |
File names of coordinates and cell files. More... | |
uint | dim_ |
std::vector< Connector1 * > | edg_ |
MultiArray< 2, Edge * > | Edg_ |
MultiArray< 2, MultiIndex< 2 > > | EdgCorr_ |
Mapping from edge to correlated one. More... | |
MultiArray< 2, MappingEdge2d * > | Edges_ |
std::vector< MappingEdge2d * > | edges_vec_ |
MultiArray< 2, Real > | EdgRadia_ |
Mapping from edge to the radius of arcs. More... | |
MultiArray< 8, Attribute > | eightAttr_ |
const std::string | elms_ |
MultiArray< 4, Attribute > | fourAttr_ |
bool | has_EdgCorr_ |
Flags for special properties. More... | |
bool | has_EdgRadia_ |
const uint | idxStart_ |
Starting point of indices in the files (1 or 0) More... | |
std::vector< uint > | KeyVector_ |
MultiArray< 1, Attribute > | oneAttr_ |
Attributes of entities. More... | |
MultiArray< 4, Quad * > | Quad_ |
MultiArray< 6, Attribute > | sixAttr_ |
MultiArray< 3, Attribute > | threeAttr_ |
MultiArray< 3, Triangle * > | Tri_ |
Array of the entities. More... | |
MultiArray< 2, Attribute > | twoAttr_ |
std::vector< Real3d > | vertices_ |
Coordinates of the vertices. More... | |
std::vector< Vertex * > | vtx_ |
List of entities. More... | |
MultiArray< 1, Vertex * > | Vtx_ |
Array of the entities. More... | |
std::multimap< uint, uint > | VtxCorr_ |
Mapping from vertex to correlated ones, could be more. More... | |
Detailed Description
- Examples
- cig_load_input_data.cc.
Definition at line 186 of file meshImport2Dgeneral.hh.
Constructor & Destructor Documentation
◆ Import2dMeshGeneral() [1/3]
concepts::Import2dMeshGeneral::Import2dMeshGeneral | ( | const std::string | coord, |
const std::string | elms, | ||
const File | file, | ||
const uint | idxStart = 1 |
||
) |
Constructors.
The coordinates and element files are needed. Other files are possibly. To determine the file type, File classes are used.
◆ Import2dMeshGeneral() [2/3]
concepts::Import2dMeshGeneral::Import2dMeshGeneral | ( | const std::string | coord, |
const std::string | elms, | ||
const File | file_1, | ||
const File | file_2, | ||
const uint | idxStart = 1 |
||
) |
◆ Import2dMeshGeneral() [3/3]
concepts::Import2dMeshGeneral::Import2dMeshGeneral | ( | const std::string | coord, |
const std::string | elms, | ||
const File | file_1, | ||
const File | file_2, | ||
const File | file_3, | ||
const uint | idxStart = 1 |
||
) |
◆ ~Import2dMeshGeneral()
|
virtual |
Member Function Documentation
◆ add_()
|
protected |
◆ addInfiniteQuad()
void concepts::Import2dMeshGeneral::addInfiniteQuad | ( | const InOutParameters | input | ) |
◆ attributes_()
|
protectedinherited |
Reads attributes from file boundary
.
◆ build_()
|
protected |
◆ clear_()
|
protectedinherited |
Deletes the content of field
of pointers.
Definition at line 141 of file meshImport.hh.
◆ complete_()
|
protected |
◆ construct_()
Reads the special files.
◆ createCell_() [1/5]
|
protectedvirtualinherited |
Creation of geometrical cells with element mapping.
Has to be implemented in derivated classes.
◆ createCell_() [2/5]
|
protectedvirtual |
Creation of geometrical cells with element mapping.
Reimplemented from concepts::Import2dMeshBase.
◆ createCell_() [3/5]
|
protectedvirtual |
Creation of geometrical cells with element mapping.
Reimplemented from concepts::Import2dMeshBase.
◆ createCell_() [4/5]
|
protectedvirtualinherited |
◆ createCell_() [5/5]
|
protectedvirtualinherited |
◆ createEntity_() [1/6]
|
protectedvirtual |
Creation of topological entities.
Reimplemented from concepts::Import2dMeshBase.
◆ createEntity_() [2/6]
|
protectedvirtual |
Reimplemented from concepts::Import2dMeshBase.
◆ createEntity_() [3/6]
|
inlineprotectedvirtual |
Creation of topological entities.
Has to be implemented in derivated classes.
Reimplemented from concepts::Import2dMeshBase.
Definition at line 239 of file meshImport2Dgeneral.hh.
◆ createEntity_() [4/6]
|
inlineprotectedvirtual |
Reimplemented from concepts::Import2dMeshBase.
Definition at line 242 of file meshImport2Dgeneral.hh.
◆ createEntity_() [5/6]
|
protectedvirtualinherited |
◆ createEntity_() [6/6]
|
protectedvirtualinherited |
◆ delete_()
|
protected |
Clears indermediate data after construction of the mesh.
◆ edgcorr_()
|
protected |
◆ edgradia_()
|
protected |
Reads edge radia file and writes to EdgRadia_.
◆ import_()
|
protectedinherited |
Reads and builds the mesh.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Import2dMeshBase.
◆ insert_()
|
protected |
◆ is_paired_()
|
protected |
◆ ncell()
|
inlinevirtualinherited |
Returns the number of cells in the mesh.
Implements concepts::Mesh.
Definition at line 37 of file meshImport2D.hh.
◆ newCell_()
|
protectedinherited |
Creates topological entities and a geometrical cell.
◆ readAttributes_()
|
protectedinherited |
◆ readCells_()
|
protectedinherited |
Reads the file with cell information and creates topological entities and geometrical cells.
◆ readInts_()
|
protectedinherited |
Reads integers from the string.
- Returns
- Number of integers read
◆ readLine_()
|
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 123 of file meshImport.hh.
◆ readVertexLine_()
|
protectedinherited |
◆ readVertices_()
|
protectedvirtualinherited |
reads the coordinates of the vertices
◆ scan()
|
virtualinherited |
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.
◆ vtxcorr_()
|
protected |
Member Data Documentation
◆ cell_
|
protectedinherited |
List of cells.
Definition at line 46 of file meshImport2D.hh.
◆ cntr2_
|
protectedinherited |
List of entities.
Definition at line 56 of file meshImport2D.hh.
◆ coord_
|
protectedinherited |
File names of coordinates and cell files.
Definition at line 49 of file meshImport2D.hh.
◆ dim_
|
protectedinherited |
Definition at line 53 of file meshImport2D.hh.
◆ edg_
|
protectedinherited |
Definition at line 47 of file meshImport.hh.
◆ Edg_
|
protectedinherited |
Definition at line 50 of file meshImport.hh.
◆ EdgCorr_
|
protected |
Mapping from edge to correlated one.
Definition at line 218 of file meshImport2Dgeneral.hh.
◆ Edges_
|
protected |
Definition at line 249 of file meshImport2Dgeneral.hh.
◆ edges_vec_
|
protected |
Definition at line 250 of file meshImport2Dgeneral.hh.
◆ EdgRadia_
|
protected |
Mapping from edge to the radius of arcs.
Definition at line 246 of file meshImport2Dgeneral.hh.
◆ eightAttr_
|
protectedinherited |
Definition at line 58 of file meshImport.hh.
◆ elms_
|
protectedinherited |
Definition at line 49 of file meshImport2D.hh.
◆ fourAttr_
|
protectedinherited |
Definition at line 56 of file meshImport.hh.
◆ has_EdgCorr_
|
protected |
Flags for special properties.
Definition at line 216 of file meshImport2Dgeneral.hh.
◆ has_EdgRadia_
|
protected |
Definition at line 216 of file meshImport2Dgeneral.hh.
◆ idxStart_
|
protectedinherited |
Starting point of indices in the files (1 or 0)
Definition at line 43 of file meshImport.hh.
◆ KeyVector_
|
protected |
Definition at line 221 of file meshImport2Dgeneral.hh.
◆ oneAttr_
|
protectedinherited |
Attributes of entities.
Definition at line 53 of file meshImport.hh.
◆ Quad_
|
protectedinherited |
Definition at line 59 of file meshImport2D.hh.
◆ sixAttr_
|
protectedinherited |
Definition at line 57 of file meshImport.hh.
◆ threeAttr_
|
protectedinherited |
Definition at line 55 of file meshImport.hh.
◆ Tri_
|
protectedinherited |
Array of the entities.
Definition at line 58 of file meshImport2D.hh.
◆ twoAttr_
|
protectedinherited |
Definition at line 54 of file meshImport.hh.
◆ vertices_
|
protectedinherited |
Coordinates of the vertices.
Definition at line 52 of file meshImport2D.hh.
◆ vtx_
|
protectedinherited |
List of entities.
Definition at line 46 of file meshImport.hh.
◆ Vtx_
|
protectedinherited |
Array of the entities.
Definition at line 49 of file meshImport.hh.
◆ VtxCorr_
|
protected |
Mapping from vertex to correlated ones, could be more.
Definition at line 220 of file meshImport2Dgeneral.hh.
The documentation for this class was generated from the following file:
- geometry/meshImport2Dgeneral.hh