OGS
DeactivatedSubdomainDirichlet.h
Go to the documentation of this file.
1
9#pragma once
10
11#include <memory>
12#include <vector>
13
14#include "BoundaryCondition.h"
17
18namespace BaseLib
19{
20class ConfigTree;
21} // namespace BaseLib
22
23namespace MeshLib
24{
25class Node;
26template <typename T>
27class PropertyVector;
28} // namespace MeshLib
29
30namespace ParameterLib
31{
32template <typename T>
33struct Parameter;
34}
35
36namespace ProcessLib
37{
38struct DeactivatedSubdomainMesh;
39
41{
42public:
46 ParameterLib::Parameter<double> const& parameter,
47 bool const set_outer_nodes_dirichlet_values,
48 DeactivatedSubdomainMesh const& subdomain,
49 NumLib::LocalToGlobalIndexMap const& dof_table_bulk,
50 int const variable_id, int const component_id);
51
53 const double t, GlobalVector const& x,
54 NumLib::IndexValueVector<GlobalIndexType>& bc_values) const override;
55
56private:
57 void config(NumLib::LocalToGlobalIndexMap const& dof_table_bulk);
58
59private:
61
63
64 std::unique_ptr<NumLib::LocalToGlobalIndexMap const> _dof_table_boundary;
65 int const _variable_id;
66 int const _component_id;
67
70
72};
73} // namespace ProcessLib
Definition of the PiecewiseLinearInterpolation class.
Global vector based on Eigen vector.
Definition EigenVector.h:25
DeactivatedSubdomainDirichlet(MeshLib::PropertyVector< unsigned char > const &is_active, MathLib::PiecewiseLinearInterpolation time_interval, ParameterLib::Parameter< double > const &parameter, bool const set_outer_nodes_dirichlet_values, DeactivatedSubdomainMesh const &subdomain, NumLib::LocalToGlobalIndexMap const &dof_table_bulk, int const variable_id, int const component_id)
MathLib::PiecewiseLinearInterpolation const _time_interval
void getEssentialBCValues(const double t, GlobalVector const &x, NumLib::IndexValueVector< GlobalIndexType > &bc_values) const override
Writes the values of essential BCs to bc_values.
ParameterLib::Parameter< double > const & _parameter
MeshLib::PropertyVector< unsigned char > const & _is_active
void config(NumLib::LocalToGlobalIndexMap const &dof_table_bulk)
std::unique_ptr< NumLib::LocalToGlobalIndexMap const > _dof_table_boundary