OGS
NodalSourceTerm.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "SourceTerm.h"
14
15namespace ProcessLib
16{
17class NodalSourceTerm final : public SourceTerm
18{
19public:
20 explicit NodalSourceTerm(
21 std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
22 std::size_t const source_term_mesh_id, MeshLib::Mesh const& st_mesh,
23 const int variable_id, const int component_id,
24 ParameterLib::Parameter<double> const& parameter);
25
26 void integrate(const double t, GlobalVector const& x, GlobalVector& b,
27 GlobalMatrix* jac) const override;
28
29private:
30 std::size_t const _source_term_mesh_id;
32 int const _variable_id;
33 int const _component_id;
35};
36
37} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
std::size_t const _source_term_mesh_id
ParameterLib::Parameter< double > const & _parameter
NodalSourceTerm(std::unique_ptr< NumLib::LocalToGlobalIndexMap > source_term_dof_table, std::size_t const source_term_mesh_id, MeshLib::Mesh const &st_mesh, const int variable_id, const int component_id, ParameterLib::Parameter< double > const &parameter)
void integrate(const double t, GlobalVector const &x, GlobalVector &b, GlobalMatrix *jac) const override
MeshLib::Mesh const & _st_mesh