7#ifndef SVZERODSOLVER_MODEL_ChamberSphere_HPP_
8#define SVZERODSOLVER_MODEL_ChamberSphere_HPP_
182 void setup_dofs(DOFHandler& dofhandler)
override;
192 std::vector<double>& parameters)
override;
202 std::vector<double>& parameters)
override;
214 SparseSystem& system, std::vector<double>& parameters,
215 const Eigen::Matrix<double, Eigen::Dynamic, 1>& y,
216 const Eigen::Matrix<double, Eigen::Dynamic, 1>& dy)
override;
227 void set_material(std::unique_ptr<SphereMaterial> m)
override;
231 double act_plus = 0.0;
232 std::unique_ptr<ActivationFunction> activation_function_;
234 std::unique_ptr<SphereMaterial> material_;
242 TripletsContributions num_triplets{0, 0, 18};
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:44
SparseSystem source file.
Material models for the ChamberSphere block.
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:102
const int id
Global ID of the block.
Definition Block.h:79
const Model * model
The model to which the block belongs.
Definition Block.h:80
ChamberSphere(int id, Model *model)
Construct a new ChamberSphere object.
Definition ChamberSphere.h:162
void update_constant(SparseSystem &system, std::vector< double > ¶meters) override
Update the constant contributions of the element in a sparse system.
Definition ChamberSphere.cpp:13
ParamId
Local IDs of the parameters.
Definition ChamberSphere.h:146
void set_activation_function(std::unique_ptr< ActivationFunction > af) override
Set activation function (for chamber blocks that use one).
Definition ChamberSphere.cpp:124
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 ChamberSphere.cpp:52
void get_elastance_values(std::vector< double > ¶meters)
Update the elastance functions which depend on time.
Definition ChamberSphere.cpp:113
void update_time(SparseSystem &system, std::vector< double > ¶meters) override
Update the time-dependent contributions of the element in a sparse system.
Definition ChamberSphere.cpp:45
void setup_dofs(DOFHandler &dofhandler) override
Set up the degrees of freedom (DOF) of the block.
Definition ChamberSphere.cpp:8
void set_material(std::unique_ptr< SphereMaterial > m) override
Set wall material (for ChamberSphere blocks).
Definition ChamberSphere.cpp:109
Model of 0D elements.
Definition Model.h:55