9#ifndef SVZERODSOLVER_MODEL_LINEARELASTANCECHAMBER_HPP_
10#define SVZERODSOLVER_MODEL_LINEARELASTANCECHAMBER_HPP_
140 enum ParamId { EMAX = 0, EPASS = 1, VREST = 2 };
182 std::unique_ptr<ActivationFunction> activation_func_;
198 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
Degree-of-freedom handler.
Definition DOFHandler.h:21
void update_time(SparseSystem &system, std::vector< double > ¶meters)
Update the time-dependent contributions of the element in a sparse system.
Definition LinearElastanceChamber.cpp:26
void setup_dofs(DOFHandler &dofhandler)
Set up the degrees of freedom (DOF) of the block.
Definition LinearElastanceChamber.cpp:6
TripletsContributions num_triplets
Number of triplets of element.
Definition LinearElastanceChamber.h:178
void set_activation_function(std::unique_ptr< ActivationFunction > af) override
Set the activation function (takes ownership)
Definition LinearElastanceChamber.cpp:47
LinearElastanceChamber(int id, Model *model)
Construct a new LinearElastanceChamber object.
Definition LinearElastanceChamber.h:129
void update_constant(SparseSystem &system, std::vector< double > ¶meters)
Update the constant contributions of the element in a sparse system.
Definition LinearElastanceChamber.cpp:11
ParamId
Local IDs of the parameters.
Definition LinearElastanceChamber.h:140
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