21 #ifndef _aspect_particle_property_interface_h 22 #define _aspect_particle_property_interface_h 30 #include <deal.II/particles/particle.h> 31 #include <deal.II/particles/particle_handler.h> 32 #include <deal.II/particles/property_pool.h> 33 #include <deal.II/fe/fe_update_flags.h> 43 using namespace ::Particles;
64 std::vector<small_vector<Tensor<1,dim>,50>>
gradients;
136 fieldname_exists(
const std::string &name)
const;
142 get_field_index_by_name(
const std::string &name)
const;
148 get_field_name_by_index(
const unsigned int field_index)
const;
155 get_position_by_field_name(
const std::string &name)
const;
162 get_components_by_field_name(
const std::string &name)
const;
170 get_position_by_field_index(
const unsigned int field_index)
const;
177 get_components_by_field_index(
const unsigned int field_index)
const;
185 get_position_by_plugin_index(
const unsigned int plugin_index)
const;
192 get_components_by_plugin_index(
const unsigned int plugin_index)
const;
199 get_fields_by_plugin_index(
const unsigned int plugin_index)
const;
205 std::vector<std::string>
206 get_property_names()
const;
224 n_components()
const;
360 initialize_one_particle_property (
const Point<dim> &position,
361 std::vector<double> &particle_properties)
const;
386 typename ParticleHandler<dim>::particle_iterator_range &particles)
const;
421 update_particle_property (
const unsigned int data_position,
423 const std::vector<Tensor<1,dim>> &
gradients,
424 typename ParticleHandler<dim>::particle_iterator &particle)
const;
441 need_update ()
const;
465 get_update_flags (
const unsigned int component)
const;
481 get_needed_update_flags ()
const;
499 late_initialization_mode ()
const;
515 std::vector<std::pair<std::string, unsigned int>>
516 get_property_information()
const = 0;
523 set_data_position (
const unsigned int data_position);
530 get_data_position ()
const;
560 initialize_one_particle_property (
const Point<dim> &position,
561 std::vector<double> &particle_properties)
const override;
570 std::vector<std::pair<std::string, unsigned int>>
571 get_property_information()
const override;
578 parse_parameters (ParameterHandler &prm)
override;
612 initialize_one_particle (
typename ParticleHandler<dim>::particle_iterator &particle)
const;
621 initialize_late_particle (
const Point<dim> &particle_location,
622 const ParticleHandler<dim> &particle_handler,
624 const typename parallel::distributed::Triangulation<dim>::active_cell_iterator &cell =
typename parallel::distributed::Triangulation<dim>::active_cell_iterator())
const;
640 typename ParticleHandler<dim>::particle_iterator_range &particles)
const;
654 need_update ()
const;
669 std::vector<UpdateFlags>
670 get_update_flags ()
const;
677 plugin_name_exists(
const std::string &name)
const;
689 check_plugin_order(
const std::string &first,
const std::string &second)
const;
694 unsigned int get_plugin_index_by_name(
const std::string &name)
const;
710 template <
typename ParticlePropertyType,
711 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,ParticlePropertyType>::value>>
714 has_matching_property ()
const;
732 template <
typename ParticlePropertyType,
733 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,ParticlePropertyType>::value>>
735 const ParticlePropertyType &
736 get_matching_property ()
const;
746 get_n_property_components ()
const;
757 get_particle_size ()
const;
766 get_data_info()
const;
788 register_particle_property (
const std::string &name,
789 const std::string &description,
790 void (*declare_parameters_function) (ParameterHandler &),
805 parse_parameters (ParameterHandler &prm)
override;
812 void set_particle_manager_index(
unsigned int particle_manager_index);
844 template <
typename ParticlePropertyType,
typename>
849 return this->
template has_matching_active_plugin<ParticlePropertyType>();
854 template <
typename ParticlePropertyType,
typename>
856 const ParticlePropertyType &
859 return this->
template get_matching_active_plugin<ParticlePropertyType>();
869 #define ASPECT_REGISTER_PARTICLE_PROPERTY(classname,name,description) \ 870 template class classname<2>; \ 871 template class classname<3>; \ 872 namespace ASPECT_REGISTER_PARTICLE_PROPERTY_ ## classname \ 874 aspect::internal::Plugins::RegisterHelper<aspect::Particle::Property::Interface<2>,classname<2>> \ 875 dummy_ ## classname ## _2d (&aspect::Particle::Property::Manager<2>::register_particle_property, \ 876 name, description); \ 877 aspect::internal::Plugins::RegisterHelper<aspect::Particle::Property::Interface<3>,classname<3>> \ 878 dummy_ ## classname ## _3d (&aspect::Particle::Property::Manager<3>::register_particle_property, \ 879 name, description); \ std::vector< unsigned int > position_per_field
DoFHandler< dim >::active_cell_iterator current_cell
DEAL_II_DEPRECATED const ParticlePropertyType & get_matching_property() const
ParticlePropertyInformation property_information
std::vector< small_vector< Tensor< 1, dim >, 50 > > gradients
std::vector< unsigned int > components_per_plugin
void write_plugin_graph(std::ostream &output_stream)
InitializationModeForLateParticles
std::vector< std::string > field_names
std::vector< unsigned int > components_per_field
unsigned int n_integrator_properties
unsigned int number_of_components
unsigned int number_of_plugins
std::vector< small_vector< double, 50 > > solution
std::vector< unsigned int > fields_per_plugin
unsigned int particle_manager_index
DEAL_II_DEPRECATED bool has_matching_property() const
unsigned int number_of_fields
std::vector< unsigned int > position_per_plugin
unsigned int data_position
void declare_parameters(ParameterHandler &prm)