18 DBUG(
"{}: parameter {:s}", __FUNCTION__, name);
20 auto const area_parameter_name =
23 if (area_parameter_name.has_value())
25 DBUG(
"{}: area parameter name '{:s}'", __FUNCTION__,
26 area_parameter_name.value());
29 return {name, area_parameter_name};
35 int const component_id,
unsigned const integration_order,
36 unsigned const shapefunction_order,
unsigned const global_dim,
37 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters)
39 DBUG(
"Constructing Neumann BC.");
63 OGS_FATAL(
"{}: tag <area_parameter> required in Neumann BC.",
73 "The dimension ({:d}) of the given boundary mesh '{:s}' is not "
74 "lower than the bulk dimension ({:d}).",
78 return std::make_unique<NeumannBoundaryCondition>(
79 integration_order, shapefunction_order, dof_table, variable_id,
80 component_id, global_dim, bc_mesh,
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
std::optional< T > getConfigParameterOptional(std::string const ¶m) const
T getConfigParameter(std::string const ¶m) const
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
unsigned getDimension() const
Returns the dimension of the mesh (determined by the maximum dimension over all elements).
const std::string getName() const
Get name of the mesh.
std::size_t getNumberOfNodes() const
Get the number of nodes.
std::size_t getNumberOfElements() const
Get the number of elements.
OGS_NO_DANGLING Parameter< ParameterDataType > & findParameter(std::string const ¶meter_name, std::vector< std::unique_ptr< ParameterBase > > const ¶meters, int const num_components, MeshLib::Mesh const *const mesh=nullptr)
std::unique_ptr< NeumannBoundaryCondition > createNeumannBoundaryCondition(NeumannBoundaryConditionConfig const &config, MeshLib::Mesh const &bc_mesh, NumLib::LocalToGlobalIndexMap const &dof_table, int const variable_id, int const component_id, unsigned const integration_order, unsigned const shapefunction_order, unsigned const global_dim, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters)
NeumannBoundaryConditionConfig parseNeumannBoundaryCondition(BaseLib::ConfigTree const &config)
std::string parameter_name
std::optional< std::string > area_parameter_name