22 #ifndef _aspect_boundary_composition_interface_h 23 #define _aspect_boundary_composition_interface_h 30 #include <deal.II/base/parameter_handler.h> 31 #include <deal.II/distributed/tria.h> 33 #include <boost/core/demangle.hpp> 45 namespace BoundaryComposition
55 class Interface :
public Plugins::InterfaceBase
74 boundary_composition (
const types::boundary_id boundary_indicator,
75 const Point<dim> &position,
76 const unsigned int compositional_field)
const = 0;
85 class Manager :
public Plugins::ManagerBase<Interface<dim>>,
public SimulatorAccess<dim>
102 parse_parameters (ParameterHandler &prm)
override;
110 boundary_composition (
const types::boundary_id boundary_indicator,
111 const Point<dim> &position,
112 const unsigned int compositional_field)
const;
133 register_boundary_composition (
const std::string &name,
134 const std::string &description,
135 void (*declare_parameters_function) (ParameterHandler &),
136 std::unique_ptr<Interface<dim>> (*factory_function) ());
147 const std::vector<std::string> &
148 get_active_boundary_composition_names ()
const;
158 const std::list<std::unique_ptr<Interface<dim>>> &
159 get_active_boundary_composition_conditions ()
const;
175 template <
typename BoundaryCompositionType,
176 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,BoundaryCompositionType>::value>>
179 has_matching_boundary_composition_model ()
const;
197 template <
typename BoundaryCompositionType,
198 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,BoundaryCompositionType>::value>>
200 const BoundaryCompositionType &
201 get_matching_boundary_composition_model ()
const;
207 const std::set<types::boundary_id> &
208 get_fixed_composition_boundary_indicators()
const;
215 allows_fixed_composition_on_outflow_boundaries()
const;
236 <<
"Could not find entry <" 238 <<
"> among the names of registered boundary composition objects.");
264 template <
typename BoundaryCompositionType,
typename>
269 return this->
template has_matching_active_plugin<BoundaryCompositionType>();
275 template <
typename BoundaryCompositionType,
typename>
277 const BoundaryCompositionType &
280 return this->
template get_matching_active_plugin<BoundaryCompositionType>();
303 #define ASPECT_REGISTER_BOUNDARY_COMPOSITION_MODEL(classname, name, description) \ 304 template class classname<2>; \ 305 template class classname<3>; \ 306 namespace ASPECT_REGISTER_BOUNDARY_COMPOSITION_MODEL_ ## classname \ 308 aspect::internal::Plugins::RegisterHelper<aspect::BoundaryComposition::Interface<2>,classname<2>> \ 309 dummy_ ## classname ## _2d (&aspect::BoundaryComposition::Manager<2>::register_boundary_composition, \ 310 name, description); \ 311 aspect::internal::Plugins::RegisterHelper<aspect::BoundaryComposition::Interface<3>,classname<3>> \ 312 dummy_ ## classname ## _3d (&aspect::BoundaryComposition::Manager<3>::register_boundary_composition, \ 313 name, description); \ std::vector< aspect::Utilities::Operator > model_operators
void write_plugin_graph(std::ostream &output_stream)
DEAL_II_DEPRECATED bool has_matching_boundary_composition_model() const
bool allow_fixed_composition_on_outflow_boundaries
DEAL_II_DEPRECATED const BoundaryCompositionType & get_matching_boundary_composition_model() const
void declare_parameters(ParameterHandler &prm)
std::string get_valid_model_names_pattern()
std::set< types::boundary_id > fixed_composition_boundary_indicators
DeclException1(ProbabilityFunctionNegative, Point< dim >,<< "Your probability density function in the particle generator " "returned a negative probability density for the following position: "<< arg1<< ". Please check your function expression.")