7#ifndef SVZERODSOLVER_MODEL_JUNCTION_HPP_
8#define SVZERODSOLVER_MODEL_JUNCTION_HPP_
75 static const std::vector<InputParameter>
104 void update_constant(SparseSystem &system, std::vector<double> ¶meters);
117 Eigen::Matrix<double, Eigen::Dynamic, 1> &residual,
118 Eigen::Matrix<double, Eigen::Dynamic, 1> &alpha,
119 std::vector<double> &y, std::vector<double> &dy);
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:37
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_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 Junction.cpp:35
void update_constant(SparseSystem &system, std::vector< double > ¶meters)
Update the constant contributions of the element in a sparse system.
Definition Junction.cpp:15
void setup_dofs(DOFHandler &dofhandler)
Set up the degrees of freedom (DOF) of the block.
Definition Junction.cpp:5
static const BlockClass block_class
Class of this block.
Definition Junction.h:74
static const std::vector< InputParameter > input_params
List of input parameter names.
Definition Junction.h:76
int num_inlets
Number of inlets to the block.
Definition Junction.h:133
TripletsContributions num_triplets
Number of triplets of element.
Definition Junction.h:127
static const BlockType block_type
Type of this block.
Definition Junction.h:73
Junction(int id, Model *model)
Construct a new Junction object.
Definition Junction.h:84
int num_outlets
Number of outlets from the block.
Definition Junction.h:138
Model of 0D elements.
Definition Model.h:48
The number of triplets that the element contributes to the global system.
Definition Block.h:26