![]() |
OGS
|
|
The DirichletBoundaryCondition class describes a constant in space and time Dirichlet boundary condition. The expected parameter in the passed configuration is "value" which, when not present defaults to zero.
Definition at line 28 of file DirichletBoundaryCondition.h.
#include <DirichletBoundaryCondition.h>
Public Member Functions | |
| DirichletBoundaryCondition (ParameterLib::Parameter< double > const ¶meter, MeshLib::Mesh const &bc_mesh, NumLib::LocalToGlobalIndexMap const &dof_table_bulk, int const variable_id, int const component_id) | |
| void | getEssentialBCValues (const double t, GlobalVector const &x, NumLib::IndexValueVector< GlobalIndexType > &bc_values) const override |
Writes the values of essential BCs to bc_values. | |
| Public Member Functions inherited from ProcessLib::BoundaryCondition | |
| virtual void | applyNaturalBC (const double, std::vector< GlobalVector * > const &, int const, GlobalMatrix *, GlobalVector &, GlobalMatrix *) |
| virtual void | preTimestep (const double, std::vector< GlobalVector * > const &, int const) |
| virtual void | postTimestep (const double, std::vector< GlobalVector * > const &, int const) |
| virtual | ~BoundaryCondition ()=default |
Private Attributes | |
| ParameterLib::Parameter< double > const & | _parameter |
| MeshLib::Mesh const & | _bc_mesh |
| std::unique_ptr< NumLib::LocalToGlobalIndexMap const > | _dof_table_boundary |
| int const | _variable_id |
| int const | _component_id |
| ProcessLib::DirichletBoundaryCondition::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 ) |
Definition at line 19 of file DirichletBoundaryCondition.cpp.
References _bc_mesh, _component_id, _dof_table_boundary, _parameter, _variable_id, ProcessLib::checkParametersOfDirichletBoundaryCondition(), and NumLib::LocalToGlobalIndexMap::deriveBoundaryConstrainedMap().
|
overridevirtual |
Writes the values of essential BCs to bc_values.
Reimplemented from ProcessLib::BoundaryCondition.
Definition at line 41 of file DirichletBoundaryCondition.cpp.
References _bc_mesh, _component_id, _dof_table_boundary, _parameter, _variable_id, and ProcessLib::getEssentialBCValuesLocal().
|
private |
Definition at line 44 of file DirichletBoundaryCondition.h.
Referenced by DirichletBoundaryCondition(), and getEssentialBCValues().
|
private |
Definition at line 47 of file DirichletBoundaryCondition.h.
Referenced by DirichletBoundaryCondition(), and getEssentialBCValues().
|
private |
Definition at line 45 of file DirichletBoundaryCondition.h.
Referenced by DirichletBoundaryCondition(), and getEssentialBCValues().
|
private |
Definition at line 42 of file DirichletBoundaryCondition.h.
Referenced by DirichletBoundaryCondition(), and getEssentialBCValues().
|
private |
Definition at line 46 of file DirichletBoundaryCondition.h.
Referenced by DirichletBoundaryCondition(), and getEssentialBCValues().