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 34 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 26 of file DirichletBoundaryCondition.cpp.
References _bc_mesh, _component_id, _dof_table_boundary, _variable_id, ProcessLib::checkParametersOfDirichletBoundaryCondition(), NumLib::LocalToGlobalIndexMap::deriveBoundaryConstrainedMap(), and MeshLib::Mesh::getNodes().
|
overridevirtual |
Writes the values of essential BCs to bc_values
.
Reimplemented from ProcessLib::BoundaryCondition.
Definition at line 48 of file DirichletBoundaryCondition.cpp.
References _bc_mesh, _component_id, _dof_table_boundary, _parameter, _variable_id, and ProcessLib::getEssentialBCValuesLocal().
|
private |
Definition at line 50 of file DirichletBoundaryCondition.h.
Referenced by DirichletBoundaryCondition(), and getEssentialBCValues().
|
private |
Definition at line 53 of file DirichletBoundaryCondition.h.
Referenced by DirichletBoundaryCondition(), and getEssentialBCValues().
|
private |
Definition at line 51 of file DirichletBoundaryCondition.h.
Referenced by DirichletBoundaryCondition(), and getEssentialBCValues().
|
private |
Definition at line 48 of file DirichletBoundaryCondition.h.
Referenced by getEssentialBCValues().
|
private |
Definition at line 52 of file DirichletBoundaryCondition.h.
Referenced by DirichletBoundaryCondition(), and getEssentialBCValues().