ASPECT
composite_visco_plastic.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2020 - 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_composite_visco_plastic_h
22 #define _aspect_material_model_rheology_composite_visco_plastic_h
23 
24 #include <aspect/global.h>
32 
33 namespace aspect
34 {
35  namespace MaterialModel
36  {
37  using namespace dealii;
38 
39  namespace Rheology
40  {
41 
42  template <int dim>
44  {
45  public:
50 
54  static
55  void
56  declare_parameters (ParameterHandler &prm);
57 
65  void
66  parse_parameters (ParameterHandler &prm,
67  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
68 
76  double
77  compute_viscosity (const double pressure,
78  const double temperature,
79  const double grain_size,
80  const std::vector<double> &volume_fractions,
81  const SymmetricTensor<2,dim> &strain_rate,
82  std::vector<double> &partial_strain_rates,
83  const std::vector<double> &phase_function_values = std::vector<double>(),
84  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
85 
94  double
95  compute_composition_viscosity (const double pressure,
96  const double temperature,
97  const double grain_size,
98  const unsigned int composition,
99  const SymmetricTensor<2,dim> &strain_rate,
100  std::vector<double> &partial_strain_rates,
101  const std::vector<double> &phase_function_values = std::vector<double>(),
102  const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
103 
109  std::pair<double, double>
110  calculate_log_strain_rate_and_derivative(const std::array<std::pair<double, double>, 4> &logarithmic_strain_rates_and_stress_derivatives,
111  const double viscoplastic_stress,
112  std::vector<double> &partial_strain_rates) const;
113 
114  private:
115 
123 
127  std::vector<unsigned int> active_flow_mechanisms;
128 
133  std::unique_ptr<Rheology::DiffusionCreep<dim>> diffusion_creep;
134  std::unique_ptr<Rheology::DislocationCreep<dim>> dislocation_creep;
135  std::unique_ptr<Rheology::PeierlsCreep<dim>> peierls_creep;
136  std::unique_ptr<Rheology::DruckerPragerPower<dim>> drucker_prager;
137 
142 
148 
149 
159 
168 
173 
180 
186 
190  const double logmin = std::log(std::numeric_limits<double>::min());
191  };
192  }
193  }
194 }
195 #endif
std::unique_ptr< Rheology::PeierlsCreep< dim > > peierls_creep
std::unique_ptr< Rheology::DruckerPragerPower< dim > > drucker_prager
void declare_parameters(ParameterHandler &prm)
std::unique_ptr< Rheology::DislocationCreep< dim > > dislocation_creep
std::unique_ptr< Rheology::DiffusionCreep< dim > > diffusion_creep
Definition: compat.h:59
Definition: compat.h:42