ASPECT
artificial_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) 2015-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 
16 #ifndef _aspect_mesh_refinement_artificial_viscosity_h
17 #define _aspect_mesh_refinement_artificial_viscosity_h
18 
21 
22 namespace aspect
23 {
24  namespace MeshRefinement
25  {
26 
33  template <int dim>
34  class ArtificialViscosity : public Interface<dim>,
35  public SimulatorAccess<dim>
36  {
37  public:
41  void
42  execute (Vector<float> &error_indicators) const override;
43 
47  static
48  void
50 
54  void
55  parse_parameters (ParameterHandler &prm) override;
56 
57  private:
58 
65 
71  std::vector<double> composition_scaling_factors;
72  };
73  }
74 }
75 
76 #endif
void execute(Vector< float > &error_indicators) const override
static void declare_parameters(ParameterHandler &prm)
void parse_parameters(ParameterHandler &prm) override