52 const std::string & filename,
53 const std::vector<Eigen::VectorXd> & sol_vrtx,
54 const std::vector<std::string> & sol_names = {}
62 const std::string & filename,
63 const Eigen::VectorXd & sol_vrtx,
64 const std::string & sol_name =
"solution"
67 return write_to_vtu(filename, std::vector<Eigen::VectorXd> {sol_vrtx}, std::vector<std::string> {sol_name});
71 void write_vertices(FILE* pFile);
72 void write_vertices(FILE* pFile,
const Eigen::VectorXd & data);
73 void write_header(FILE* pFile);
74 void write_cells(FILE* pFile);
82 void write_solution(FILE* pFile,
const Eigen::VectorXd & sol,
const std::string & name);
83 void write_footer(FILE* pFile);
bool 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.
Definition vtu_writer.hpp:61
bool 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
Definition vtu_writer.cpp:130