svZeroDSolver
Loading...
Searching...
No Matches
csv_writer.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the
2// University of California, and others. SPDX-License-Identifier: BSD-3-Clause
3/**
4 * @file csv_writer.h
5 * @brief csv_writer source file
6 */
7#ifndef SVZERODSOLVER_IO_CSVWRITER_HPP_
8#define SVZERODSOLVER_IO_CSVWRITER_HPP_
9
10#include <fstream>
11#include <string>
12#include <vector>
13
14#include "Model.h"
15#include "State.h"
16
17std::string to_variable_csv(const std::vector<double> &times,
18 const std::vector<State> &states,
19 const Model &model, bool mean = false,
20 bool derivative = false);
21
22std::string to_vessel_csv(const std::vector<double> &times,
23 const std::vector<State> &states, const Model &model,
24 bool mean = false, bool derivative = false);
25
26#endif // SVZERODSOLVER_IO_CSVWRITER_HPP_
model::Model source file
State source file.
Model of 0D elements.
Definition Model.h:48
std::string to_variable_csv(const std::vector< double > &times, const std::vector< State > &states, const Model &model, bool mean=false, bool derivative=false)
Write results variable based.
Definition csv_writer.cpp:147
std::string to_vessel_csv(const std::vector< double > &times, const std::vector< State > &states, const Model &model, bool mean=false, bool derivative=false)
Write results vessel based.
Definition csv_writer.cpp:18