PolyFEM
Loading...
Searching...
No Matches
SolverCSVWriter.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <polyfem/Common.hpp>
4
5#include <Eigen/Dense>
6
7#include <fstream>
8#include <string>
9
11{
12 class SolveData;
13}
14
15namespace polyfem::io
16{
18 {
19 public:
20 EnergyCSVWriter(const std::string &path, const solver::SolveData &solve_data);
22
23 void write(const int i, const Eigen::MatrixXd &sol);
24
25 private:
26 std::ofstream file;
28 };
29
31 {
32 public:
33 RuntimeStatsCSVWriter(const std::string &path, const int n_bases, const int n_elements, const double t0, const double dt);
35
36 void write(const int t, const double forward, const double remeshing, const double global_relaxation);
37
38 private:
39 std::ofstream file;
40 const int n_bases;
41 const int n_elements;
42 const double t0;
43 const double dt;
44 };
45} // namespace polyfem::io
const solver::SolveData & solve_data
void write(const int i, const Eigen::MatrixXd &sol)
void write(const int t, const double forward, const double remeshing, const double global_relaxation)
class to store time stepping data
Definition SolveData.hpp:59