Loading [MathJax]/jax/output/HTML-CSS/config.js
OGS
DirichletBoundaryCondition.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <memory>
14
15#include "BoundaryCondition.h"
17
18namespace BaseLib
19{
20class ConfigTree;
21}
22namespace ParameterLib
23{
24template <typename T>
25struct Parameter;
26}
27
28namespace ProcessLib
29{
30// TODO docu
36{
37public:
39 ParameterLib::Parameter<double> const& parameter,
40 MeshLib::Mesh const& bc_mesh,
41 NumLib::LocalToGlobalIndexMap const& dof_table_bulk,
42 int const variable_id, int const component_id);
43
45 const double t, GlobalVector const& x,
46 NumLib::IndexValueVector<GlobalIndexType>& bc_values) const override;
47
48private:
50
52 std::unique_ptr<NumLib::LocalToGlobalIndexMap const> _dof_table_boundary;
53 int const _variable_id;
54 int const _component_id;
55};
56
57std::unique_ptr<DirichletBoundaryCondition> createDirichletBoundaryCondition(
58 BaseLib::ConfigTree const& config, MeshLib::Mesh const& bc_mesh,
59 NumLib::LocalToGlobalIndexMap const& dof_table_bulk, int const variable_id,
60 int const component_id,
61 const std::vector<std::unique_ptr<ParameterLib::ParameterBase>>&
62 parameters);
63
64} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
void getEssentialBCValues(const double t, GlobalVector const &x, NumLib::IndexValueVector< GlobalIndexType > &bc_values) const override
Writes the values of essential BCs to bc_values.
DirichletBoundaryCondition(ParameterLib::Parameter< double > const &parameter, MeshLib::Mesh const &bc_mesh, NumLib::LocalToGlobalIndexMap const &dof_table_bulk, int const variable_id, int const component_id)
ParameterLib::Parameter< double > const & _parameter
std::unique_ptr< NumLib::LocalToGlobalIndexMap const > _dof_table_boundary
std::unique_ptr< DirichletBoundaryCondition > createDirichletBoundaryCondition(BaseLib::ConfigTree const &config, MeshLib::Mesh const &bc_mesh, NumLib::LocalToGlobalIndexMap const &dof_table_bulk, int const variable_id, int const component_id, const std::vector< std::unique_ptr< ParameterLib::ParameterBase > > &parameters)