22 #ifndef _aspect_boundary_traction_interface_h 23 #define _aspect_boundary_traction_interface_h 28 #include <deal.II/base/point.h> 29 #include <deal.II/base/parameter_handler.h> 39 namespace BoundaryTraction
49 class Interface :
public Plugins::InterfaceBase
68 boundary_traction (
const types::boundary_id boundary_indicator,
69 const Point<dim> &position,
70 const Tensor<1,dim> &normal_vector)
const = 0;
74 class Manager :
public SimulatorAccess<dim>
102 boundary_traction (
const types::boundary_id boundary_indicator,
103 const Point<dim> &position,
104 const Tensor<1,dim> &normal_vector)
const;
118 const std::map<types::boundary_id, std::pair<std::string,std::vector<std::string>>> &
119 get_active_boundary_traction_names ()
const;
130 const std::map<types::boundary_id,std::vector<std::unique_ptr<BoundaryTraction::Interface<dim>>>> &
131 get_active_boundary_traction_conditions ()
const;
147 parse_parameters (ParameterHandler &prm);
168 <<
"Could not find entry <" 170 <<
"> among the names of registered boundary traction objects.");
190 register_boundary_traction (
const std::string &name,
191 const std::string &description,
192 void (*declare_parameters_function) (ParameterHandler &),
193 std::unique_ptr<Interface<dim>> (*factory_function) ());
225 std::unique_ptr<Interface<dim>>
270 #define ASPECT_REGISTER_BOUNDARY_TRACTION_MODEL(classname,name,description) \ 271 template class classname<2>; \ 272 template class classname<3>; \ 273 namespace ASPECT_REGISTER_BOUNDARY_TRACTION_MODEL_ ## classname \ 275 aspect::internal::Plugins::RegisterHelper<aspect::BoundaryTraction::Interface<2>,classname<2>> \ 276 dummy_ ## classname ## _2d (&aspect::BoundaryTraction::Manager<2>::register_boundary_traction, \ 277 name, description); \ 278 aspect::internal::Plugins::RegisterHelper<aspect::BoundaryTraction::Interface<3>,classname<3>> \ 279 dummy_ ## classname ## _3d (&aspect::BoundaryTraction::Manager<3>::register_boundary_traction, \ 280 name, description); \ std::unique_ptr< Interface< dim > > create_boundary_traction(const std::string &name)
void write_plugin_graph(std::ostream &output_stream)
void declare_parameters(ParameterHandler &prm)
std::map< types::boundary_id, std::pair< std::string, std::vector< std::string > > > boundary_traction_indicators
std::map< types::boundary_id, std::vector< std::unique_ptr< BoundaryTraction::Interface< dim > > > > boundary_traction_objects
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.")