ASPECT
melt_global.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 #ifndef _aspect_material_model_melt_global_h
16 #define _aspect_material_model_melt_global_h
17 
21 #include <aspect/melt.h>
22 
23 namespace aspect
24 {
25  namespace MaterialModel
26  {
38  template <int dim>
41  public ::aspect::SimulatorAccess<dim>
42  {
43  public:
52  bool is_compressible () const override;
53 
54  void evaluate(const typename Interface<dim>::MaterialModelInputs &in,
55  typename Interface<dim>::MaterialModelOutputs &out) const override;
56 
70  std::vector<double> &melt_fractions,
71  const MaterialModel::MaterialModelOutputs<dim> *out = nullptr) const override;
72 
77  double reference_darcy_coefficient () const override;
78 
79 
91  static
92  void
94 
98  void
99  parse_parameters (ParameterHandler &prm) override;
104  void
106 
107 
108  private:
120  double reference_T;
124  double eta_0;
128  double xi_0;
132  double eta_f;
157  double alpha_phi;
198 
199  // entropy change upon melting
201 
202  virtual
203  double
204  melt_fraction (const double temperature,
205  const double pressure,
206  const double depletion) const;
207  };
208 
209  }
210 }
211 
212 #endif
void parse_parameters(ParameterHandler &prm) override
void create_additional_named_outputs(MaterialModel::MaterialModelOutputs< dim > &out) const override
double reference_darcy_coefficient() const override
bool is_compressible() const override
void melt_fractions(const MaterialModel::MaterialModelInputs< dim > &in, std::vector< double > &melt_fractions, const MaterialModel::MaterialModelOutputs< dim > *out=nullptr) const override
virtual double melt_fraction(const double temperature, const double pressure, const double depletion) const
static void declare_parameters(ParameterHandler &prm)
void evaluate(const typename Interface< dim >::MaterialModelInputs &in, typename Interface< dim >::MaterialModelOutputs &out) const override