NLMech  0.1.0
tools::mesh Namespace Reference

Namespace for simple mesh generation. More...

Functions

void fe1D (const std::string &filename)
 Generate uniform mesh in 1-d and writes the data to files specified in input filename. More...
 
void fe2D (const std::string &filename)
 Generates uniform mesh in 2-d and writes the data to files specified in input filename. More...
 
void uniformSquare (const std::string &filename)
 Generates uniform square mesh in 2-d and writes the data to files specified in input filename. More...
 
void uniformTri (const std::string &filename)
 Generates uniform triangular mesh in 2-d and writes the data to files specified in input filename. More...
 
void uniformTriSym (const std::string &filename)
 Generates uniform symmetric triangular mesh in 2-d and writes the data to files specified in input filename. More...
 

Detailed Description

Namespace for simple mesh generation.

In this namespace we define the methods for generating simple finite element/finite difference mesh in 1-d and 2-d. For finite element, we can specify three types of triangular mesh which differ in how we create triangle on uniform grid.

Function Documentation

◆ fe1D()

void tools::mesh::fe1D ( const std::string &  filename)

Generate uniform mesh in 1-d and writes the data to files specified in input filename.

Parameters
filenameName of YAML input file

◆ fe2D()

void tools::mesh::fe2D ( const std::string &  filename)

Generates uniform mesh in 2-d and writes the data to files specified in input filename.

Parameters
filenameName of YAML input file
Here is the call graph for this function:

◆ uniformSquare()

void tools::mesh::uniformSquare ( const std::string &  filename)

Generates uniform square mesh in 2-d and writes the data to files specified in input filename.

Parameters
filenameName of YAML input file

Referenced by fe2D().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uniformTri()

void tools::mesh::uniformTri ( const std::string &  filename)

Generates uniform triangular mesh in 2-d and writes the data to files specified in input filename.

Parameters
filenameName of YAML input file

Referenced by fe2D().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uniformTriSym()

void tools::mesh::uniformTriSym ( const std::string &  filename)

Generates uniform symmetric triangular mesh in 2-d and writes the data to files specified in input filename.

Parameters
filenameName of YAML input file

Referenced by fe2D().

Here is the call graph for this function:
Here is the caller graph for this function: