OGS
AnchorTerm.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "SourceTerm.h"
14
15namespace ProcessLib
16{
17template <int GlobalDim>
18class AnchorTerm final : public SourceTerm
19{
20public:
21 explicit AnchorTerm(
22 std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
23 std::size_t const source_term_mesh_id, MeshLib::Mesh const& st_mesh,
24 const int variable_id,
25 ParameterLib::Parameter<double> const& parameter);
26
27 void integrate(const double t, GlobalVector const& x, GlobalVector& b,
28 GlobalMatrix* jac) const override;
29
30private:
31 std::size_t const source_term_mesh_id_;
33 int const variable_id_;
35};
36
37extern template class AnchorTerm<2>;
38extern template class AnchorTerm<3>;
39} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
ParameterLib::Parameter< double > const & parameter_
Definition AnchorTerm.h:34
std::size_t const source_term_mesh_id_
Definition AnchorTerm.h:31
void integrate(const double t, GlobalVector const &x, GlobalVector &b, GlobalMatrix *jac) const override
MeshLib::Mesh const & st_mesh_
Definition AnchorTerm.h:32
AnchorTerm(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, ParameterLib::Parameter< double > const &parameter)