ASPECT
drucker_prager.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_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  namespace Rheology
34  {
40  {
45 
49  double cohesion;
50 
55 
60  };
61 
62  template <int dim>
64  {
65  public:
66  DruckerPrager();
70  static
71  void
72  declare_parameters (ParameterHandler &prm);
73 
84  void
85  parse_parameters (ParameterHandler &prm,
86  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
87 
96  compute_drucker_prager_parameters (const unsigned int composition,
97  const std::vector<double> &phase_function_values = std::vector<double>(),
98  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
99 
103  double
104  compute_yield_stress (const double cohesion,
105  const double angle_internal_friction,
106  const double pressure,
107  const double max_yield_stress) const;
108 
115  double
116  compute_viscosity (const double cohesion,
117  const double angle_internal_friction,
118  const double pressure,
119  const double effective_strain_rate,
120  const double max_yield_stress,
121  const double non_yielding_viscosity = std::numeric_limits<double>::infinity()) const;
122 
127  std::pair<double, double>
128  compute_strain_rate_and_derivative (const double stress,
129  const double pressure,
130  const DruckerPragerParameters &p) const;
131 
135  double
136  compute_derivative (const double angle_internal_friction,
137  const double effective_strain_rate) const;
138 
139  private:
140 
150  std::vector<double> angles_internal_friction;
151 
155  std::vector<double> cohesions;
156 
161 
167 
172  };
173  }
174  }
175 }
176 #endif
void declare_parameters(ParameterHandler &prm)
Definition: compat.h:59