34#ifndef SVZERODSOLVER_MODEL_JUNCTION_HPP_
35#define SVZERODSOLVER_MODEL_JUNCTION_HPP_
102 static const std::vector<InputParameter>
144 Eigen::Matrix<double, Eigen::Dynamic, 1> &residual,
145 Eigen::Matrix<double, Eigen::Dynamic, 1> &alpha,
146 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
SparseSystem source file.
Base class for 0D model components.
Definition Block.h:101
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
Degree-of-freedom handler.
Definition DOFHandler.h:48
Junction.
Definition Junction.h:98
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:63
void update_constant(SparseSystem &system, std::vector< double > ¶meters)
Update the constant contributions of the element in a sparse system.
Definition Junction.cpp:43
void setup_dofs(DOFHandler &dofhandler)
Set up the degrees of freedom (DOF) of the block.
Definition Junction.cpp:33
static const BlockClass block_class
Class of this block.
Definition Junction.h:101
static const std::vector< InputParameter > input_params
List of input parameter names.
Definition Junction.h:103
int num_inlets
Number of inlets to the block.
Definition Junction.h:160
TripletsContributions num_triplets
Number of triplets of element.
Definition Junction.h:154
static const BlockType block_type
Type of this block.
Definition Junction.h:100
Junction(int id, Model *model)
Construct a new Junction object.
Definition Junction.h:111
int num_outlets
Number of outlets from the block.
Definition Junction.h:165
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