ASPECT
prescribed_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) 2014-2025 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_prescribed_viscosity_h
16 #define _aspect_material_model_prescribed_viscosity_h
17 
21 
22 
23 namespace aspect
24 {
25  namespace MaterialModel
26  {
36  template <int dim>
38  {
39  public:
43  void initialize() override;
44 
49  void update() override;
50 
56  void
58  typename Interface<dim>::MaterialModelOutputs &out) const override;
59 
63  static void
65 
69  void
70  parse_parameters (ParameterHandler &prm) override;
71 
76  bool is_compressible () const override;
77 
78  void
80 
81  private:
82 
87 
93 
97  std::unique_ptr<MaterialModel::Interface<dim>> base_model;
98  };
99  }
100 }
101 
102 #endif
void evaluate(const typename Interface< dim >::MaterialModelInputs &in, typename Interface< dim >::MaterialModelOutputs &out) const override
Functions::ParsedFunction< dim > prescribed_viscosity_indicator_function
void parse_parameters(ParameterHandler &prm) override
Functions::ParsedFunction< dim > prescribed_viscosity_function
std::unique_ptr< MaterialModel::Interface< dim > > base_model
void create_additional_named_outputs(MaterialModel::MaterialModelOutputs< dim > &out) const override
static void declare_parameters(ParameterHandler &prm)