36#include <nlohmann/json.hpp>
SparseSystem source file.
Generalized-alpha integrator.
Definition Integrator.h:53
Interface class for calling svZeroD from external programs.
Definition interface.h:50
~SolverInterface()
Destroy the interface object.
Definition interface.cpp:50
double external_step_size_
Time step size of the external program.
Definition interface.h:87
double rho_infty_
Spectral radius of generalized alpha integrator.
Definition interface.h:98
bool output_last_cycle_only_
Output results from last cycle only?
Definition interface.h:131
double time_step_size_
0D time step size
Definition interface.h:93
int num_time_steps_
Number of 0D time steps.
Definition interface.h:103
Integrator integrator_
The current 0D integrator object.
Definition interface.h:140
std::shared_ptr< Model > model_
The current 0D model object.
Definition interface.h:136
State state_
The current 0D state vector.
Definition interface.h:145
int max_nliter_
Maximum number of non-linear iterations.
Definition interface.h:111
int pts_per_cycle_
Number of time steps per cycle.
Definition interface.h:127
int num_output_steps_
The number of steps to output.
Definition interface.h:123
int time_step_
Current time step.
Definition interface.h:115
int problem_id_
ID of current interface.
Definition interface.h:75
double absolute_tolerance_
Convergence tolerance for the 0D model.
Definition interface.h:107
int system_size_
The size of the 0D system.
Definition interface.h:119
std::string input_file_name_
0D input (JSON) file
Definition interface.h:80
static std::map< int, SolverInterface * > interface_list_
List of interfaces.
Definition interface.h:70
std::vector< State > states_
Vector to store solution states.
Definition interface.h:153
std::vector< double > times_
Vector to store solution times.
Definition interface.h:149
static int problem_id_count_
Counter for the number of interfaces.
Definition interface.h:66
SolverInterface(const std::string &input_file_name)
Construct a new interface object.
Definition interface.cpp:44
State of the system.
Definition State.h:46