ASPECT
euler.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-2024 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_integrator_euler_h
16 #define _aspect_particle_integrator_euler_h
17 
20 
21 namespace aspect
22 {
23  namespace Particle
24  {
25  namespace Integrator
26  {
35  template <int dim>
36  class Euler : public Interface<dim>, public SimulatorAccess<dim>
37  {
38  public:
56  void
58  const typename ParticleHandler<dim>::particle_iterator &end_particle,
59  const std::vector<Tensor<1,dim>> &old_velocities,
60  const std::vector<Tensor<1,dim>> &velocities,
61  const double dt) override;
62 
75  std::array<bool, 3> required_solution_vectors() const override;
76 
88  static constexpr unsigned int n_integrator_properties = 0;
89  };
90 
91  }
92  }
93 }
94 
95 #endif
void local_integrate_step(const typename ParticleHandler< dim >::particle_iterator &begin_particle, const typename ParticleHandler< dim >::particle_iterator &end_particle, const std::vector< Tensor< 1, dim >> &old_velocities, const std::vector< Tensor< 1, dim >> &velocities, const double dt) override
std::array< bool, 3 > required_solution_vectors() const override
ParticleIterator< dim, spacedim > particle_iterator
static constexpr unsigned int n_integrator_properties
Definition: euler.h:88