Skip to content
Snippets Groups Projects
Commit 06313700 authored by Tom Fischer's avatar Tom Fischer
Browse files

[PL] Implementation of createConstraintDirichletBC.

parent a5f5c4e2
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "BoundaryCondition.h" #include "BoundaryCondition.h"
#include "BoundaryConditionConfig.h" #include "BoundaryConditionConfig.h"
#include "DirichletBoundaryCondition.h" #include "DirichletBoundaryCondition.h"
#include "ConstraintDirichletBoundaryCondition.h"
#include "NeumannBoundaryCondition.h" #include "NeumannBoundaryCondition.h"
#include "NonuniformDirichletBoundaryCondition.h" #include "NonuniformDirichletBoundaryCondition.h"
#include "NonuniformNeumannBoundaryCondition.h" #include "NonuniformNeumannBoundaryCondition.h"
...@@ -90,6 +91,19 @@ BoundaryConditionBuilder::createDirichletBoundaryCondition( ...@@ -90,6 +91,19 @@ BoundaryConditionBuilder::createDirichletBoundaryCondition(
*config.component_id, parameters); *config.component_id, parameters);
} }
std::unique_ptr<BoundaryCondition>
BoundaryConditionBuilder::createConstraintDirichletBoundaryCondition(
const BoundaryConditionConfig& config,
const NumLib::LocalToGlobalIndexMap& dof_table, const MeshLib::Mesh& mesh,
const int variable_id, const unsigned integration_order,
const std::vector<std::unique_ptr<ProcessLib::ParameterBase>>& parameters,
Process const& process)
{
return ProcessLib::createConstraintDirichletBoundaryCondition(
config.config, config.mesh, dof_table, variable_id, integration_order,
*config.component_id, parameters, process);
}
std::unique_ptr<BoundaryCondition> std::unique_ptr<BoundaryCondition>
BoundaryConditionBuilder::createNeumannBoundaryCondition( BoundaryConditionBuilder::createNeumannBoundaryCondition(
const BoundaryConditionConfig& config, const BoundaryConditionConfig& config,
......
...@@ -81,6 +81,16 @@ protected: ...@@ -81,6 +81,16 @@ protected:
const std::vector<std::unique_ptr<ProcessLib::ParameterBase>>& const std::vector<std::unique_ptr<ProcessLib::ParameterBase>>&
parameters); parameters);
virtual std::unique_ptr<BoundaryCondition>
createConstraintDirichletBoundaryCondition(
const BoundaryConditionConfig& config,
const NumLib::LocalToGlobalIndexMap& dof_table,
const MeshLib::Mesh& mesh, const int variable_id,
const unsigned integration_order,
const std::vector<std::unique_ptr<ProcessLib::ParameterBase>>&
parameters,
Process const& process);
virtual std::unique_ptr<BoundaryCondition> createNeumannBoundaryCondition( virtual std::unique_ptr<BoundaryCondition> createNeumannBoundaryCondition(
const BoundaryConditionConfig& config, const BoundaryConditionConfig& config,
const NumLib::LocalToGlobalIndexMap& dof_table, const NumLib::LocalToGlobalIndexMap& dof_table,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment