ASPECT
peierls_creep.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2020 - 2023 by the authors of the ASPECT code.
3 
4  This file is part of ASPECT.
5 
6  ASPECT is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)
9  any later version.
10 
11  ASPECT is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with ASPECT; see the file LICENSE. If not see
18  <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef _aspect_material_model_rheology_peierls_creep_h
22 #define _aspect_material_model_rheology_peierls_creep_h
23 
24 #include <aspect/global.h>
26 
27 namespace aspect
28 {
29  namespace MaterialModel
30  {
31  using namespace dealii;
32 
33  namespace Rheology
34  {
39  {
45  double prefactor;
53  double stress_cutoff;
54  };
55 
64  template <int dim>
66  {
67  public:
71  PeierlsCreep();
72 
77  compute_creep_parameters (const unsigned int composition,
78  const std::vector<double> &phase_function_values = std::vector<double>(),
79  const std::vector<unsigned int> &n_phases_per_composition = std::vector<unsigned int>()) const;
80 
84  static
85  void
86  declare_parameters (ParameterHandler &prm);
87 
95  void
96  parse_parameters (ParameterHandler &prm,
97  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
98 
106  double
107  compute_approximate_viscosity (const double strain_rate,
108  const double pressure,
109  const double temperature,
110  const unsigned int composition,
111  const std::vector<double> &phase_function_values = std::vector<double>(),
112  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
113 
121  double
122  compute_exact_viscosity (const double strain_rate,
123  const double pressure,
124  const double temperature,
125  const unsigned int composition,
126  const std::vector<double> &phase_function_values = std::vector<double>(),
127  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
128 
138  double
139  compute_viscosity (const double strain_rate,
140  const double pressure,
141  const double temperature,
142  const unsigned int composition,
143  const std::vector<double> &phase_function_values = std::vector<double>(),
144  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
145 
150  std::pair<double, double>
151  compute_approximate_strain_rate_and_derivative (const double stress,
152  const double pressure,
153  const double temperature,
154  const PeierlsCreepParameters creep_parameters) const;
155 
160  std::pair<double, double>
161  compute_exact_strain_rate_and_derivative (const double stress,
162  const double pressure,
163  const double temperature,
164  const PeierlsCreepParameters creep_parameters) const;
165 
171  std::pair<double, double>
172  compute_exact_log_strain_rate_and_derivative (const double log_stress,
173  const double pressure,
174  const double temperature,
175  const PeierlsCreepParameters creep_parameters) const;
176 
184  std::pair<double, double>
185  compute_strain_rate_and_derivative (const double stress,
186  const double pressure,
187  const double temperature,
188  const PeierlsCreepParameters creep_parameters) const;
189 
190  private:
204  {
206  exact
207  } peierls_creep_flow_law;
208 
212  std::vector<double> prefactors;
213 
217  std::vector<double> stress_exponents;
218 
222  std::vector<double> activation_energies;
223 
227  std::vector<double> activation_volumes;
228 
232  std::vector<double> peierls_stresses;
233 
237  std::vector<double> fitting_parameters;
238 
243  std::vector<double> glide_parameters_p;
244 
249  std::vector<double> glide_parameters_q;
250 
251  std::vector<double> stress_cutoffs;
252 
258 
265 
266  };
267  }
268  }
269 }
270 #endif
void declare_parameters(ParameterHandler &prm)
Definition: compat.h:42