HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge and cell polynomials as unknowns
Public Member Functions | List of all members
HArDCore2D::MeshReaderTyp2 Class Reference

The MeshReaderTyp2 class provides functions to read a .typ2 mesh file. More...

#include <import_mesh.hpp>

Public Member Functions

 MeshReaderTyp2 (std::string file_name)
 class to read the cells and vertices in a .typ2 file More...
 
bool read_mesh (std::vector< std::vector< double > > &vertices, std::vector< std::vector< size_t > > &cells, std::vector< std::vector< double > > &centers)
 reads the .typ2 file and fills in cells, vertices and centers More...
 

Detailed Description

The MeshReaderTyp2 class provides functions to read a .typ2 mesh file.

Constructor & Destructor Documentation

◆ MeshReaderTyp2()

MeshReaderTyp2::MeshReaderTyp2 ( std::string  file_name)

class to read the cells and vertices in a .typ2 file

Constructor for mesh reader

Parameters
file_namename of the file name, needs to include the full path

Member Function Documentation

◆ read_mesh()

bool MeshReaderTyp2::read_mesh ( std::vector< std::vector< double > > &  vertices,
std::vector< std::vector< size_t > > &  cells,
std::vector< std::vector< double > > &  centers 
)

reads the .typ2 file and fills in cells, vertices and centers

Reads the file into the specified containers

Parameters
verticesreference to a vector to hold the vertices coordinates
cellsreference to a vector to hold the cell indexes
centersreference to a vector to hold the cell centers coordinates

The documentation for this class was generated from the following files: