ASPECT
crust_and_lithosphere_formation.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) 2022-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_crust_and_lithosphere_formation_h
16 #define _aspect_particle_property_crust_and_lithosphere_formation_h
17 
21 
22 namespace aspect
23 {
24  namespace Particle
25  {
26  namespace Property
27  {
34  template <int dim>
36  {
37  public:
42 
47  void initialize () override;
48 
52  void
54  std::vector<double> &particle_properties) const override;
55 
59  void
61  typename ParticleHandler<dim>::particle_iterator_range &particles) const override;
62 
72  late_initialization_mode () const override;
73 
82  advection_field_for_boundary_initialization(const unsigned int property_component) const override;
83 
88  need_update () const override;
89 
94  get_needed_update_flags () const override;
95 
99  std::vector<std::pair<std::string, unsigned int>>
100  get_property_information() const override;
101 
105  static
106  void
108 
112  void
113  parse_parameters (ParameterHandler &prm) override;
114 
115  private:
127 
132  unsigned int basalt_index;
133  unsigned int harzburgite_index;
134 
138  std::unique_ptr<MaterialModel::ReactionModel::CrustLithosphereFormation<dim>> crust_lithosphere_formation;
139  };
140  }
141  }
142 }
143 
144 #endif
void update_particle_properties(const ParticleUpdateInputs< dim > &inputs, typename ParticleHandler< dim >::particle_iterator_range &particles) const override
InitializationModeForLateParticles late_initialization_mode() const override
UpdateTimeFlags need_update() const override
UpdateFlags
std::unique_ptr< MaterialModel::ReactionModel::CrustLithosphereFormation< dim > > crust_lithosphere_formation
static void declare_parameters(ParameterHandler &prm)
UpdateFlags get_needed_update_flags() const override
boost::iterator_range< particle_iterator > particle_iterator_range
std::vector< std::pair< std::string, unsigned int > > get_property_information() const override
void parse_parameters(ParameterHandler &prm) override
void initialize_one_particle_property(const Point< dim > &position, std::vector< double > &particle_properties) const override
AdvectionField advection_field_for_boundary_initialization(const unsigned int property_component) const override