22 #ifndef _aspect_boundary_temperature_interface_h 23 #define _aspect_boundary_temperature_interface_h 30 #include <deal.II/base/parameter_handler.h> 31 #include <deal.II/distributed/tria.h> 33 #include <boost/core/demangle.hpp> 39 template <
int dim>
class SimulatorAccess;
47 namespace BoundaryTemperature
57 class Interface :
public Plugins::InterfaceBase
73 double boundary_temperature (
const types::boundary_id boundary_indicator,
74 const Point<dim> &position)
const = 0;
84 double minimal_temperature (
const std::set<types::boundary_id> &fixed_boundary_ids
85 = std::set<types::boundary_id>())
const = 0;
95 double maximal_temperature (
const std::set<types::boundary_id> &fixed_boundary_ids
96 = std::set<types::boundary_id>())
const = 0;
106 class Manager :
public Plugins::ManagerBase<Interface<dim>>,
public SimulatorAccess<dim>
123 parse_parameters (ParameterHandler &prm)
override;
131 boundary_temperature (
const types::boundary_id boundary_indicator,
132 const Point<dim> &position)
const;
138 double minimal_temperature (
const std::set<types::boundary_id> &fixed_boundary_ids
139 = std::set<types::boundary_id>())
const;
145 double maximal_temperature (
const std::set<types::boundary_id> &fixed_boundary_ids
146 = std::set<types::boundary_id>())
const;
167 register_boundary_temperature (
const std::string &name,
168 const std::string &description,
169 void (*declare_parameters_function) (ParameterHandler &),
170 std::unique_ptr<Interface<dim>> (*factory_function) ());
181 const std::vector<std::string> &
182 get_active_boundary_temperature_names ()
const;
192 const std::list<std::unique_ptr<Interface<dim>>> &
193 get_active_boundary_temperature_conditions ()
const;
209 template <
typename BoundaryTemperatureType,
210 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,BoundaryTemperatureType>::value>>
213 has_matching_boundary_temperature_model ()
const;
231 template <
typename BoundaryTemperatureType,
232 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,BoundaryTemperatureType>::value>>
234 const BoundaryTemperatureType &
235 get_matching_boundary_temperature_model ()
const;
241 const std::set<types::boundary_id> &
242 get_fixed_temperature_boundary_indicators()
const;
249 allows_fixed_temperature_on_outflow_boundaries()
const;
270 <<
"Could not find entry <" 272 <<
"> among the names of registered boundary temperature objects.");
298 template <
typename BoundaryTemperatureType,
typename>
303 return this->
template has_matching_active_plugin<BoundaryTemperatureType>();
308 template <
typename BoundaryTemperatureType,
typename>
310 const BoundaryTemperatureType &
313 return this->
template get_matching_active_plugin<BoundaryTemperatureType>();
335 #define ASPECT_REGISTER_BOUNDARY_TEMPERATURE_MODEL(classname, name, description) \ 336 template class classname<2>; \ 337 template class classname<3>; \ 338 namespace ASPECT_REGISTER_BOUNDARY_TEMPERATURE_MODEL_ ## classname \ 340 aspect::internal::Plugins::RegisterHelper<aspect::BoundaryTemperature::Interface<2>,classname<2>> \ 341 dummy_ ## classname ## _2d (&aspect::BoundaryTemperature::Manager<2>::register_boundary_temperature, \ 342 name, description); \ 343 aspect::internal::Plugins::RegisterHelper<aspect::BoundaryTemperature::Interface<3>,classname<3>> \ 344 dummy_ ## classname ## _3d (&aspect::BoundaryTemperature::Manager<3>::register_boundary_temperature, \ 345 name, description); \ DEAL_II_DEPRECATED const BoundaryTemperatureType & get_matching_boundary_temperature_model() const
std::string get_valid_model_names_pattern()
DEAL_II_DEPRECATED bool has_matching_boundary_temperature_model() const
void write_plugin_graph(std::ostream &output_stream)
bool allow_fixed_temperature_on_outflow_boundaries
std::vector< aspect::Utilities::Operator > model_operators
void declare_parameters(ParameterHandler &prm)
std::set< types::boundary_id > fixed_temperature_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.")