ASPECT
constant_viscosity.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) 2019-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_h
16 #define _aspect_material_model_rheology_constant_viscosity_h
17 
18 #include <aspect/global.h>
20 
21 namespace aspect
22 {
23  namespace MaterialModel
24  {
25  namespace Rheology
26  {
28  {
29  public:
34 
38  static
39  void
41  const double default_viscosity = 1e21);
42 
46  void
48 
52  double
53  compute_viscosity () const;
54 
55  private:
63  double viscosity;
64  };
65  }
66  }
67 }
68 #endif
static void declare_parameters(ParameterHandler &prm, const double default_viscosity=1e21)