22 #ifndef _aspect_initial_temperature_interface_h 23 #define _aspect_initial_temperature_interface_h 29 #include <deal.II/base/point.h> 30 #include <deal.II/base/parameter_handler.h> 32 #include <boost/core/demangle.hpp> 38 template <
int dim>
class SimulatorAccess;
46 namespace InitialTemperature
56 class Interface :
public Plugins::InterfaceBase
63 double initial_temperature (
const Point<dim> &position)
const = 0;
73 class Manager :
public Plugins::ManagerBase<Interface<dim>>,
public SimulatorAccess<dim>
90 parse_parameters (ParameterHandler &prm)
override;
98 initial_temperature (
const Point<dim> &position)
const;
119 register_initial_temperature (
const std::string &name,
120 const std::string &description,
121 void (*declare_parameters_function) (ParameterHandler &),
122 std::unique_ptr<Interface<dim>> (*factory_function) ());
133 const std::vector<std::string> &
134 get_active_initial_temperature_names ()
const;
144 const std::list<std::unique_ptr<Interface<dim>>> &
145 get_active_initial_temperature_conditions ()
const;
161 template <
typename InitialTemperatureType,
162 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,InitialTemperatureType>::value>>
165 has_matching_initial_temperature_model ()
const;
183 template <
typename InitialTemperatureType,
184 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,InitialTemperatureType>::value>>
186 const InitialTemperatureType &
187 get_matching_initial_temperature_model ()
const;
208 <<
"Could not find entry <" 210 <<
"> among the names of registered initial temperature objects.");
224 template <
typename InitialTemperatureType,
typename>
229 return this->
template has_matching_active_plugin<InitialTemperatureType>();
234 template <
typename InitialTemperatureType,
typename>
236 const InitialTemperatureType &
239 return this->
template get_matching_active_plugin<InitialTemperatureType>();
262 #define ASPECT_REGISTER_INITIAL_TEMPERATURE_MODEL(classname,name,description) \ 263 template class classname<2>; \ 264 template class classname<3>; \ 265 namespace ASPECT_REGISTER_INITIAL_TEMPERATURE_MODEL_ ## classname \ 267 aspect::internal::Plugins::RegisterHelper<aspect::InitialTemperature::Interface<2>,classname<2>> \ 268 dummy_ ## classname ## _2d (&aspect::InitialTemperature::Manager<2>::register_initial_temperature, \ 269 name, description); \ 270 aspect::internal::Plugins::RegisterHelper<aspect::InitialTemperature::Interface<3>,classname<3>> \ 271 dummy_ ## classname ## _3d (&aspect::InitialTemperature::Manager<3>::register_initial_temperature, \ 272 name, description); \
std::string get_valid_model_names_pattern()
void write_plugin_graph(std::ostream &output_stream)
DEAL_II_DEPRECATED bool has_matching_initial_temperature_model() const
std::vector< aspect::Utilities::Operator > model_operators
DEAL_II_DEPRECATED const InitialTemperatureType & get_matching_initial_temperature_model() const
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.")