![]() |
ASPECT
|
Public Member Functions | |
void | initialize_one_particle_property (const Point< dim > &position, std::vector< double > &particle_properties) const override |
virtual void | update_particle_property (const unsigned int data_position, const Vector< double > &solution, const std::vector< Tensor< 1, dim >> &gradients, typename ParticleHandler< dim >::particle_iterator &particle) const override |
UpdateTimeFlags | need_update () const override |
std::vector< std::pair< std::string, unsigned int > > | get_property_information () const override |
![]() | |
virtual | ~Interface ()=default |
virtual void | initialize () |
virtual DEAL_II_DEPRECATED void | update_one_particle_property (const unsigned int data_position, const Point< dim > &position, const Vector< double > &solution, const std::vector< Tensor< 1, dim >> &gradients, const ArrayView< double > &particle_properties) const |
virtual UpdateFlags | get_needed_update_flags () const |
virtual InitializationModeForLateParticles | late_initialization_mode () const |
virtual void | parse_parameters (ParameterHandler &prm) |
Additional Inherited Members | |
![]() | |
static void | declare_parameters (ParameterHandler &prm) |
A class that sets particle properties to the current position.
Definition at line 38 of file reference_position.h.
|
overridevirtual |
Initialization function. This function is called once at the creation of every particle for every property to initialize its value.
[in] | position | The current particle reference position. |
[in,out] | particle_properties | The properties of the particle that is initialized within the call of this function. The purpose of this function should be to extend this vector by a number of properties. |
Reimplemented from aspect::Particle::Property::Interface< dim >.
|
overridevirtual |
Update function. This function is called every time an update is request by need_update() for every particle for every property. It is obvious that this function is called a lot, so its code should be efficient. The interface provides a default implementation that does nothing, therefore derived plugins that do not require an update do not need to implement this function.
[in] | data_position | An unsigned integer that denotes which component of the particle property vector is associated with the current property. For properties that own several components it denotes the first component of this property, all other components fill consecutive entries in the particle_properties vector. |
[in] | solution | The values of the solution variables at the current particle position. |
[in] | gradients | The gradients of the solution variables at the current particle position. |
[in,out] | particle | The particle that is updated within the call of this function. The particle location can be accessed using particle->get_location() and its properties using particle->get_properties(). |
Reimplemented from aspect::Particle::Property::Interface< dim >.
|
overridevirtual |
This implementation tells the particle manager that we need to update particle properties over time.
Reimplemented from aspect::Particle::Property::Interface< dim >.
|
overridevirtual |
Set up the information about the names and number of components this property requires.
Implements aspect::Particle::Property::Interface< dim >.