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"
16
17namespace BaseLib
18{
19class ConfigTree;
20} // namespace BaseLib
21
22namespace MeshLib
23{
24class Node;
25template <typename T>
26class PropertyVector;
27} // namespace MeshLib
28
29namespace ParameterLib
30{
31template <typename T>
32struct Parameter;
33}
34
35namespace ProcessLib
36{
37struct DeactivatedSubdomainMesh;
38
40{
41public:
45 ParameterLib::Parameter<double> const& parameter,
46 bool const set_outer_nodes_dirichlet_values,
47 DeactivatedSubdomainMesh const& subdomain,
48 NumLib::LocalToGlobalIndexMap const& dof_table_bulk,
49 int const variable_id, int const component_id);
50
52 const double t, GlobalVector const& x,
53 NumLib::IndexValueVector<GlobalIndexType>& bc_values) const override;
54
55private:
56 void config(NumLib::LocalToGlobalIndexMap const& dof_table_bulk);
57
58private:
60
62
63 std::unique_ptr<NumLib::LocalToGlobalIndexMap const> _dof_table_boundary;
64 int const _variable_id;
65 int const _component_id;
66
69
71};
72} // 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