ASPECT
grain_boundary_sliding.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_grain_boundary_sliding_h
16 #define _aspect_material_model_rheology_grain_boundary_sliding_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_slide_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 strain_rate,
100  const double pressure,
101  const double temperature,
102  const unsigned int composition,
103  const std::vector<double> &phase_function_values = {},
104  const std::vector<unsigned int> &n_phase_transitions_per_composition = {}) const;
105 
113  double
114  compute_viscosity (const double strain_rate,
115  const double pressure,
116  const double temperature,
117  const double grain_size,
118  const unsigned int composition,
119  const std::vector<double> &phase_function_values = {},
120  const std::vector<unsigned int> &n_phase_transitions_per_composition = {}) const;
121 
122  private:
123 
129  std::vector<double> prefactors;
130 
135  std::vector<double> stress_exponents;
136 
141  std::vector<double> grain_size_exponents;
142 
147  std::vector<double> activation_energies;
148 
153  std::vector<double> activation_volumes;
154 
163  };
164  }
165  }
166 }
167 #endif
void declare_parameters(ParameterHandler &prm)