|
svZeroDSolver
|
#include <Parameter.h>
Public Member Functions | |
| Parameter (int id, double value) | |
| Construct a new Parameter object. | |
| Parameter (int id, const std::vector< double > ×, const std::vector< double > &values, bool periodic=true) | |
| Construct a new Parameter object. | |
| void | update (double value) |
| Update the parameter. | |
| void | update (const std::vector< double > ×, const std::vector< double > &values) |
| Update the parameter. | |
| double | get (double time) |
| Get the parameter value at the specified time. | |
| void | to_steady () |
| Convert the parameter into a steady mean state. | |
| void | to_unsteady () |
| Convert the parameter back into an unsteady mean state. | |
Public Attributes | |
| int | id |
| Global ID of the parameter. | |
| std::vector< double > | times |
| Time steps if parameter is time-dependent. | |
| std::vector< double > | values |
| Values if parameter is time-dependent. | |
| double | value |
| Value if parameter is constant. | |
| double | cycle_period |
| int | size |
| Size of the time series if parameter is time-dependent. | |
| bool | is_constant |
| Bool value indicating if the parameter is constant. | |
| bool | is_periodic |
This class handles constant parameters and time-dependent parameters that need to be interpolated and periodically applied.
| Parameter::Parameter | ( | int | id, |
| double | value ) |
Construct a new Parameter object.
| id | Global ID of the parameter |
| value | The value of the parameter |
| Parameter::Parameter | ( | int | id, |
| const std::vector< double > & | times, | ||
| const std::vector< double > & | values, | ||
| bool | periodic = true ) |
Construct a new Parameter object.
| id | Global ID of the parameter |
| times | Time steps corresponding to the time-dependent values |
| values | Values corresponding to the time steps |
| periodic | Is this parameter periodic with a cardiac cycle? |
| double Parameter::get | ( | double | time | ) |
Get the parameter value at the specified time.
| time | Current time |
| void Parameter::to_steady | ( | ) |
Convert the parameter into a steady mean state.
| void Parameter::to_unsteady | ( | ) |
Convert the parameter back into an unsteady mean state.
| void Parameter::update | ( | const std::vector< double > & | times, |
| const std::vector< double > & | values ) |
Update the parameter.
| times | Time steps corresponding to the values |
| values | Values correspondong to the time steps |
| void Parameter::update | ( | double | value | ) |
Update the parameter.
| value | Value of the parameter |
| double Parameter::cycle_period |
Cardiac cycle period corresponding to the time sequence
| int Parameter::id |
Global ID of the parameter.
| bool Parameter::is_constant |
Bool value indicating if the parameter is constant.
| bool Parameter::is_periodic |
Bool value indicating if the parameter is periodic with the cardiac cycle
| int Parameter::size |
Size of the time series if parameter is time-dependent.
| std::vector<double> Parameter::times |
Time steps if parameter is time-dependent.
| double Parameter::value |
Value if parameter is constant.
| std::vector<double> Parameter::values |
Values if parameter is time-dependent.