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;
218 n_components()
const;
354 initialize_one_particle_property (
const Point<dim> &position,
355 std::vector<double> &particle_properties)
const;
380 typename ParticleHandler<dim>::particle_iterator_range &particles)
const;
415 update_particle_property (
const unsigned int data_position,
417 const std::vector<Tensor<1,dim>> &
gradients,
418 typename ParticleHandler<dim>::particle_iterator &particle)
const;
435 need_update ()
const;
459 get_update_flags (
const unsigned int component)
const;
475 get_needed_update_flags ()
const;
493 late_initialization_mode ()
const;
509 std::vector<std::pair<std::string, unsigned int>>
510 get_property_information()
const = 0;
517 set_data_position (
const unsigned int data_position);
524 get_data_position ()
const;
554 initialize_one_particle_property (
const Point<dim> &position,
555 std::vector<double> &particle_properties)
const override;
564 std::vector<std::pair<std::string, unsigned int>>
565 get_property_information()
const override;
572 parse_parameters (ParameterHandler &prm)
override;
606 initialize_one_particle (
typename ParticleHandler<dim>::particle_iterator &particle)
const;
615 initialize_late_particle (
const Point<dim> &particle_location,
616 const ParticleHandler<dim> &particle_handler,
618 const typename parallel::distributed::Triangulation<dim>::active_cell_iterator &cell =
typename parallel::distributed::Triangulation<dim>::active_cell_iterator())
const;
634 typename ParticleHandler<dim>::particle_iterator_range &particles)
const;
648 need_update ()
const;
663 std::vector<UpdateFlags>
664 get_update_flags ()
const;
671 plugin_name_exists(
const std::string &name)
const;
683 check_plugin_order(
const std::string &first,
const std::string &second)
const;
688 unsigned int get_plugin_index_by_name(
const std::string &name)
const;
704 template <
typename ParticlePropertyType,
705 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,ParticlePropertyType>::value>>
708 has_matching_property ()
const;
726 template <
typename ParticlePropertyType,
727 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,ParticlePropertyType>::value>>
729 const ParticlePropertyType &
730 get_matching_property ()
const;
740 get_n_property_components ()
const;
751 get_particle_size ()
const;
760 get_data_info()
const;
782 register_particle_property (
const std::string &name,
783 const std::string &description,
784 void (*declare_parameters_function) (ParameterHandler &),
799 parse_parameters (ParameterHandler &prm)
override;
806 void set_particle_manager_index(
unsigned int particle_manager_index);
838 template <
typename ParticlePropertyType,
typename>
843 return this->
template has_matching_active_plugin<ParticlePropertyType>();
848 template <
typename ParticlePropertyType,
typename>
850 const ParticlePropertyType &
853 return this->
template get_matching_active_plugin<ParticlePropertyType>();
863 #define ASPECT_REGISTER_PARTICLE_PROPERTY(classname,name,description) \ 864 template class classname<2>; \ 865 template class classname<3>; \ 866 namespace ASPECT_REGISTER_PARTICLE_PROPERTY_ ## classname \ 868 aspect::internal::Plugins::RegisterHelper<aspect::Particle::Property::Interface<2>,classname<2>> \ 869 dummy_ ## classname ## _2d (&aspect::Particle::Property::Manager<2>::register_particle_property, \ 870 name, description); \ 871 aspect::internal::Plugins::RegisterHelper<aspect::Particle::Property::Interface<3>,classname<3>> \ 872 dummy_ ## classname ## _3d (&aspect::Particle::Property::Manager<3>::register_particle_property, \ 873 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)