ASPECT
compositional_viscosity_prefactors.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 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_rheology_compositional_viscosity_prefactors_h
22 #define _aspect_material_model_rheology_compositional_viscosity_prefactors_h
23 
24 #include <aspect/global.h>
27 
28 namespace aspect
29 {
30  namespace MaterialModel
31  {
32  using namespace dealii;
33 
34  namespace Rheology
35  {
41  template <int dim>
43  {
44  public:
49 
53  static
54  void
55  declare_parameters (ParameterHandler &prm);
56 
60  void
61  parse_parameters (ParameterHandler &prm);
62 
63  // The flow laws that can be
64  // currently modified.
66  {
68  dislocation
69  } modified_flow_laws;
70 
74  double
75  compute_viscosity (const MaterialModel::MaterialModelInputs<dim> &in,
76  const double base_viscosity,
77  const unsigned int composition_index,
78  const unsigned int q,
79  const ModifiedFlowLaws &modified_flow_laws) const;
80 
81  private:
98  {
101  } viscosity_prefactor_scheme;
102 
103  // Initialize variables for the water fugacity calculation, from HK04
107 
108  // From Hirth & Kohlstaedt 2004, equation 6
109  const double A_H2O = 2.6e-5; // 1/Pa
110  const double activation_energy_H2O = 40e3; // J/mol/K
111  const double activation_volume_H2O = 10e-6; // m^3/mol
112 
113  // We calculate the molar mass of olivine using the molar mass of fayalite (0.20379 kg/mol)
114  // and the molar mass of forsterite (0.140693 kg/mol), and a mole fraction of 90% forsterite
115  // in olivine.
116  const double molar_mass_olivine = 0.1470027; // kg/mol
117  const double molar_mass_H2O = 0.01801528; // kg/mol
118  };
119  }
120  }
121 }
122 #endif
void declare_parameters(ParameterHandler &prm)
Definition: compat.h:59
Definition: compat.h:42