22 #ifndef _aspect_heating_model_interface_h 23 #define _aspect_heating_model_interface_h 30 #include <deal.II/base/point.h> 31 #include <deal.II/base/parameter_handler.h> 33 #include <boost/core/demangle.hpp> 39 template <
int dim>
class SimulatorAccess;
46 namespace HeatingModel
67 const unsigned int n_comp);
178 adiabatic_heating_enabled()
const;
185 shear_heating_enabled()
const;
202 parse_parameters (ParameterHandler &prm)
override;
246 register_heating_model (
const std::string &name,
247 const std::string &description,
248 void (*declare_parameters_function) (ParameterHandler &),
260 const std::vector<std::string> &
261 get_active_heating_model_names ()
const;
271 const std::list<std::unique_ptr<Interface<dim>>> &
272 get_active_heating_models ()
const;
288 template <
typename HeatingModelType,
289 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,HeatingModelType>::value>>
292 has_matching_heating_model ()
const;
310 template <
typename HeatingModelType,
311 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,HeatingModelType>::value>>
313 const HeatingModelType &
314 get_matching_heating_model ()
const;
335 <<
"Could not find entry <" 337 <<
"> among the names of registered heating model objects.");
343 template <
typename HeatingModelType,
typename>
348 return this->
template has_matching_active_plugin<HeatingModelType>();
353 template <
typename HeatingModelType,
typename>
355 const HeatingModelType &
358 return this->
template get_matching_active_plugin<HeatingModelType>();
380 #define ASPECT_REGISTER_HEATING_MODEL(classname,name,description) \ 381 template class classname<2>; \ 382 template class classname<3>; \ 383 namespace ASPECT_REGISTER_HEATING_MODEL_ ## classname \ 385 aspect::internal::Plugins::RegisterHelper<aspect::HeatingModel::Interface<2>,classname<2>> \ 386 dummy_ ## classname ## _2d (&aspect::HeatingModel::Manager<2>::register_heating_model, \ 387 name, description); \ 388 aspect::internal::Plugins::RegisterHelper<aspect::HeatingModel::Interface<3>,classname<3>> \ 389 dummy_ ## classname ## _3d (&aspect::HeatingModel::Manager<3>::register_heating_model, \ 390 name, description); \
std::vector< double > heating_source_terms
std::vector< double > rates_of_temperature_change
DEAL_II_DEPRECATED bool has_matching_heating_model() const
DEAL_II_DEPRECATED const HeatingModelType & get_matching_heating_model() const
void write_plugin_graph(std::ostream &output_stream)
std::string get_valid_model_names_pattern()
HeatingModelOutputs(const unsigned int n_points, const unsigned int n_comp)
std::vector< double > lhs_latent_heat_terms
void declare_parameters(ParameterHandler &prm)
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.")