HArD::Core3D
Hybrid Arbitrary Degree::Core 3D - Library to implement 3D schemes with vertex, edge, face and cell polynomials as unknowns
Loading...
Searching...
No Matches
Classes | Functions
Plot

Classes providing tools to create vtu files to visualise solutions. More...

Classes

class  HArDCore3D::VtuWriter
 The VtuWriter class provides methods to plot a 3D mesh and a solution on this mesh. More...
 

Functions

 HArDCore3D::VtuWriter::VtuWriter (const Mesh *mesh)
 Constructor for mesh writer.
 
template<typename T >
bool HArDCore3D::VtuWriter::write_to_vtu (const std::string filename, const std::vector< T > &sol_vrtx, const std::vector< std::string > &sol_names={})
 Writes file with a series of solutions (scalar if T=std::vector<double> (or Eigen::VectorXd), vector if T=std::vector<VectorRd>)
 
template<typename T >
bool HArDCore3D::VtuWriter::write_to_vtu (const std::string file_name, const T &sol_vertex, const std::string &sol_name="solution")
 Overload to simplify the call when only one solution is involved.
 
bool HArDCore3D::VtuWriter::write_header (FILE *pFile)
 
bool HArDCore3D::VtuWriter::write_vertices (FILE *pFile)
 
bool HArDCore3D::VtuWriter::write_solution (FILE *pFile, const std::vector< double > &sol_vertex, const std::string &name)
 
bool HArDCore3D::VtuWriter::write_solution (FILE *pFile, const Eigen::VectorXd &sol_vertex, const std::string &name)
 
bool HArDCore3D::VtuWriter::write_solution (FILE *pFile, const std::vector< VectorRd > &sol_vertex, const std::string &name)
 
bool HArDCore3D::VtuWriter::write_cells (FILE *pFile)
 
bool HArDCore3D::VtuWriter::write_footer (FILE *pFile)
 

Detailed Description

Classes providing tools to create vtu files to visualise solutions.

Function Documentation

◆ VtuWriter()

HArDCore3D::VtuWriter::VtuWriter ( const Mesh mesh)

Constructor for mesh writer.

Parameters
meshpointer to the mesh

◆ write_cells()

bool HArDCore3D::VtuWriter::write_cells ( FILE pFile)

◆ write_footer()

bool HArDCore3D::VtuWriter::write_footer ( FILE pFile)

◆ write_header()

bool HArDCore3D::VtuWriter::write_header ( FILE pFile)

◆ write_solution() [1/3]

bool HArDCore3D::VtuWriter::write_solution ( FILE pFile,
const Eigen::VectorXd &  sol_vertex,
const std::string &  name 
)

◆ write_solution() [2/3]

bool HArDCore3D::VtuWriter::write_solution ( FILE pFile,
const std::vector< double > &  sol_vertex,
const std::string &  name 
)

◆ write_solution() [3/3]

bool HArDCore3D::VtuWriter::write_solution ( FILE pFile,
const std::vector< VectorRd > &  sol_vertex,
const std::string &  name 
)

◆ write_to_vtu() [1/2]

template<typename T >
bool HArDCore3D::VtuWriter::write_to_vtu ( const std::string  file_name,
const T &  sol_vertex,
const std::string &  sol_name = "solution" 
)
inline

Overload to simplify the call when only one solution is involved.

Parameters
file_namename of file to write to
sol_vertexvalues of the solution at the mesh vertices
sol_namename of the solution

◆ write_to_vtu() [2/2]

template<typename T >
bool HArDCore3D::VtuWriter::write_to_vtu ( const std::string  filename,
const std::vector< T > &  sol_vrtx,
const std::vector< std::string > &  sol_names = {} 
)
inline

Writes file with a series of solutions (scalar if T=std::vector<double> (or Eigen::VectorXd), vector if T=std::vector<VectorRd>)

Parameters
filenamename of file to write to
sol_vrtxeach instance of T represents the values of one solution at the mesh vertices
sol_nameseach string is the name of one solution

◆ write_vertices()

bool HArDCore3D::VtuWriter::write_vertices ( FILE pFile)