ASPECT
steinberger.h
Go to the documentation of this file.
1 // ------------------------------------------------------
2 //
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 //
5 // SPDX-FileCopyrightText: Copyright (C) 2011-2026 by the ASPECT authors.
6 //
7 // This file is part of ASPECT.
8 //
9 // Detailed license information governing the source code and
10 // contributions can be found in the folder LICENSES and in
11 // LICENSE and CONTRIBUTING.md at the top level directory.
12 //
13 // ------------------------------------------------------
14 
15 #ifndef _aspect_material_model_steinberger_h
16 #define _aspect_material_model_steinberger_h
17 
23 
26 
27 namespace aspect
28 {
29  namespace MaterialModel
30  {
31  namespace internal
32  {
42  {
43  public:
47  LateralViscosityLookup(const std::string &filename,
48  const MPI_Comm comm);
49 
53  double lateral_viscosity(double depth) const;
54 
58  int get_nslices() const;
59  private:
63  std::vector<double> values;
64 
68  double min_depth;
69  double delta_depth;
70  double max_depth;
71  };
72 
81  {
82  public:
86  RadialViscosityLookup(const std::string &filename,
87  const MPI_Comm comm);
88 
92  double radial_viscosity(double depth) const;
93 
94  private:
98  std::vector<double> values;
99 
103  double min_depth;
104  double delta_depth;
105  double max_depth;
106  };
107  }
108 
122  template <int dim>
124  {
125  public:
130  void
131  initialize () override;
132 
137  void update() override;
138 
152  bool is_compressible () const override;
161  void
162  evaluate(const MaterialModel::MaterialModelInputs<dim> &in,
163  MaterialModel::MaterialModelOutputs<dim> &out) const override;
164 
172  static
173  void
175 
179  void
180  parse_parameters (ParameterHandler &prm) override;
185  void
186  create_additional_named_outputs (MaterialModel::MaterialModelOutputs<dim> &out) const override;
187 
188 
189  private:
197  double viscosity (const unsigned int q,
198  const std::vector<double> &volume_fractions,
201 
212 
220  std::unique_ptr<ComponentMask> composition_mask;
221 
226 
235 
241  std::unique_ptr<ThermalConductivity::Interface<dim>> thermal_conductivity;
242 
249  std::vector<double> viscosity_prefactors;
254 
258  std::vector<double> average_temperature;
262  unsigned int n_lateral_slices;
263 
269  double min_eta;
273  double max_eta;
278 
284  std::string data_directory;
293 
298  std::unique_ptr<internal::LateralViscosityLookup> lateral_viscosity_lookup;
299 
304  std::unique_ptr<internal::RadialViscosityLookup> radial_viscosity_lookup;
305 
312  void fill_prescribed_outputs (const unsigned int i,
313  const std::vector<double> &volume_fractions,
316 
327 
328  };
329  }
330 }
331 
332 #endif
Rheology::DruckerPrager< dim > drucker_prager_plasticity
Definition: steinberger.h:321
MaterialUtilities::CompositionalAveragingOperation viscosity_averaging_scheme
Definition: steinberger.h:253
std::unique_ptr< internal::LateralViscosityLookup > lateral_viscosity_lookup
Definition: steinberger.h:298
std::vector< double > average_temperature
Definition: steinberger.h:258
Rheology::DruckerPragerParameters drucker_prager_parameters
Definition: steinberger.h:326
std::unique_ptr< ComponentMask > composition_mask
Definition: steinberger.h:220
void declare_parameters(ParameterHandler &prm)
EquationOfState::ThermodynamicTableLookup< dim > equation_of_state
Definition: steinberger.h:225
std::unique_ptr< ThermalConductivity::Interface< dim > > thermal_conductivity
Definition: steinberger.h:241
LateralViscosityLookup(const std::string &filename, const MPI_Comm comm)
std::vector< double > viscosity_prefactors
Definition: steinberger.h:249
*braid_SplitCommworld & comm
std::unique_ptr< internal::RadialViscosityLookup > radial_viscosity_lookup
Definition: steinberger.h:304