HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge 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  HArDCore2D::VtuWriter
 

Functions

 HArDCore2D::VtuWriter::VtuWriter (const Mesh *mesh)
 Constructor for mesh writer.
 
bool HArDCore2D::VtuWriter::write_to_vtu (const std::string &filename, const std::vector< Eigen::VectorXd > &sol_vrtx, const std::vector< std::string > &sol_names={})
 Writes the vtu file

 
bool HArDCore2D::VtuWriter::write_to_vtu (std::string file_name)
 Overloaded writer for the mesh alone.
 
bool HArDCore2D::VtuWriter::write_to_vtu (const std::string &filename, const Eigen::VectorXd &sol_vrtx, const std::string &sol_name="solution")
 Overload to simplify the call when only one solution is involved.
 

Detailed Description

Classes providing tools to create vtu files to visualise solutions.

Function Documentation

◆ VtuWriter()

VtuWriter::VtuWriter ( const Mesh mesh)

Constructor for mesh writer.

Parameters
meshpointer to the mesh

◆ write_to_vtu() [1/3]

bool HArDCore2D::VtuWriter::write_to_vtu ( const std::string &  filename,
const Eigen::VectorXd &  sol_vrtx,
const std::string &  sol_name = "solution" 
)
inline

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

Parameters
filenamename of file to write to
sol_vrtxvalues of the solution at the mesh vertices
sol_namename of the solution

◆ write_to_vtu() [2/3]

bool VtuWriter::write_to_vtu ( const std::string &  filename,
const std::vector< Eigen::VectorXd > &  sol_vrtx,
const std::vector< std::string > &  sol_names = {} 
)

Writes the vtu file

Parameters
filenamename of file to write to
sol_vrtxEach element in the std::vector is a vector of values of a function to plot at the mesh vertices
sol_nameseach string is the name of one function

◆ write_to_vtu() [3/3]

bool VtuWriter::write_to_vtu ( std::string  file_name)

Overloaded writer for the mesh alone.