Public Member Functions | |
Import2dMeshGeneral (const std::string coord, const std::string elms, const File file, 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) | |
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) | |
void | addInfiniteQuad (const InOutParameters input) |
virtual uint | ncell () const |
Returns the number of cells in the mesh. | |
virtual Scan2 * | scan () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
void | construct_ (const Array< const File * > files) |
Reads the special files. | |
void | delete_ () |
Clears indermediate data after construction of the mesh. | |
bool | is_paired_ (const uint key, const uint a) const |
void | add_ (uint a, uint b) |
void | complete_ (uint a, uint b) |
bool | build_ (uint a, uint b) |
void | insert_ (uint a, uint b) |
void | vtxcorr_ (const std::string vtxcorr) |
void | edgcorr_ (const std::string edgcorr) |
virtual void | createEntity_ (const MultiIndex< 1 > &idx) |
Creation of topological entities. | |
virtual void | createEntity_ (const MultiIndex< 2 > &idx) |
virtual void | createEntity_ (const MultiIndex< 3 > &idx) |
virtual void | createEntity_ (const MultiIndex< 4 > &idx) |
void | edgradia_ (std::string edgradia) |
Reads edge radia file and writes to EdgRadia_. | |
virtual void | createCell_ (const MultiIndex< 3 > &idx) |
Creation of geometrical cells with element mapping. | |
virtual void | createCell_ (const MultiIndex< 4 > &idx) |
Creation of geometrical cells with element mapping. | |
virtual void | createEntity_ (const MultiIndex< 6 > &idx) |
virtual void | createEntity_ (const MultiIndex< 8 > &idx) |
virtual void | createCell_ (const MultiIndex< 2 > &idx) |
virtual void | createCell_ (const MultiIndex< 6 > &idx) |
virtual void | createCell_ (const MultiIndex< 8 > &idx) |
virtual void | readVertices_ () |
reads the coordinates of the vertices | |
uint | readVertexLine_ (const std::string &i, uint *idx, Real3d *coord) const |
void | attributes_ (const std::string boundary) |
Reads attributes from file boundary . | |
void | import_ () |
Reads and builds the mesh. | |
uint | readInts_ (const std::string &i, std::vector< int > &v) const |
template<class F > | |
uint | readLine_ (const std::string &i, Array< F > &a, bool first=false) const |
void | readCells_ (const std::string &elms, const Array< bool > &dimensions, const std::vector< Real3d > &vertices) |
template<uint dim> | |
void | newCell_ (MultiIndex< dim > i) |
Creates topological entities and a geometrical cell. | |
void | readAttributes_ (const std::string &bound, const Array< bool > &dimensions) |
template<class T > | |
void | clear_ (std::vector< T * > &field) |
Deletes the content of field of pointers. | |
Protected Attributes | |
bool | has_EdgCorr_ |
Flags for special properties. | |
bool | has_EdgRadia_ |
MultiArray< 2, MultiIndex< 2 > > | EdgCorr_ |
Mapping from edge to correlated one. | |
std::multimap< uint, uint > | VtxCorr_ |
Mapping from vertex to correlated ones, could be more. | |
std::vector< uint > | KeyVector_ |
MultiArray< 2, Real > | EdgRadia_ |
Mapping from edge to the radius of arcs. | |
MultiArray< 2, MappingEdge2d * > | Edges_ |
std::vector< MappingEdge2d * > | edges_vec_ |
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_ |
Definition at line 186 of file meshImport2Dgeneral.hh.
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.
|
protectedinherited |
Deletes the content of field
of pointers.
Definition at line 132 of file meshImport.hh.
|
protectedvirtualinherited |
Creation of geometrical cells with element mapping
Has to be implemented in derivated classes.
|
protectedvirtual |
Creation of geometrical cells with element mapping.
Reimplemented from concepts::Import2dMeshBase.
|
protectedvirtual |
Creation of geometrical cells with element mapping.
Reimplemented from concepts::Import2dMeshBase.
|
protectedvirtual |
Creation of topological entities.
Reimplemented from concepts::Import2dMeshBase.
|
protectedvirtual |
Reimplemented from concepts::Import2dMeshBase.
|
inlineprotectedvirtual |
Creation of topological entities
Has to be implemented in derivated classes.
Reimplemented from concepts::Import2dMeshBase.
Definition at line 239 of file meshImport2Dgeneral.hh.
|
inlineprotectedvirtual |
Reimplemented from concepts::Import2dMeshBase.
Definition at line 241 of file meshImport2Dgeneral.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Import2dMeshBase.
Returns the number of cells in the mesh.
Implements concepts::Mesh.
Definition at line 37 of file meshImport2D.hh.
|
protectedinherited |
Reads the file with cell information and creates topological entities and geometrical cells
|
protectedinherited |
Reads integers from the string
|
protectedinherited |
Reads line of numbers from the string
i | String |
a | resulting array of integers |
first | flag, if the first integer should be taken into the array |
Definition at line 114 of file meshImport.hh.
Returns a scanner over the cells of the mesh.
Implements concepts::Mesh2.
|
protectedinherited |
List of cells.
Definition at line 46 of file meshImport2D.hh.
|
protectedinherited |
List of entities.
Definition at line 56 of file meshImport2D.hh.
|
protectedinherited |
File names of coordinates and cell files.
Definition at line 49 of file meshImport2D.hh.
|
protectedinherited |
Definition at line 53 of file meshImport2D.hh.
|
protectedinherited |
Definition at line 47 of file meshImport.hh.
|
protectedinherited |
Definition at line 50 of file meshImport.hh.
|
protected |
Mapping from edge to correlated one.
Definition at line 218 of file meshImport2Dgeneral.hh.
|
protected |
Definition at line 247 of file meshImport2Dgeneral.hh.
|
protected |
Definition at line 248 of file meshImport2Dgeneral.hh.
|
protected |
Mapping from edge to the radius of arcs.
Definition at line 244 of file meshImport2Dgeneral.hh.
|
protectedinherited |
Definition at line 58 of file meshImport.hh.
|
protectedinherited |
Definition at line 49 of file meshImport2D.hh.
|
protectedinherited |
Definition at line 56 of file meshImport.hh.
|
protected |
Flags for special properties.
Definition at line 216 of file meshImport2Dgeneral.hh.
|
protected |
Definition at line 216 of file meshImport2Dgeneral.hh.
|
protectedinherited |
Starting point of indices in the files (1 or 0)
Definition at line 43 of file meshImport.hh.
|
protected |
Definition at line 221 of file meshImport2Dgeneral.hh.
|
protectedinherited |
Attributes of entities.
Definition at line 53 of file meshImport.hh.
|
protectedinherited |
Definition at line 59 of file meshImport2D.hh.
|
protectedinherited |
Definition at line 57 of file meshImport.hh.
|
protectedinherited |
Definition at line 55 of file meshImport.hh.
|
protectedinherited |
Array of the entities.
Definition at line 58 of file meshImport2D.hh.
|
protectedinherited |
Definition at line 54 of file meshImport.hh.
|
protectedinherited |
Coordinates of the vertices.
Definition at line 52 of file meshImport2D.hh.
|
protectedinherited |
List of entities.
Definition at line 46 of file meshImport.hh.
|
protectedinherited |
Array of the entities.
Definition at line 49 of file meshImport.hh.
Mapping from vertex to correlated ones, could be more.
Definition at line 220 of file meshImport2Dgeneral.hh.