7#ifndef SVZERODSOLVER_MODEL_CLOSEDLOOPHEARTPULMONARY_HPP_ 
    8#define SVZERODSOLVER_MODEL_CLOSEDLOOPHEARTPULMONARY_HPP_ 
   17#define _USE_MATH_DEFINES 
  228                       const Eigen::Matrix<double, Eigen::Dynamic, 1>& y,
 
  229                       const Eigen::Matrix<double, Eigen::Dynamic, 1>& dy);
 
  236  void post_solve(Eigen::Matrix<double, Eigen::Dynamic, 1>& y);
 
  252  double psi_ra, psi_la, psi_ra_derivative,
 
  262  void get_activation_and_elastance_functions(std::vector<double>& parameters);
 
  271  void get_psi_ra_la(std::vector<double>& parameters,
 
  272                     const Eigen::Matrix<double, Eigen::Dynamic, 1>& y);
 
  279  void get_valve_positions(
const Eigen::Matrix<double, Eigen::Dynamic, 1>& y);
 
 
BlockType
The types of blocks supported by the solver.
Definition BlockType.h:15
BlockClass
The classes/categories of blocks supported. Some classes require special handling (e....
Definition BlockType.h:38
SparseSystem source file.
Block(int id, Model *model, BlockType block_type, BlockClass block_class, std::vector< std::pair< std::string, InputParameter > > input_params)
Construct a new Block object.
Definition Block.h:100
const int id
Global ID of the block.
Definition Block.h:77
const Model * model
The model to which the block belongs.
Definition Block.h:78
ClosedLoopHeartPulmonary(int id, Model *model)
Construct a new ClosedLoopHeartPulmonary object.
Definition ClosedLoopHeartPulmonary.h:136
void setup_dofs(DOFHandler &dofhandler)
Set up the degrees of freedom (DOF) of the block.
Definition ClosedLoopHeartPulmonary.cpp:7
void update_solution(SparseSystem &system, std::vector< double > ¶meters, const Eigen::Matrix< double, Eigen::Dynamic, 1 > &y, const Eigen::Matrix< double, Eigen::Dynamic, 1 > &dy)
Update the solution-dependent contributions of the element in a sparse system.
Definition ClosedLoopHeartPulmonary.cpp:101
void post_solve(Eigen::Matrix< double, Eigen::Dynamic, 1 > &y)
Modify the solution after solving it.
Definition ClosedLoopHeartPulmonary.cpp:282
ParamId
Local IDs of the parameters.
Definition ClosedLoopHeartPulmonary.h:158
@ KXV_RA
Right atrium pressure-volume relationship (?)
Definition ClosedLoopHeartPulmonary.h:179
@ RRA_V
Right atrium outflow resistance.
Definition ClosedLoopHeartPulmonary.h:166
@ KXP_RA
Right atrium pressure-volume relationship (?)
Definition ClosedLoopHeartPulmonary.h:178
@ VRV_U
Right ventricle unstressed volume.
Definition ClosedLoopHeartPulmonary.h:173
@ LRV_A
Right ventricle inductance.
Definition ClosedLoopHeartPulmonary.h:167
@ RLV_AO
Left ventricle outflow resistance.
Definition ClosedLoopHeartPulmonary.h:172
@ EMAX_RA
Right atrium elastance (?)
Definition ClosedLoopHeartPulmonary.h:182
@ TPWAVE
Fraction of cardiac cycle (P-wave)
Definition ClosedLoopHeartPulmonary.h:160
@ IML
Scaling for intramyocardial pressure (left coronaries)
Definition ClosedLoopHeartPulmonary.h:163
@ IMR
Scaling for intramyocardial pressure (right coronaries)
Definition ClosedLoopHeartPulmonary.h:164
@ VASO_LA
Left atrium rest volume (?)
Definition ClosedLoopHeartPulmonary.h:185
@ LLV_A
Left ventricle inductance.
Definition ClosedLoopHeartPulmonary.h:171
@ ELV_S
Scaling for left ventricle elastance.
Definition ClosedLoopHeartPulmonary.h:162
@ CP
Pulmonary capacitance.
Definition ClosedLoopHeartPulmonary.h:176
@ VLV_U
Left ventricle unstressed volume.
Definition ClosedLoopHeartPulmonary.h:174
@ RLA_V
Left atrium outflow resistance.
Definition ClosedLoopHeartPulmonary.h:170
@ EMAX_LA
Left atrium elastance (?)
Definition ClosedLoopHeartPulmonary.h:183
@ TSA
Fractions of cardiac cycle (not sure)
Definition ClosedLoopHeartPulmonary.h:159
@ KXP_LA
Left atrium pressure-volume relationship (?)
Definition ClosedLoopHeartPulmonary.h:180
@ CPA
Aortic capacitance.
Definition ClosedLoopHeartPulmonary.h:177
@ RPD
Pulmonary resistance.
Definition ClosedLoopHeartPulmonary.h:175
@ LLA_V
Left atrium inductance.
Definition ClosedLoopHeartPulmonary.h:169
@ ERV_S
Scaling for right ventricle elastance.
Definition ClosedLoopHeartPulmonary.h:161
@ VASO_RA
Right atrium rest volume (?)
Definition ClosedLoopHeartPulmonary.h:184
@ KXV_LA
Left atrium pressure-volume relationship (?)
Definition ClosedLoopHeartPulmonary.h:181
@ RRV_A
Right ventricle outflow resistance.
Definition ClosedLoopHeartPulmonary.h:168
@ LRA_V
Right atrium inductance.
Definition ClosedLoopHeartPulmonary.h:165
void update_time(SparseSystem &system, std::vector< double > ¶meters)
Update the time-dependent contributions of the element in a sparse system.
Definition ClosedLoopHeartPulmonary.cpp:78
TripletsContributions num_triplets
Number of triplets of element.
Definition ClosedLoopHeartPulmonary.h:244
void update_constant(SparseSystem &system, std::vector< double > ¶meters)
Update the constant contributions of the element in a sparse system.
Definition ClosedLoopHeartPulmonary.cpp:13
Degree-of-freedom handler.
Definition DOFHandler.h:21
Model of 0D elements.
Definition Model.h:49
Sparse system.
Definition SparseSystem.h:30
The number of triplets that the element contributes to the global system.
Definition Block.h:26