svZeroDSolver
Loading...
Searching...
No Matches
csv_writer.h File Reference

csv_writer source file More...

#include <fstream>
#include <string>
#include <vector>
#include "Model.h"
#include "State.h"
Include dependency graph for csv_writer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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.
 
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.
 

Detailed Description

csv_writer source file

Function Documentation

◆ to_variable_csv()

std::string to_variable_csv ( const std::vector< double > & times,
const std::vector< State > & states,
const Model & model,
bool mean,
bool derivative )

Write results variable based.

Parameters
timesSequence of time steps corresponding to the solutions
statesSequence of states corresponding to the time steps
modelThe underlying model
meanToggle whether only the mean over all time steps should be written
derivativeToggle whether to output time-derivatives
Returns
CSV encoded output string

◆ to_vessel_csv()

std::string to_vessel_csv ( const std::vector< double > & times,
const std::vector< State > & states,
const Model & model,
bool mean,
bool derivative )

Write results vessel based.

Parameters
timesSequence of time steps corresponding to the solutions
statesSequence of states corresponding to the time steps
modelThe underlying model
meanToggle whether only the mean over all time steps should be written
derivativeToggle whether to output time-derivatives
Returns
CSV encoded output string