|
AtilaCalculatorSoftware
2.3.4
C++ Interface for Atila fem resources files
|
Representation of a mesh, all of its nodes and elements. More...
#include <mesh.h>
Public Member Functions | |
| Mesh (gzFile file, dataFields fields) | |
| std::string | getName () |
| std::string | getElementName () |
| GiD_ElementType | getElementType () |
| unsigned int | getDimCount () const |
| unsigned int | getNodeCount () const |
| unsigned int | getElementCount () const |
| std::vector< Node > | getNodes () |
| std::tuple< int &, int * > | getElement (const unsigned int &id) const |
Static Public Member Functions | |
| static GiD_ElementType | getGiDElementType (const char *element) |
| Write the mesh into a currently open PostResultFile. More... | |
Static Public Attributes | |
| static size_t | maxNodeCount = 0 |
| Biggest number of node encountered in the mesh. More... | |
| static const std::map< std::string, GiD_ElementType > | GiD_ElementTypeEncoding |
| Map of all recognized GiD_ElementType according to their string encoded value. More... | |
Private Member Functions | |
| void | readCoordinates (gzFile &file, char buffer[GZ_BUFFER_SIZE]) |
| void | readElements (gzFile &file, char buffer[GZ_BUFFER_SIZE]) |
Private Attributes | |
| std::string | name |
| Name of the mesh. More... | |
| std::string | elementName |
| String encoded element type of the mesh. More... | |
| GiD_ElementType | elementType |
| Element type of the mesh. More... | |
| unsigned int | dimCount |
| Number of dimensions of the object (2 or 3) More... | |
| unsigned int | nodeCount |
| Number of nodes which constitutes the mesh. More... | |
| unsigned int | elementCount |
| Number of elements in the mesh. More... | |
| std::vector< Node > | nodes |
| Nodes that constitutes the mesh. More... | |
| int * | elements |
| Elements of the mesh. More... | |
| int * | elementsConnectivity |
| Connectivity of the elements. More... | |
Representation of a mesh, all of its nodes and elements.
| Mesh::Mesh | ( | gzFile | file, |
| dataFields | fields | ||
| ) |
| file | File that contains the mesh information |
| fields | Base fields read from the file |
| unsigned int Mesh::getDimCount | ( | ) | const |
| std::tuple< int &, int * > Mesh::getElement | ( | const unsigned int & | id | ) | const |
| id | ID of the element |
| unsigned int Mesh::getElementCount | ( | ) | const |
| std::string Mesh::getElementName | ( | ) |
| GiD_ElementType Mesh::getElementType | ( | ) |
|
static |
Write the mesh into a currently open PostResultFile.
| element | string encoded GiD_ElementType |
| runtime_error | if the encoded GiD_ElementType is not recognized |
| std::string Mesh::getName | ( | ) |
| unsigned int Mesh::getNodeCount | ( | ) | const |
| std::vector<Node> Mesh::getNodes | ( | ) |
|
private |
Read the nodes coordinates from the mesh file
| file | File that contains the mesh information |
| buffer | The zlib reading buffer from previous gzread |
|
private |
Read the elements from the mesh file
| file | File that contains the mesh information |
| buffer | The zlib reading buffer from previous gzread |
|
private |
Number of dimensions of the object (2 or 3)
|
private |
Number of elements in the mesh.
|
private |
String encoded element type of the mesh.
|
private |
Elements of the mesh.
|
private |
Connectivity of the elements.
|
private |
Element type of the mesh.
|
static |
Map of all recognized GiD_ElementType according to their string encoded value.
|
static |
Biggest number of node encountered in the mesh.
|
private |
Name of the mesh.
|
private |
Number of nodes which constitutes the mesh.
|
private |
Nodes that constitutes the mesh.