22 #ifndef _aspect_adiabatic_conditions_interface_h 23 #define _aspect_adiabatic_conditions_interface_h 28 #include <deal.II/base/parameter_handler.h> 29 #include <deal.II/distributed/tria.h> 40 namespace AdiabaticConditions
55 class Interface:
public SimulatorAccess<dim>,
public Plugins::InterfaceBase
67 is_initialized ()
const = 0;
79 double pressure (
const Point<dim> &p)
const = 0;
85 double density (
const Point<dim> &p)
const = 0;
92 double density_derivative (
const Point<dim> &p)
const = 0;
107 void get_adiabatic_temperature_profile(std::vector<double> &values)
const;
117 void get_adiabatic_pressure_profile(std::vector<double> &values)
const;
127 void get_adiabatic_density_profile(std::vector<double> &values)
const;
137 void get_adiabatic_density_derivative_profile(std::vector<double> &values)
const;
159 const std::string &description,
160 void (*declare_parameters_function) (ParameterHandler &),
161 std::unique_ptr<Interface<dim>> (*factory_function) ());
174 std::unique_ptr<Interface<dim>>
210 #define ASPECT_REGISTER_ADIABATIC_CONDITIONS_MODEL(classname, name, description) \ 211 template class classname<2>; \ 212 template class classname<3>; \ 213 namespace ASPECT_REGISTER_ADIABATIC_CONDITIONS_MODEL_ ## classname \ 215 aspect::internal::Plugins::RegisterHelper<aspect::AdiabaticConditions::Interface<2>,classname<2>> \ 216 dummy_ ## classname ## _2d (&aspect::AdiabaticConditions::register_adiabatic_conditions<2>, \ 217 name, description); \ 218 aspect::internal::Plugins::RegisterHelper<aspect::AdiabaticConditions::Interface<3>,classname<3>> \ 219 dummy_ ## classname ## _3d (&aspect::AdiabaticConditions::register_adiabatic_conditions<3>, \ 220 name, description); \ void write_plugin_graph(std::ostream &output_stream)
void register_adiabatic_conditions(const std::string &name, const std::string &description, void(*declare_parameters_function)(ParameterHandler &), std::unique_ptr< Interface< dim >>(*factory_function)())
std::unique_ptr< Interface< dim > > create_adiabatic_conditions(ParameterHandler &prm)
void declare_parameters(ParameterHandler &prm)