ASPECT
drucker_prager.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_drucker_prager_h
22 #define _aspect_material_model_rheology_drucker_prager_h
23 
24 #include <aspect/global.h>
26 
29 namespace aspect
30 {
31  namespace MaterialModel
32  {
33  using namespace dealii;
34 
35  namespace Rheology
36  {
42  {
47 
51  double cohesion;
52 
57 
62  };
63 
64  template <int dim>
66  {
67  public:
68  DruckerPrager();
72  static
73  void
74  declare_parameters (ParameterHandler &prm);
75 
86  void
87  parse_parameters (ParameterHandler &prm,
88  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
89 
98  compute_drucker_prager_parameters (const unsigned int composition,
99  const std::vector<double> &phase_function_values = std::vector<double>(),
100  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
101 
105  double
106  compute_yield_stress (const double cohesion,
107  const double angle_internal_friction,
108  const double pressure,
109  const double max_yield_stress) const;
110 
117  double
118  compute_viscosity (const double cohesion,
119  const double angle_internal_friction,
120  const double pressure,
121  const double effective_strain_rate,
122  const double max_yield_stress,
123  const double non_yielding_viscosity = std::numeric_limits<double>::infinity()) const;
124 
129  std::pair<double, double>
130  compute_strain_rate_and_derivative (const double stress,
131  const double pressure,
132  const DruckerPragerParameters &p) const;
133 
137  double
138  compute_derivative (const double angle_internal_friction,
139  const double effective_strain_rate) const;
140 
141  private:
142 
152  std::vector<double> angles_internal_friction;
153 
157  std::vector<double> cohesions;
158 
163 
169 
174  };
175  }
176  }
177 }
178 #endif
void declare_parameters(ParameterHandler &prm)
Definition: compat.h:59
Definition: compat.h:42