16 #ifndef _aspect_heating_model_interface_h
17 #define _aspect_heating_model_interface_h
27 #include <boost/core/demangle.hpp>
33 template <
int dim>
class SimulatorAccess;
40 namespace HeatingModel
61 const unsigned int n_comp);
249 const std::string &description,
262 const std::vector<std::string> &
273 const std::list<std::unique_ptr<Interface<dim>>> &
290 template <
typename HeatingModelType,
291 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,HeatingModelType>::value>>
312 template <
typename HeatingModelType,
313 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,HeatingModelType>::value>>
315 const HeatingModelType &
337 <<
"Could not find entry <"
339 <<
"> among the names of registered heating model objects.");
345 template <
typename HeatingModelType,
typename>
350 return this->
template has_matching_active_plugin<HeatingModelType>();
355 template <
typename HeatingModelType,
typename>
357 const HeatingModelType &
360 return this->
template get_matching_active_plugin<HeatingModelType>();
382 #define ASPECT_REGISTER_HEATING_MODEL(classname,name,description) \
383 template class classname<2>; \
384 template class classname<3>; \
385 namespace ASPECT_REGISTER_HEATING_MODEL_ ## classname \
387 aspect::internal::Plugins::RegisterHelper<aspect::HeatingModel::Interface<2>,classname<2>> \
388 dummy_ ## classname ## _2d (&aspect::HeatingModel::Manager<2>::register_heating_model, \
389 name, description); \
390 aspect::internal::Plugins::RegisterHelper<aspect::HeatingModel::Interface<3>,classname<3>> \
391 dummy_ ## classname ## _3d (&aspect::HeatingModel::Manager<3>::register_heating_model, \
392 name, description); \
virtual MaterialModel::MaterialProperties::Property get_required_properties() const
virtual void evaluate(const MaterialModel::MaterialModelInputs< dim > &material_model_inputs, const MaterialModel::MaterialModelOutputs< dim > &material_model_outputs, HeatingModel::HeatingModelOutputs &heating_model_outputs) const =0
virtual void create_additional_material_model_inputs(MaterialModel::MaterialModelInputs< dim > &inputs) const
virtual void create_additional_material_model_outputs(MaterialModel::MaterialModelOutputs< dim > &outputs) const
static void write_plugin_graph(std::ostream &output_stream)
virtual void create_additional_material_model_inputs_and_outputs(MaterialModel::MaterialModelInputs< dim > &material_model_inputs, MaterialModel::MaterialModelOutputs< dim > &material_model_outputs) const
void parse_parameters(ParameterHandler &prm) override
bool shear_heating_enabled() const
static void declare_parameters(ParameterHandler &prm)
DEAL_II_DEPRECATED bool has_matching_heating_model() const
DEAL_II_DEPRECATED const HeatingModelType & get_matching_heating_model() const
DeclException1(ExcHeatingModelNameNotFound, std::string,<< "Could not find entry <"<< arg1<< "> among the names of registered heating model objects.")
bool adiabatic_heating_enabled() const
void evaluate(const MaterialModel::MaterialModelInputs< dim > &material_model_inputs, const MaterialModel::MaterialModelOutputs< dim > &material_model_outputs, HeatingModel::HeatingModelOutputs &heating_model_outputs) const
DEAL_II_DEPRECATED const std::vector< std::string > & get_active_heating_model_names() const
DEAL_II_DEPRECATED const std::list< std::unique_ptr< Interface< dim > > > & get_active_heating_models() const
#define DEAL_II_DEPRECATED
static void register_heating_model(const std::string &name, const std::string &description, void(*declare_parameters_function)(ParameterHandler &), std::unique_ptr< Interface< dim >>(*factory_function)())
std::string get_valid_model_names_pattern()
std::vector< double > heating_source_terms
std::vector< double > rates_of_temperature_change
HeatingModelOutputs(const unsigned int n_points, const unsigned int n_comp)
std::vector< double > lhs_latent_heat_terms