ASPECT
constant_viscosity_prefactors.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) 2020-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_rheology_constant_viscosity_prefactors_h
16 #define _aspect_material_model_rheology_constant_viscosity_prefactors_h
17 
18 #include <aspect/global.h>
21 
22 namespace aspect
23 {
24  namespace MaterialModel
25  {
26  namespace Rheology
27  {
33  template <int dim>
35  {
36  public:
41 
45  static
46  void
48 
52  void
54 
58  double
59  compute_viscosity (const double base_viscosity,
60  const unsigned int composition_index) const;
61 
62  private:
74  std::vector<double> constant_viscosity_prefactors;
75  };
76  }
77  }
78 }
79 #endif
double compute_viscosity(const double base_viscosity, const unsigned int composition_index) const