ASPECT
dislocation_creep.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2019 - 2024 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_dislocation_creep_h
22 #define _aspect_material_model_rheology_dislocation_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  {
44  double prefactor;
48 
53  };
54 
55  template <int dim>
57  {
58  public:
63 
67  static
68  void
69  declare_parameters (ParameterHandler &prm);
70 
78  void
79  parse_parameters (ParameterHandler &prm,
80  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
81 
90  compute_creep_parameters (const unsigned int composition,
91  const std::vector<double> &phase_function_values = std::vector<double>(),
92  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
93 
101  double
102  compute_viscosity (const double strain_rate,
103  const double pressure,
104  const double temperature,
105  const unsigned int composition,
106  const std::vector<double> &phase_function_values = std::vector<double>(),
107  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
108 
113  std::pair<double, double>
114  compute_strain_rate_and_derivative (const double stress,
115  const double pressure,
116  const double temperature,
117  const DislocationCreepParameters creep_parameters) const;
118 
123  std::pair<double, double>
124  compute_log_strain_rate_and_derivative (const double log_stress,
125  const double pressure,
126  const double temperature,
127  const DislocationCreepParameters creep_parameters) const;
128 
129  private:
130 
134  std::vector<double> prefactors_dislocation;
135 
139  std::vector<double> stress_exponents_dislocation;
140 
144  std::vector<double> activation_energies_dislocation;
145 
149  std::vector<double> activation_volumes_dislocation;
150 
151  };
152  }
153  }
154 }
155 #endif
void declare_parameters(ParameterHandler &prm)
Definition: compat.h:59
Definition: compat.h:42