ASPECT
reactive_fluid_transport.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2023 - 2024 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_reactive_fluid_transport_h
22 #define _aspect_material_model_reactive_fluid_transport_h
23 
26 #include <aspect/melt.h>
27 #include <aspect/utilities.h>
29 
30 #include <aspect/melt.h>
33 
34 namespace aspect
35 {
36  namespace MaterialModel
37  {
45  template <int dim>
47  {
48  public:
52  bool is_compressible () const override;
53 
58  double reference_darcy_coefficient () const override;
73  std::vector<double> &melt_fractions) const override;
74 
79  void
80  initialize () override;
81 
85  void update() override;
86 
90  void
92  typename Interface<dim>::MaterialModelOutputs &out) const override;
93 
97  static void
98  declare_parameters (ParameterHandler &prm);
99 
103  void
104  parse_parameters (ParameterHandler &prm) override;
105 
110  void
112 
113  private:
114 
118  std::unique_ptr<MaterialModel::Interface<dim>> base_model;
119 
126  double eta_f;
128 
139  double alpha_phi;
140  double reference_T;
141 
146 
147  /*
148  * Object for computing Katz 2003 melt parameters
149  */
151 
152  /*
153  * Object for computing Tian 2019 parameterized solubility parameters
154  */
156 
200  {
205  }
207  };
208  }
209 }
210 
211 #endif
void parse_parameters(ParameterHandler &prm) override
enum aspect::MaterialModel::ReactiveFluidTransport::ReactionScheme fluid_solid_reaction_scheme
void evaluate(const typename Interface< dim >::MaterialModelInputs &in, typename Interface< dim >::MaterialModelOutputs &out) const override
static void declare_parameters(ParameterHandler &prm)
std::unique_ptr< MaterialModel::Interface< dim > > base_model
ReactionModel::Tian2019Solubility< dim > tian2019_model
Definition: compat.h:59
double reference_darcy_coefficient() const override
void create_additional_named_outputs(MaterialModel::MaterialModelOutputs< dim > &out) const override
ReactionModel::Katz2003MantleMelting< dim > katz2003_model
void melt_fractions(const MaterialModel::MaterialModelInputs< dim > &in, std::vector< double > &melt_fractions) const override