34#ifndef SVZERODSOLVER_MODEL_CLOSEDLOOPCORONARYBC_HPP_
35#define SVZERODSOLVER_MODEL_CLOSEDLOOPCORONARYBC_HPP_
145 enum ParamId { RA = 0, RAM = 1, RV = 2, CA = 3, CIM = 4 };
183 const Eigen::Matrix<double, Eigen::Dynamic, 1> &y,
184 const Eigen::Matrix<double, Eigen::Dynamic, 1> &dy);
BlockType
The types of blocks supported by the solver.
Definition BlockType.h:42
BlockClass
The classes/categories of blocks supported. Some classes require special handling (e....
Definition BlockType.h:64
model::ClosedLoopHeartPulmonary source file
SparseSystem source file.
Base class for 0D model components.
Definition Block.h:101
const int id
Global ID of the block.
Definition Block.h:103
const Model * model
The model to which the block belongs.
Definition Block.h:104
const BlockType block_type
Type of this block.
Definition Block.h:105
Closed loop coronary boundary condition which is connected to other blocks on both sides and the intr...
Definition ClosedLoopCoronaryBC.h:124
TripletsContributions num_triplets
Number of triplets of element.
Definition ClosedLoopCoronaryBC.h:192
ParamId
Local IDs of the parameters.
Definition ClosedLoopCoronaryBC.h:145
void update_constant(SparseSystem &system, std::vector< double > ¶meters)
Update the constant contributions of the element in a sparse system.
Definition ClosedLoopCoronaryBC.cpp:39
void setup_dofs(DOFHandler &dofhandler)
Set up the degrees of freedom (DOF) of the block.
Definition ClosedLoopCoronaryBC.cpp:35
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 ClosedLoopCoronaryBC.cpp:64
int ventricle_var_id
Variable index of either left or right ventricle.
Definition ClosedLoopCoronaryBC.h:195
ClosedLoopCoronaryBC(int id, Model *model, BlockType block_type)
Construct a ClosedLoopCoronaryBC object.
Definition ClosedLoopCoronaryBC.h:133
virtual void setup_model_dependent_params()=0
Setup parameters that depend on the model.
int im_param_id
Index of parameter Im.
Definition ClosedLoopCoronaryBC.h:196
Degree-of-freedom handler.
Definition DOFHandler.h:48
Model of 0D elements.
Definition Model.h:75
Sparse system.
Definition SparseSystem.h:57
The number of triplets that the element contributes to the global system.
Definition Block.h:52