22 #ifndef _aspect_heating_model_interface_h
23 #define _aspect_heating_model_interface_h
33 #include <boost/core/demangle.hpp>
39 template <
int dim>
class SimulatorAccess;
46 namespace HeatingModel
67 const unsigned int n_comp);
255 const std::string &description,
268 const std::vector<std::string> &
279 const std::list<std::unique_ptr<Interface<dim>>> &
296 template <
typename HeatingModelType,
297 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,HeatingModelType>::value>>
318 template <
typename HeatingModelType,
319 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,HeatingModelType>::value>>
321 const HeatingModelType &
343 <<
"Could not find entry <"
345 <<
"> among the names of registered heating model objects.");
351 template <
typename HeatingModelType,
typename>
356 return this->
template has_matching_active_plugin<HeatingModelType>();
361 template <
typename HeatingModelType,
typename>
363 const HeatingModelType &
366 return this->
template get_matching_active_plugin<HeatingModelType>();
388 #define ASPECT_REGISTER_HEATING_MODEL(classname,name,description) \
389 template class classname<2>; \
390 template class classname<3>; \
391 namespace ASPECT_REGISTER_HEATING_MODEL_ ## classname \
393 aspect::internal::Plugins::RegisterHelper<aspect::HeatingModel::Interface<2>,classname<2>> \
394 dummy_ ## classname ## _2d (&aspect::HeatingModel::Manager<2>::register_heating_model, \
395 name, description); \
396 aspect::internal::Plugins::RegisterHelper<aspect::HeatingModel::Interface<3>,classname<3>> \
397 dummy_ ## classname ## _3d (&aspect::HeatingModel::Manager<3>::register_heating_model, \
398 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