34#ifndef SVZERODSOLVER_MODEL_BLOODVESSELJUNCTION_HPP_
35#define SVZERODSOLVER_MODEL_BLOODVESSELJUNCTION_HPP_
195 const Eigen::Matrix<double, Eigen::Dynamic, 1> &y,
196 const Eigen::Matrix<double, Eigen::Dynamic, 1> &dy);
209 Eigen::Matrix<double, Eigen::Dynamic, 1> &residual,
210 Eigen::Matrix<double, Eigen::Dynamic, 1> &alpha,
211 std::vector<double> &y, std::vector<double> &dy);
BlockType
The types of blocks supported by the solver.
Definition BlockType.h:42
BlockClass
The classes/categories of blocks supported. Some classes require special handling (e....
Definition BlockType.h:64
model::BloodVessel source file
SparseSystem source file.
Base class for 0D model components.
Definition Block.h:101
bool input_params_list
Are input parameters given as a list?
Definition Block.h:115
const int id
Global ID of the block.
Definition Block.h:103
const Model * model
The model to which the block belongs.
Definition Block.h:104
Junction between blood vessels.
Definition BloodVesselJunction.h:148
void setup_dofs(DOFHandler &dofhandler)
Set up the degrees of freedom (DOF) of the block.
Definition BloodVesselJunction.cpp:33
void update_constant(SparseSystem &system, std::vector< double > ¶meters)
Update the constant contributions of the element in a sparse system.
Definition BloodVesselJunction.cpp:46
TripletsContributions num_triplets
Number of triplets of element.
Definition BloodVesselJunction.h:219
void update_gradient(Eigen::SparseMatrix< double > &jacobian, Eigen::Matrix< double, Eigen::Dynamic, 1 > &residual, Eigen::Matrix< double, Eigen::Dynamic, 1 > &alpha, std::vector< double > &y, std::vector< double > &dy)
Set the gradient of the block contributions with respect to the parameters.
Definition BloodVesselJunction.cpp:82
BloodVesselJunction(int id, Model *model)
Construct a new BloodVesselJunction object.
Definition BloodVesselJunction.h:156
virtual 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 BloodVesselJunction.cpp:65
Degree-of-freedom handler.
Definition DOFHandler.h:48
Model of 0D elements.
Definition Model.h:75
Sparse system.
Definition SparseSystem.h:57
The number of triplets that the element contributes to the global system.
Definition Block.h:52