7#ifndef SVZERODSOLVER_MODEL_CHAMBERELASTANCEINDUCTOR_HPP_
8#define SVZERODSOLVER_MODEL_CHAMBERELASTANCEINDUCTOR_HPP_
167 enum ParamId { EMAX = 0, EMIN = 1, VRD = 2, VRS = 3, IMPEDANCE = 4 };
210 std::unique_ptr<ActivationFunction> activation_func_;
226 void get_elastance_values(std::vector<double>& parameters);
Activation function classes for cardiac chamber models.
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:41
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
void setup_dofs(DOFHandler &dofhandler)
Set up the degrees of freedom (DOF) of the block.
Definition ChamberElastanceInductor.cpp:5
TripletsContributions num_triplets
Number of triplets of element.
Definition ChamberElastanceInductor.h:205
void update_time(SparseSystem &system, std::vector< double > ¶meters)
Update the time-dependent contributions of the element in a sparse system.
Definition ChamberElastanceInductor.cpp:28
ChamberElastanceInductor(int id, Model *model)
Construct a new ChamberElastanceInductor object.
Definition ChamberElastanceInductor.h:154
ParamId
Local IDs of the parameters.
Definition ChamberElastanceInductor.h:167
void update_constant(SparseSystem &system, std::vector< double > ¶meters)
Update the constant contributions of the element in a sparse system.
Definition ChamberElastanceInductor.cpp:10
void set_activation_function(std::unique_ptr< ActivationFunction > af) override
Set the activation function (takes ownership)
Definition ChamberElastanceInductor.cpp:51
Degree-of-freedom handler.
Definition DOFHandler.h:21
Model of 0D elements.
Definition Model.h:52
Sparse system.
Definition SparseSystem.h:30
The number of triplets that the element contributes to the global system.
Definition Block.h:27