ASPECT
velocity_gradient.h
Go to the documentation of this file.
1 // ------------------------------------------------------
2 //
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 //
5 // SPDX-FileCopyrightText: Copyright (C) 2015-2025 by the ASPECT authors.
6 //
7 // This file is part of ASPECT.
8 //
9 // Detailed license information governing the source code and
10 // contributions can be found in the folder LICENSES and in
11 // LICENSE and CONTRIBUTING.md at the top level directory.
12 //
13 // ------------------------------------------------------
14 
15 #ifndef _aspect_particle_property_velocity_gradient_h
16 #define _aspect_particle_property_velocity_gradient_h
17 
20 
21 namespace aspect
22 {
23  namespace Particle
24  {
25  namespace Property
26  {
32  template <int dim>
33  class VelocityGradient : public Interface<dim>, public ::aspect::SimulatorAccess<dim>
34  {
35  public:
47  void
49  std::vector<double> &particle_properties) const override;
50 
54  virtual
55  void
56  update_particle_property (const unsigned int data_position,
57  const Vector<double> &solution,
58  const std::vector<Tensor<1,dim>> &gradients,
59  typename ParticleHandler<dim>::particle_iterator &particle) const override;
60 
66  need_update () const override;
67 
74  get_needed_update_flags () const override;
75 
83  std::vector<std::pair<std::string, unsigned int>>
84  get_property_information() const override;
85  };
86  }
87  }
88 }
89 
90 #endif
UpdateFlags get_needed_update_flags() const override
std::vector< std::pair< std::string, unsigned int > > get_property_information() const override
UpdateTimeFlags need_update() const override
UpdateFlags
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
void initialize_one_particle_property(const Point< dim > &position, std::vector< double > &particle_properties) const override
ParticleIterator< dim, spacedim > particle_iterator