ASPECT
dislocation_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_dislocation_creep_h
16 #define _aspect_material_model_rheology_dislocation_creep_h
17 
18 #include <aspect/global.h>
20 
21 namespace aspect
22 {
23  namespace MaterialModel
24  {
25  namespace Rheology
26  {
31  {
36  double prefactor;
40 
45  };
46 
47  template <int dim>
49  {
50  public:
55 
59  static
60  void
62 
70  void
71  parse_parameters (ParameterHandler &prm,
72  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
73 
82  compute_creep_parameters (const unsigned int composition,
83  const std::vector<double> &phase_function_values = {},
84  const std::vector<unsigned int> &n_phase_transitions_per_composition = {}) const;
85 
93  double
94  compute_viscosity (const double strain_rate,
95  const double pressure,
96  const double temperature,
97  const unsigned int composition,
98  const std::vector<double> &phase_function_values = {},
99  const std::vector<unsigned int> &n_phase_transitions_per_composition = {}) const;
100 
105  std::pair<double, double>
106  compute_strain_rate_and_derivative (const double stress,
107  const double pressure,
108  const double temperature,
109  const DislocationCreepParameters creep_parameters) const;
110 
115  std::pair<double, double>
116  compute_log_strain_rate_and_derivative (const double log_stress,
117  const double pressure,
118  const double temperature,
119  const DislocationCreepParameters creep_parameters) const;
120 
121  private:
122 
128  std::vector<double> prefactors;
129 
134  std::vector<double> stress_exponents;
135 
140  std::vector<double> activation_energies;
141 
147  std::vector<double> activation_volumes;
148 
149  };
150  }
151  }
152 }
153 #endif
void declare_parameters(ParameterHandler &prm)