Classes providing tools to create vtu files to visualise solutions.
More...
|
| | 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) |
| |
Classes providing tools to create vtu files to visualise solutions.
◆ VtuWriter()
| HArDCore3D::VtuWriter::VtuWriter |
( |
const Mesh * |
mesh | ) |
|
Constructor for mesh writer.
- Parameters
-
◆ 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]
| 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_name | name of file to write to |
| sol_vertex | values of the solution at the mesh vertices |
| sol_name | name of the solution |
◆ write_to_vtu() [2/2]
| 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
-
| filename | name of file to write to |
| sol_vrtx | each instance of T represents the values of one solution at the mesh vertices |
| sol_names | each string is the name of one solution |
◆ write_vertices()
| bool HArDCore3D::VtuWriter::write_vertices |
( |
FILE * |
pFile | ) |
|