svZeroDSolver
|
Generalized-alpha integrator. More...
#include <Integrator.h>
Public Member Functions | |
Integrator (Model *model, double time_step_size, double rho, double atol, int max_iter) | |
Construct a new Integrator object. | |
Integrator () | |
Construct a new Integrator object. | |
~Integrator () | |
Destroy the Integrator object. | |
void | clean () |
Delete dynamically allocated memory (in class member SparseSystem<double> system). | |
void | update_params (double time_step_size) |
Update integrator parameter and system matrices with model parameter updates. | |
State | step (const State &state, double time) |
Perform a time step. | |
double | avg_nonlin_iter () |
Get average number of nonlinear iterations in all step calls. | |
Generalized-alpha integrator.
This class handles the time integration scheme for solving 0D blood flow system using the generalized- method [1].
Mathematical details are available on the SimVascular documentation.
Integrator::Integrator | ( | Model * | model, |
double | time_step_size, | ||
double | rho, | ||
double | atol, | ||
int | max_iter ) |
Construct a new Integrator object.
model | The model to simulate |
time_step_size | Time step size for generalized-alpha step |
rho | Spectral radius for generalized-alpha step |
atol | Absolut tolerance for non-linear iteration termination |
max_iter | Maximum number of non-linear iterations |
Integrator::Integrator | ( | ) |
Construct a new Integrator object.
Integrator::~Integrator | ( | ) |
Destroy the Integrator object.
double Integrator::avg_nonlin_iter | ( | ) |
Get average number of nonlinear iterations in all step calls.
void Integrator::clean | ( | ) |
Delete dynamically allocated memory (in class member SparseSystem<double> system).
Perform a time step.
state | Current state |
time | Current time |
void Integrator::update_params | ( | double | time_step_size | ) |
Update integrator parameter and system matrices with model parameter updates.
time_step_size | Time step size for 0D model |