ASPECT
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 
50 
54  double cohesion;
55 
60 
65 
70  };
71 
72  template <int dim>
74  {
75  public:
76  DruckerPrager();
80  static
81  void
82  declare_parameters (ParameterHandler &prm);
83 
94  void
95  parse_parameters (ParameterHandler &prm,
96  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
97 
106  compute_drucker_prager_parameters (const unsigned int composition,
107  const std::vector<double> &phase_function_values = std::vector<double>(),
108  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
109 
116  DEAL_II_DEPRECATED
117  double
118  compute_yield_stress (const double cohesion,
119  const double angle_internal_friction,
120  const double pressure,
121  const double max_yield_stress) const;
122 
133  double
134  compute_yield_stress (const double pressure,
135  const DruckerPragerParameters &p) const;
136 
146  DEAL_II_DEPRECATED
147  double
148  compute_viscosity (const double cohesion,
149  const double angle_internal_friction,
150  const double pressure,
151  const double effective_strain_rate,
152  const double max_yield_stress,
153  const double non_yielding_viscosity = std::numeric_limits<double>::infinity()) const;
154 
161  double
162  compute_viscosity (const double pressure,
163  const double effective_strain_rate,
164  const DruckerPragerParameters &p,
165  const double non_yielding_viscosity = std::numeric_limits<double>::infinity()) const;
166 
171  std::pair<double, double>
172  compute_strain_rate_and_derivative (const double stress,
173  const double pressure,
174  const DruckerPragerParameters &p) const;
175 
179  double
180  compute_derivative (const double angle_internal_friction,
181  const double effective_strain_rate) const;
182 
192  std::pair<double,double>
193  compute_dilation_terms_for_stokes_system(const DruckerPragerParameters &drucker_prager_parameters,
194  const double non_yielding_viscosity,
195  const double effective_strain_rate) const;
196 
197  private:
198 
208  std::vector<double> angles_internal_friction;
209 
219  std::vector<double> angles_dilation;
220 
224  std::vector<double> cohesions;
225 
229  std::vector<double> yield_stress_prefactors;
230 
234  std::vector<double> max_yield_stresses;
235 
241 
246  };
247  }
248  }
249 }
250 #endif
void declare_parameters(ParameterHandler &prm)