ASPECT
diffusion_creep.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) 2019-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_material_model_rheology_diffusion_creep_h
16 #define _aspect_material_model_rheology_diffusion_creep_h
17 
18 #include <aspect/global.h>
22 
23 namespace aspect
24 {
25  namespace MaterialModel
26  {
27  namespace Rheology
28  {
33  {
38  double prefactor;
43 
48  };
49 
50  template <int dim>
52  {
53  public:
58 
62  static
63  void
65 
73  void
74  parse_parameters (ParameterHandler &prm,
75  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
76 
77 
86  compute_creep_parameters (const unsigned int composition,
87  const std::vector<double> &phase_function_values = {},
88  const std::vector<unsigned int> &n_phase_transitions_per_composition = {}) const;
89 
98  double
99  compute_viscosity (const double pressure,
100  const double temperature,
101  const unsigned int composition,
102  const std::vector<double> &phase_function_values = {},
103  const std::vector<unsigned int> &n_phase_transitions_per_composition = {}) const;
104 
112  double
113  compute_viscosity (const double pressure,
114  const double temperature,
115  const double grain_size,
116  const unsigned int composition,
117  const std::vector<double> &phase_function_values = {},
118  const std::vector<unsigned int> &n_phase_transitions_per_composition = {}) const;
119 
125  std::pair<double, double>
126  compute_strain_rate_and_derivative (const double stress,
127  const double pressure,
128  const double temperature,
129  const DiffusionCreepParameters creep_parameters) const;
130 
135  std::pair<double, double>
136  compute_strain_rate_and_derivative (const double stress,
137  const double pressure,
138  const double temperature,
139  const double grain_size,
140  const DiffusionCreepParameters creep_parameters) const;
141 
147  std::pair<double, double>
148  compute_log_strain_rate_and_derivative (const double log_stress,
149  const double pressure,
150  const double temperature,
151  const DiffusionCreepParameters creep_parameters) const;
152 
158  std::pair<double, double>
159  compute_log_strain_rate_and_derivative (const double log_stress,
160  const double pressure,
161  const double temperature,
162  const double grain_size,
163  const DiffusionCreepParameters creep_parameters) const;
164 
165  private:
166 
172  std::vector<double> prefactors;
173 
178  std::vector<double> stress_exponents;
179 
184  std::vector<double> grain_size_exponents;
185 
190  std::vector<double> activation_energies;
191 
196  std::vector<double> activation_volumes;
197 
206  };
207  }
208  }
209 }
210 #endif
void declare_parameters(ParameterHandler &prm)