FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
IntegratorOptions.h
1#pragma once
2
3#include <string>
4
9{
11 std::string TOutput = "0,0:1:10,10";
12 std::string FileOutput = "";
13 double StepSize = 0.0;
14 double AbsTol = 1.0e-4;
15 double RelTol = 1.0e-4;
16 double HMax = 10.0;
17 double HMin = 1.0e-60;
19 std::string InitialStatesFileName = "";
20 std::string FinalStatesFileName = "";
21 std::string NumCores = "1";
22};
23
26{
27 std::string start;
28 std::string end;
29 std::string output;
30};
31
36SimulationTimes SplitTOutput(const std::string& tOutput);
37
39std::string IntegratorMethodName(int method);
Definition IntegratorOptions.h:9
std::string FinalStatesFileName
FhSim 3 writes a binary file; name it *.bin.
Definition IntegratorOptions.h:20
std::string TOutput
FhSim 2.x form: start time, output times, end time, comma-separated (see SplitTOutput).
Definition IntegratorOptions.h:11
int IntegratorMethod
The FhSim 2.x method number (see IntegratorMethodName).
Definition IntegratorOptions.h:18
double StepSize
A fixed step; 0 is adaptive.
Definition IntegratorOptions.h:13
std::string FileOutput
The FileOutput selector; "" is all objects.
Definition IntegratorOptions.h:12
FhSim 2.x's TOutput split for FhSim 3.
Definition IntegratorOptions.h:26
std::string output
The FileOutput TOutput; "" for no output times.
Definition IntegratorOptions.h:29