OGS
ProcessLib::NormalTractionBoundaryCondition Namespace Reference

Classes

struct  IntegrationPointData
 
class  NormalTractionBoundaryCondition
 
class  NormalTractionBoundaryConditionLocalAssembler
 
class  NormalTractionBoundaryConditionLocalAssemblerInterface
 

Functions

template<int GlobalDim>
std::unique_ptr< NormalTractionBoundaryCondition< GlobalDim, NormalTractionBoundaryConditionLocalAssembler > > createNormalTractionBoundaryCondition (BaseLib::ConfigTree const &config, MeshLib::Mesh const &bc_mesh, NumLib::LocalToGlobalIndexMap const &dof_table, int const variable_id, unsigned const integration_order, unsigned const shapefunction_order, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 

Function Documentation

◆ createNormalTractionBoundaryCondition()

template<int GlobalDim>
std::unique_ptr< NormalTractionBoundaryCondition< GlobalDim, NormalTractionBoundaryConditionLocalAssembler > > ProcessLib::NormalTractionBoundaryCondition::createNormalTractionBoundaryCondition ( BaseLib::ConfigTree const & config,
MeshLib::Mesh const & bc_mesh,
NumLib::LocalToGlobalIndexMap const & dof_table,
int const variable_id,
unsigned const integration_order,
unsigned const shapefunction_order,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
prj__process_variables__process_variable__boundary_conditions__boundary_condition__type
Input File Parameter
prj__process_variables__process_variable__boundary_conditions__boundary_condition__NormalTraction__parameter

Definition at line 76 of file NormalTractionBoundaryCondition-impl.h.

81{
82 DBUG("Constructing NormalTractionBoundaryCondition from config.");
84 config.checkConfigParameter("type", "NormalTraction");
85
86 auto const parameter_name =
88 config.getConfigParameter<std::string>("parameter");
89 DBUG("Using parameter {:s}", parameter_name);
90
91 auto const& pressure = ParameterLib::findParameter<double>(
92 parameter_name, parameters, 1, &bc_mesh);
93 return std::make_unique<NormalTractionBoundaryCondition<
95 integration_order, shapefunction_order, dof_table, variable_id, bc_mesh,
96 pressure);
97}
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::getConfigParameter().