ASPECT
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_visco_plastic_h
22 #define _aspect_material_model_rheology_visco_plastic_h
23 
24 #include <aspect/global.h>
37 
38 #include<deal.II/fe/component_mask.h>
39 
40 namespace aspect
41 {
42  namespace MaterialModel
43  {
44  using namespace dealii;
45 
51  template <int dim>
53  {
54  public:
55  PlasticAdditionalOutputs(const unsigned int n_points);
56 
57  std::vector<double> get_nth_output(const unsigned int idx) const override;
58 
64  std::vector<double> cohesions;
65 
71  std::vector<double> friction_angles;
72 
76  std::vector<double> yield_stresses;
77 
82  std::vector<double> yielding;
83 
84  };
85 
90  {
94  std::vector<double> composition_viscosities;
95 
99  std::vector<bool> composition_yielding;
100 
104  std::vector<double> current_friction_angles;
105 
109  std::vector<double> current_cohesions;
110  };
111 
112  namespace Rheology
113  {
114 
115  template <int dim>
117  {
118  public:
122  ViscoPlastic();
123 
133  calculate_isostrain_viscosities ( const MaterialModel::MaterialModelInputs<dim> &in,
134  const unsigned int i,
135  const std::vector<double> &volume_fractions,
136  const std::vector<double> &phase_function_values = std::vector<double>(),
137  const std::vector<unsigned int> &n_phase_transitions_per_composition =
138  std::vector<unsigned int>()) const;
139 
149  void compute_viscosity_derivatives(const unsigned int point_index,
150  const std::vector<double> &volume_fractions,
151  const std::vector<double> &composition_viscosities,
154  const std::vector<double> &phase_function_values = std::vector<double>(),
155  const std::vector<unsigned int> &n_phase_transitions_per_composition =
156  std::vector<unsigned int>()) const;
157 
164  ComponentMask get_volumetric_composition_mask() const;
165 
169  static
170  void
171  declare_parameters (ParameterHandler &prm);
172 
180  void
181  parse_parameters (ParameterHandler &prm,
182  const std::unique_ptr<std::vector<unsigned int>> &expected_n_phases_per_composition = nullptr);
183 
188  void
189  create_plastic_outputs (MaterialModel::MaterialModelOutputs<dim> &out) const;
190 
196  void fill_plastic_outputs(const unsigned int point_index,
197  const std::vector<double> &volume_fractions,
198  const bool plastic_yielding,
201  const IsostrainViscosities &isostrain_viscosities) const;
202 
207 
212 
217 
222 
227 
228 
229  private:
230 
236 
242  std::vector<double> minimum_viscosity;
243  std::vector<double> maximum_viscosity;
244 
250  {
254  composite
255  } viscous_flow_law;
256 
262  {
264  drucker_prager
265  } yield_mechanism;
266 
273 
283 
288  std::vector<double> exponents_stress_limiter;
289 
294 
300  std::unique_ptr<Rheology::FrankKamenetskii<dim>> frank_kamenetskii_rheology;
301 
306 
310  std::unique_ptr<Rheology::PeierlsCreep<dim>> peierls_creep;
311 
318 
319  /*
320  * Object for computing plastic stresses, viscosities, and additional outputs
321  */
323 
324  /*
325  * Input parameters for the drucker prager plasticity.
326  */
328 
329  };
330  }
331  }
332 }
333 #endif
MaterialUtilities::CompositionalAveragingOperation viscosity_averaging
Rheology::FrictionModels< dim > friction_models
std::unique_ptr< Rheology::FrankKamenetskii< dim > > frank_kamenetskii_rheology
Rheology::DruckerPrager< dim > drucker_prager_plasticity
void declare_parameters(ParameterHandler &prm)
Rheology::ConstantViscosityPrefactors< dim > constant_viscosity_prefactors
Rheology::DislocationCreep< dim > dislocation_creep
Rheology::StrainDependent< dim > strain_rheology
Rheology::DiffusionCreep< dim > diffusion_creep
Definition: compat.h:42
std::unique_ptr< Rheology::PeierlsCreep< dim > > peierls_creep
Rheology::DruckerPragerParameters drucker_prager_parameters
Rheology::Elasticity< dim > elastic_rheology