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;
71  double compute_bulk_density (const double porosity,
72  const double solid_density,
73  const double fluid_density) const;
74 
83  double compute_mass_fraction (const double volume_fraction,
84  const double material_density,
85  const double bulk_density) const;
86 
101  std::vector<double> &melt_fractions,
102  const MaterialModel::MaterialModelOutputs<dim> *out = nullptr) const override;
103 
108  void
109  initialize () override;
110 
114  void update() override;
115 
119  void
120  evaluate (const typename Interface<dim>::MaterialModelInputs &in,
121  typename Interface<dim>::MaterialModelOutputs &out) const override;
122 
126  static void
127  declare_parameters (ParameterHandler &prm);
128 
132  void
133  parse_parameters (ParameterHandler &prm) override;
134 
139  void
141 
142  private:
143 
147  std::unique_ptr<MaterialModel::Interface<dim>> base_model;
148 
155  double eta_f;
157 
168  double alpha_phi;
169  double reference_T;
170 
175 
176  /*
177  * Object for computing Katz 2003 melt parameters
178  */
180 
181  /*
182  * Object for computing Tian 2019 parameterized solubility parameters
183  */
185 
229  {
234  }
236  };
237  }
238 }
239 
240 #endif
void parse_parameters(ParameterHandler &prm) override
enum aspect::MaterialModel::ReactiveFluidTransport::ReactionScheme fluid_solid_reaction_scheme
double compute_mass_fraction(const double volume_fraction, const double material_density, const double bulk_density) const
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
double compute_bulk_density(const double porosity, const double solid_density, const double fluid_density) const
void melt_fractions(const MaterialModel::MaterialModelInputs< dim > &in, std::vector< double > &melt_fractions, const MaterialModel::MaterialModelOutputs< dim > *out=nullptr) const override
double reference_darcy_coefficient() const override
void create_additional_named_outputs(MaterialModel::MaterialModelOutputs< dim > &out) const override
ReactionModel::Katz2003MantleMelting< dim > katz2003_model