7#ifndef SVZERODSOLVER_MODEL_CLOSEDLOOPCORONARYBC_HPP_
8#define SVZERODSOLVER_MODEL_CLOSEDLOOPCORONARYBC_HPP_
118 enum ParamId { RA = 0, RAM = 1, RV = 2, CA = 3, CIM = 4 };
145 std::vector<double>& parameters)
override;
158 const Eigen::Matrix<double, Eigen::Dynamic, 1>& y,
159 const Eigen::Matrix<double, Eigen::Dynamic, 1>& dy)
override;
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:44
model::ClosedLoopHeartPulmonary source file
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:101
const int id
Global ID of the block.
Definition Block.h:78
const Model * model
The model to which the block belongs.
Definition Block.h:79
const BlockType block_type
Type of this block.
Definition Block.h:80
TripletsContributions num_triplets
Number of triplets of element.
Definition ClosedLoopCoronaryBC.h:167
ParamId
Local IDs of the parameters.
Definition ClosedLoopCoronaryBC.h:118
void update_constant(SparseSystem &system, std::vector< double > ¶meters) override
Update the constant contributions of the element in a sparse system.
Definition ClosedLoopCoronaryBC.cpp:11
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) override
Update the solution-dependent contributions of the element in a sparse system.
Definition ClosedLoopCoronaryBC.cpp:36
int ventricle_var_id
Variable index of either left or right ventricle.
Definition ClosedLoopCoronaryBC.h:170
ClosedLoopCoronaryBC(int id, Model *model, BlockType block_type)
Construct a ClosedLoopCoronaryBC object.
Definition ClosedLoopCoronaryBC.h:106
virtual void setup_model_dependent_params() override=0
Setup parameters that depend on the model.
void setup_dofs(DOFHandler &dofhandler) override
Set up the degrees of freedom (DOF) of the block.
Definition ClosedLoopCoronaryBC.cpp:7
int im_param_id
Index of parameter Im.
Definition ClosedLoopCoronaryBC.h:171
Degree-of-freedom handler.
Definition DOFHandler.h:21
Model of 0D elements.
Definition Model.h:55
Sparse system.
Definition SparseSystem.h:30
The number of triplets that the element contributes to the global system.
Definition Block.h:27