7#ifndef SVZERODSOLVER_MODEL_ChamberSphere_HPP_
8#define SVZERODSOLVER_MODEL_ChamberSphere_HPP_
168 void update_constant(SparseSystem &system, std::vector<double> ¶meters);
177 void update_time(SparseSystem &system, std::vector<double> ¶meters);
188 void update_solution(SparseSystem &system, std::vector<double> ¶meters,
189 const Eigen::Matrix<double, Eigen::Dynamic, 1> &y,
190 const Eigen::Matrix<double, Eigen::Dynamic, 1> &dy);
201 double act_plus = 0.0;
209 TripletsContributions num_triplets{0, 0, 18};
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:38
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:100
const int id
Global ID of the block.
Definition Block.h:77
const Model * model
The model to which the block belongs.
Definition Block.h:78
void update_constant(SparseSystem &system, std::vector< double > ¶meters)
Update the constant contributions of the element in a sparse system.
Definition ChamberSphere.cpp:13
void update_time(SparseSystem &system, std::vector< double > ¶meters)
Update the time-dependent contributions of the element in a sparse system.
Definition ChamberSphere.cpp:45
void setup_dofs(DOFHandler &dofhandler)
Set up the degrees of freedom (DOF) of the block.
Definition ChamberSphere.cpp:8
ChamberSphere(int id, Model *model)
Construct a new ChamberSphere object.
Definition ChamberSphere.h:134
ParamId
Local IDs of the parameters.
Definition ChamberSphere.h:113
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 ChamberSphere.cpp:52
void get_elastance_values(std::vector< double > ¶meters)
Update the elastance functions which depend on time.
Definition ChamberSphere.cpp:110
Model of 0D elements.
Definition Model.h:49