ASPECT
diffusion_creep.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2019 - 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_diffusion_creep_h
22 #define _aspect_material_model_rheology_diffusion_creep_h
23 
24 #include <aspect/global.h>
28 
29 namespace aspect
30 {
31  namespace MaterialModel
32  {
33  using namespace dealii;
34 
35  namespace Rheology
36  {
41  {
46  double prefactor;
51 
56  };
57 
58  template <int dim>
60  {
61  public:
66 
70  static
71  void
72  declare_parameters (ParameterHandler &prm);
73 
81  void
82  parse_parameters (ParameterHandler &prm,
83  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
84 
85 
94  compute_creep_parameters (const unsigned int composition,
95  const std::vector<double> &phase_function_values = std::vector<double>(),
96  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
97 
106  double
107  compute_viscosity (const double pressure,
108  const double temperature,
109  const unsigned int composition,
110  const std::vector<double> &phase_function_values = std::vector<double>(),
111  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
112 
120  double
121  compute_viscosity (const double pressure,
122  const double temperature,
123  const double grain_size,
124  const unsigned int composition,
125  const std::vector<double> &phase_function_values = std::vector<double>(),
126  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
127 
133  std::pair<double, double>
134  compute_strain_rate_and_derivative (const double stress,
135  const double pressure,
136  const double temperature,
137  const DiffusionCreepParameters creep_parameters) const;
138 
143  std::pair<double, double>
144  compute_strain_rate_and_derivative (const double stress,
145  const double pressure,
146  const double temperature,
147  const double grain_size,
148  const DiffusionCreepParameters creep_parameters) const;
149 
155  std::pair<double, double>
156  compute_log_strain_rate_and_derivative (const double log_stress,
157  const double pressure,
158  const double temperature,
159  const DiffusionCreepParameters creep_parameters) const;
160 
166  std::pair<double, double>
167  compute_log_strain_rate_and_derivative (const double log_stress,
168  const double pressure,
169  const double temperature,
170  const double grain_size,
171  const DiffusionCreepParameters creep_parameters) const;
172 
173  private:
174 
178  std::vector<double> prefactors_diffusion;
179 
183  std::vector<double> stress_exponents_diffusion;
184 
188  std::vector<double> grain_size_exponents_diffusion;
189 
193  std::vector<double> activation_energies_diffusion;
194 
198  std::vector<double> activation_volumes_diffusion;
199 
206  };
207  }
208  }
209 }
210 #endif
void declare_parameters(ParameterHandler &prm)
Definition: compat.h:59
Definition: compat.h:42