ASPECT
drucker_prager_power.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_power_h
22 #define _aspect_material_model_rheology_drucker_prager_power_h
23 
24 #include <aspect/global.h>
26 
30 
31 namespace aspect
32 {
33  namespace MaterialModel
34  {
35  namespace Rheology
36  {
37 
38  template <int dim>
40  {
54  public:
56 
60  static
61  void
62  declare_parameters (ParameterHandler &prm);
63 
74  void
75  parse_parameters (ParameterHandler &prm,
76  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
77 
86  compute_drucker_prager_parameters (const unsigned int composition,
87  const std::vector<double> &phase_function_values = std::vector<double>(),
88  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
89 
93  double
94  compute_yield_stress (const double cohesion,
95  const double angle_internal_friction,
96  const double pressure,
97  const double max_yield_stress) const;
98 
102  double
103  compute_viscosity (const double cohesion,
104  const double angle_internal_friction,
105  const double pressure,
106  const double effective_strain_rate,
107  const double max_yield_stress) const;
108 
113  std::pair<double, double>
114  compute_strain_rate_and_derivative (const double stress,
115  const double pressure,
116  const DruckerPragerParameters &p) const;
117 
122  std::pair<double, double>
123  compute_log_strain_rate_and_derivative (const double log_stress,
124  const double pressure,
125  const DruckerPragerParameters &p) const;
126 
127  private:
132  std::vector<double> angles_internal_friction;
133 
137  std::vector<double> cohesions;
138 
143 
149 
155 
160 
161  };
162  }
163  }
164 }
165 #endif
std::pair< double, double > compute_log_strain_rate_and_derivative(const double log_stress, const double pressure, const DruckerPragerParameters &p) const
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 compute_yield_stress(const double cohesion, const double angle_internal_friction, const double pressure, const double max_yield_stress) const
static void declare_parameters(ParameterHandler &prm)
Definition: compat.h:59
void parse_parameters(ParameterHandler &prm, const std::unique_ptr< std::vector< unsigned int >> &expected_n_phases_per_composition=nullptr)
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
std::pair< double, double > compute_strain_rate_and_derivative(const double stress, const double pressure, const DruckerPragerParameters &p) const