Classes providing tools to create vtu files to visualise solutions.
More...
Classes providing tools to create vtu files to visualise solutions.
◆ VtuWriter()
VtuWriter::VtuWriter |
( |
const Mesh * |
mesh | ) |
|
Constructor for mesh writer.
- Parameters
-
◆ 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
-
filename | name of file to write to |
sol_vrtx | values of the solution at the mesh vertices |
sol_name | name 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
-
filename | name of file to write to |
sol_vrtx | Each element in the std::vector is a vector of values of a function to plot at the mesh vertices |
sol_names | each 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.