15 #ifndef _aspect_particle_property_interface_h 16 #define _aspect_particle_property_interface_h 59 std::vector<small_vector<Tensor<1,dim>,50>>
gradients;
131 fieldname_exists(
const std::string &name)
const;
137 get_field_index_by_name(
const std::string &name)
const;
143 get_field_name_by_index(
const unsigned int field_index)
const;
150 get_position_by_field_name(
const std::string &name)
const;
157 get_components_by_field_name(
const std::string &name)
const;
165 get_position_by_field_index(
const unsigned int field_index)
const;
172 get_components_by_field_index(
const unsigned int field_index)
const;
180 get_position_by_plugin_index(
const unsigned int plugin_index)
const;
187 get_components_by_plugin_index(
const unsigned int plugin_index)
const;
194 get_fields_by_plugin_index(
const unsigned int plugin_index)
const;
200 std::vector<std::string>
201 get_property_names()
const;
219 n_components()
const;
355 initialize_one_particle_property (
const Point<dim> &position,
356 std::vector<double> &particle_properties)
const;
416 update_particle_property (
const unsigned int data_position,
436 need_update ()
const;
460 get_update_flags (
const unsigned int component)
const;
476 get_needed_update_flags ()
const;
494 late_initialization_mode ()
const;
505 advection_field_for_boundary_initialization(
const unsigned int property_component)
const;
521 std::vector<std::pair<std::string, unsigned int>>
522 get_property_information()
const = 0;
529 set_data_position (
const unsigned int data_position);
536 get_data_position ()
const;
566 initialize_one_particle_property (
const Point<dim> &position,
567 std::vector<double> &particle_properties)
const override;
576 std::vector<std::pair<std::string, unsigned int>>
577 get_property_information()
const override;
627 initialize_late_particle (
const Point<dim> &particle_location,
628 const ParticleHandler<dim> &particle_handler,
660 need_update ()
const;
675 std::vector<UpdateFlags>
676 get_update_flags ()
const;
683 plugin_name_exists(
const std::string &name)
const;
695 check_plugin_order(
const std::string &
first,
const std::string &
second)
const;
700 unsigned int get_plugin_index_by_name(
const std::string &name)
const;
716 template <
typename ParticlePropertyType,
717 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,ParticlePropertyType>::value>>
720 has_matching_property ()
const;
738 template <
typename ParticlePropertyType,
739 typename =
typename std::enable_if_t<std::is_base_of<Interface<dim>,ParticlePropertyType>::value>>
741 const ParticlePropertyType &
742 get_matching_property ()
const;
752 get_n_property_components ()
const;
763 get_particle_size ()
const;
772 get_data_info()
const;
794 register_particle_property (
const std::string &name,
795 const std::string &description,
818 void set_particle_manager_index(
unsigned int particle_manager_index);
850 template <
typename ParticlePropertyType,
typename>
855 return this->
template has_matching_active_plugin<ParticlePropertyType>();
860 template <
typename ParticlePropertyType,
typename>
862 const ParticlePropertyType &
865 return this->
template get_matching_active_plugin<ParticlePropertyType>();
875 #define ASPECT_REGISTER_PARTICLE_PROPERTY(classname,name,description) \ 876 template class classname<2>; \ 877 template class classname<3>; \ 878 namespace ASPECT_REGISTER_PARTICLE_PROPERTY_ ## classname \ 880 aspect::internal::Plugins::RegisterHelper<aspect::Particle::Property::Interface<2>,classname<2>> \ 881 dummy_ ## classname ## _2d (&aspect::Particle::Property::Manager<2>::register_particle_property, \ 882 name, description); \ 883 aspect::internal::Plugins::RegisterHelper<aspect::Particle::Property::Interface<3>,classname<3>> \ 884 dummy_ ## classname ## _3d (&aspect::Particle::Property::Manager<3>::register_particle_property, \ 885 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
typename ::Triangulation< dim, spacedim >::active_cell_iterator active_cell_iterator
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
boost::iterator_range< particle_iterator > particle_iterator_range
ParticleIterator< dim, spacedim > particle_iterator
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)
#define DEAL_II_DEPRECATED