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 
50 
54  double cohesion;
55 
60 
65 
70  };
71 
72  template <int dim>
74  {
75  public:
80  static
81  void
83 
94  void
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 
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
135  const DruckerPragerParameters &p) const;
136 
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
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>
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>
194  const double non_yielding_viscosity,
195  const double effective_strain_rate) const;
196 
197  private:
198 
210  std::vector<double> angles_internal_friction;
211 
222  std::vector<double> angles_dilation;
223 
228  std::vector<double> cohesions;
229 
234  std::vector<double> yield_stress_prefactors;
235 
240  std::vector<double> max_yield_stresses;
241 
248 
255  };
256  }
257  }
258 }
259 #endif
const DruckerPragerParameters compute_drucker_prager_parameters(const unsigned int composition, const std::vector< double > &phase_function_values=std::vector< double >(), const std::vector< unsigned int > &n_phase_transitions_per_composition=std::vector< unsigned int >()) const
static void declare_parameters(ParameterHandler &prm)
DEAL_II_DEPRECATED double compute_yield_stress(const double cohesion, const double angle_internal_friction, const double pressure, const double max_yield_stress) const
double compute_viscosity(const double pressure, const double effective_strain_rate, const DruckerPragerParameters &p, const double non_yielding_viscosity=std::numeric_limits< double >::infinity()) const
void parse_parameters(ParameterHandler &prm, const std::unique_ptr< std::vector< unsigned int >> &expected_n_phases_per_composition=nullptr)
std::pair< double, double > compute_dilation_terms_for_stokes_system(const DruckerPragerParameters &drucker_prager_parameters, const double non_yielding_viscosity, const double effective_strain_rate) const
std::pair< double, double > compute_strain_rate_and_derivative(const double stress, const double pressure, const DruckerPragerParameters &p) const
double compute_derivative(const double angle_internal_friction, const double effective_strain_rate) const
double compute_yield_stress(const double pressure, const DruckerPragerParameters &p) const
DEAL_II_DEPRECATED double compute_viscosity(const double cohesion, const double angle_internal_friction, const double pressure, const double effective_strain_rate, const double max_yield_stress, const double non_yielding_viscosity=std::numeric_limits< double >::infinity()) const
#define DEAL_II_DEPRECATED