ASPECT
elastic_stress.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-2026 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_elastic_stress_h
16 #define _aspect_particle_property_elastic_stress_h
17 
20 
21 namespace aspect
22 {
23  namespace Particle
24  {
25  namespace Property
26  {
36  template <int dim>
37  class ElasticStress : public Interface<dim>, public ::aspect::SimulatorAccess<dim>
38  {
39  public:
43  ElasticStress ();
44 
45  void initialize () override;
46 
53  void
54  update_particles (typename Particle::Manager<dim> &particle_manager) const;
55 
59  void
61  std::vector<double> &particle_properties) const override;
62 
66  void
68  typename ParticleHandler<dim>::particle_iterator_range &particles) const override;
69 
74  need_update () const override;
75 
80  get_update_flags (const unsigned int component) const override;
81 
85  std::vector<std::pair<std::string, unsigned int>>
86  get_property_information() const override;
87 
91  static
92  void
94 
98  void
99  parse_parameters (ParameterHandler &prm) override;
100 
101  private:
119 
124  std::vector<unsigned int> stress_field_indices;
125 
130  std::vector<unsigned int> non_stress_field_indices;
131 
142  };
143  }
144  }
145 }
146 
147 #endif
std::vector< unsigned int > stress_field_indices
void parse_parameters(ParameterHandler &prm) override
UpdateTimeFlags need_update() const override
std::vector< unsigned int > non_stress_field_indices
static void declare_parameters(ParameterHandler &prm)
UpdateFlags
void update_particle_properties(const ParticleUpdateInputs< dim > &inputs, typename ParticleHandler< dim >::particle_iterator_range &particles) const override
std::vector< std::pair< std::string, unsigned int > > get_property_information() const override
UpdateFlags get_update_flags(const unsigned int component) const override
void update_particles(typename Particle::Manager< dim > &particle_manager) const
boost::iterator_range< particle_iterator > particle_iterator_range
MaterialModel::MaterialModelInputs< dim > material_inputs
void initialize_one_particle_property(const Point< dim > &position, std::vector< double > &particle_properties) const override
MaterialModel::MaterialModelOutputs< dim > material_outputs
MaterialModel::MaterialModelInputs< dim > material_inputs_cell
MaterialModel::MaterialModelOutputs< dim > material_outputs_cell