ASPECT
melt_global.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2015 - 2022 by the authors of the ASPECT code.
3 
4  This file is part of ASPECT.
5 
6  ASPECT is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)
9  any later version.
10 
11  ASPECT is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with ASPECT; see the file LICENSE. If not see
18  <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef _aspect_material_model_melt_global_h
22 #define _aspect_material_model_melt_global_h
23 
27 #include <aspect/melt.h>
28 
29 namespace aspect
30 {
31  namespace MaterialModel
32  {
33  using namespace dealii;
34 
46  template <int dim>
49  public ::aspect::SimulatorAccess<dim>
50  {
51  public:
60  bool is_compressible () const override;
61 
62  void evaluate(const typename Interface<dim>::MaterialModelInputs &in,
63  typename Interface<dim>::MaterialModelOutputs &out) const override;
64 
73  void melt_fractions (const MaterialModel::MaterialModelInputs<dim> &in,
74  std::vector<double> &melt_fractions) const override;
75 
80  double reference_darcy_coefficient () const override;
81 
82 
94  static
95  void
96  declare_parameters (ParameterHandler &prm);
97 
101  void
102  parse_parameters (ParameterHandler &prm) override;
107  void
108  create_additional_named_outputs (MaterialModel::MaterialModelOutputs<dim> &out) const override;
109 
110 
111  private:
114  double reference_T;
115  double eta_0;
116  double xi_0;
117  double eta_f;
124  double alpha_phi;
135 
136  // entropy change upon melting
138 
139  virtual
140  double
141  melt_fraction (const double temperature,
142  const double pressure,
143  const double depletion) const;
144  };
145 
146  }
147 }
148 
149 #endif
void declare_parameters(ParameterHandler &prm)
Definition: compat.h:42