(parameters:Heating_20model)=
# Heating model
## **Subsection:** Heating model
(parameters:Heating_20model/List_20of_20model_20names)=
### __Parameter name:__ List of model names
**Default value:**
**Pattern:** [MultipleSelection adiabatic heating|adiabatic heating of melt|compositional heating|constant heating|function|latent heat|latent heat melt|radioactive decay|shear heating|shear heating with melt ]
**Documentation:** A comma separated list of heating models that will be used to calculate the heating terms in the energy equation. The results of each of these criteria, i.e., the heating source terms and the latent heat terms for the left hand side will be added.
The following heating models are available:
‘adiabatic heating’: Implementation of a standard and a simplified model of adiabatic heating.
‘adiabatic heating of melt’: Implementation of a standard and a simplified model of adiabatic heating of melt. The full model implements the heating term
$\alpha T (-\phi \mathbf u_s \cdot \nabla p) + \alpha T (\phi \mathbf u_f \cdot \nabla p)$.
For full adiabatic heating, this has to be used in combination with the heating model ‘adiabatic heating’ to also include adiabatic heating for the solid part, and the full heating term is then $\alpha T ((1-\phi) \mathbf u_s \cdot \nabla p) + \alpha T (\phi \mathbf u_f \cdot \nabla p)$.
‘compositional heating’: Implementation of a model in which magnitude of internal heat production is determined from fixed values assigned to each compositional field. These values are interpreted as having units \si{\watt\per\meter\cubed}.
‘constant heating’: Implementation of a model in which the heating rate is constant.
‘function’: Implementation of a model in which the heating rate is given in terms of an explicit formula that is elaborated in the parameters in section “Heating model|Function”. The format of these functions follows the syntax understood by the muparser library, see Section~\ref{sec:muparser-format}.
The formula is interpreted as having units W/kg.
Since the symbol $t$ indicating time may appear in the formulas for the heating rate, it is interpreted as having units seconds unless the global parameter “Use years in output instead of seconds” is set.
‘latent heat’: Implementation of a standard model for latent heat.
‘latent heat melt’: Implementation of a standard model for latent heat of melting. This assumes that there is a compositional field called porosity, and it uses the reaction term of this field (the fraction of material that melted in the current time step) multiplied by a constant entropy change for melting all of the material as source term of the heating model.
If there is no field called porosity, the heating terms are 0.
‘radioactive decay’: Implementation of a model in which the internal heating rate is radioactive decaying in the following rule:
\[(\text{initial concentration})\cdot 0.5^{\text{time}/(\text{half life})}\]
The crust and mantle can have different concentrations, and the crust can be defined either by depth or by a certain compositional field.
The formula is interpreted as having units W/kg.
‘shear heating’: Implementation of a standard model for shear heating. Adds the term: $ 2 \eta \left( \varepsilon - \frac{1}{3} \text{tr} \varepsilon \mathbf 1 \right) : \left( \varepsilon - \frac{1}{3} \text{tr} \varepsilon \mathbf 1 \right)$ to the right-hand side of the temperature equation.
‘shear heating with melt’: Implementation of a standard model for shear heating of migrating melt, including bulk (compression) heating $\xi \left( \nabla \cdot \mathbf u_s \right)^2 $ and heating due to melt segregation $\frac{\eta_f \phi^2}{k} \left( \mathbf u_f - \mathbf u_s \right)^2 $. For full shear heating, this has to be used in combination with the heating model shear heating to also include shear heating for the solid part.
(parameters:Heating_20model/Adiabatic_20heating)=
## **Subsection:** Heating model / Adiabatic heating
(parameters:Heating_20model/Adiabatic_20heating/Use_20simplified_20adiabatic_20heating)=
### __Parameter name:__ Use simplified adiabatic heating
**Default value:** false
**Pattern:** [Bool]
**Documentation:** A flag indicating whether the adiabatic heating should be simplified from $\alpha T (\mathbf u \cdot \nabla p)$ to $ \alpha \rho T (\mathbf u \cdot \mathbf g) $.
(parameters:Heating_20model/Adiabatic_20heating_20of_20melt)=
## **Subsection:** Heating model / Adiabatic heating of melt
(parameters:Heating_20model/Adiabatic_20heating_20of_20melt/Use_20simplified_20adiabatic_20heating)=
### __Parameter name:__ Use simplified adiabatic heating
**Default value:** false
**Pattern:** [Bool]
**Documentation:** A flag indicating whether the adiabatic heating should be simplified from $\alpha T (\mathbf u \cdot \nabla p)$ to $ \alpha \rho T (\mathbf u \cdot \mathbf g) $.
(parameters:Heating_20model/Compositional_20heating)=
## **Subsection:** Heating model / Compositional heating
(parameters:Heating_20model/Compositional_20heating/Compositional_20heating_20values)=
### __Parameter name:__ Compositional heating values
**Default value:** 0.
**Pattern:** [List of <[Double 0...MAX_DOUBLE (inclusive)]> of length 0...4294967295 (inclusive)]
**Documentation:** List of heat production per unit volume values for background and compositional fields, for a total of N+1 values, where the first value corresponds to the background material, and N is the number of compositional fields. Units: \si{\watt\per\meter\cubed}.
(parameters:Heating_20model/Compositional_20heating/Use_20compositional_20field_20for_20heat_20production_20averaging)=
### __Parameter name:__ Use compositional field for heat production averaging
**Default value:** 1
**Pattern:** [List of <[Integer range 0...1 (inclusive)]> of length 0...4294967295 (inclusive)]
**Documentation:** A list of integers with as many entries as compositional fields plus one. The first entry corresponds to the background material, each following entry corresponds to a particular compositional field. If the entry for a field is ’1’ this field is considered during the computation of volume fractions, if it is ’0’ the field is ignored. This is useful if some compositional fields are used to track properties like finite strain that should not contribute to heat production. The first entry determines whether the background field contributes to heat production or not (essentially similar to setting its ’Compositional heating values’ to zero, but included for consistency in the length of the input lists).
(parameters:Heating_20model/Constant_20heating)=
## **Subsection:** Heating model / Constant heating
(parameters:Heating_20model/Constant_20heating/Radiogenic_20heating_20rate)=
### __Parameter name:__ Radiogenic heating rate
**Default value:** 0.
**Pattern:** [Double 0...MAX_DOUBLE (inclusive)]
**Documentation:** The specific rate of heating due to radioactive decay (or other bulk sources you may want to describe). This parameter corresponds to the variable $H$ in the temperature equation stated in the manual, and the heating term is $ho H$. Units: W/kg.
(parameters:Heating_20model/Function)=
## **Subsection:** Heating model / Function
(parameters:Heating_20model/Function/Function_20constants)=
### __Parameter name:__ Function constants
**Default value:**
**Pattern:** [Anything]
**Documentation:** Sometimes it is convenient to use symbolic constants in the expression that describes the function, rather than having to use its numeric value everywhere the constant appears. These values can be defined using this parameter, in the form ‘var1=value1, var2=value2, ...’.
A typical example would be to set this runtime parameter to ‘pi=3.1415926536’ and then use ‘pi’ in the expression of the actual formula. (That said, for convenience this class actually defines both ‘pi’ and ‘Pi’ by default, but you get the idea.)
(parameters:Heating_20model/Function/Function_20expression)=
### __Parameter name:__ Function expression
**Default value:** 0
**Pattern:** [Anything]
**Documentation:** The formula that denotes the function you want to evaluate for particular values of the independent variables. This expression may contain any of the usual operations such as addition or multiplication, as well as all of the common functions such as ‘sin’ or ‘cos’. In addition, it may contain expressions like ‘if(x>0, 1, -1)’ where the expression evaluates to the second argument if the first argument is true, and to the third argument otherwise. For a full overview of possible expressions accepted see the documentation of the muparser library at http://muparser.beltoforion.de/.
If the function you are describing represents a vector-valued function with multiple components, then separate the expressions for individual components by a semicolon.
(parameters:Heating_20model/Function/Variable_20names)=
### __Parameter name:__ Variable names
**Default value:** x,y,t
**Pattern:** [Anything]
**Documentation:** The names of the variables as they will be used in the function, separated by commas. By default, the names of variables at which the function will be evaluated are ‘x’ (in 1d), ‘x,y’ (in 2d) or ‘x,y,z’ (in 3d) for spatial coordinates and ‘t’ for time. You can then use these variable names in your function expression and they will be replaced by the values of these variables at which the function is currently evaluated. However, you can also choose a different set of names for the independent variables at which to evaluate your function expression. For example, if you work in spherical coordinates, you may wish to set this input parameter to ‘r,phi,theta,t’ and then use these variable names in your function expression.
(parameters:Heating_20model/Latent_20heat_20melt)=
## **Subsection:** Heating model / Latent heat melt
(parameters:Heating_20model/Latent_20heat_20melt/Melting_20entropy_20change)=
### __Parameter name:__ Melting entropy change
**Default value:** -300.
**Pattern:** [Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]
**Documentation:** The entropy change for the phase transition from solid to melt. Units: \si{\joule\per\kelvin\per\kilogram}.
(parameters:Heating_20model/Latent_20heat_20melt/Retrieve_20entropy_20change_20from_20material_20model)=
### __Parameter name:__ Retrieve entropy change from material model
**Default value:** false
**Pattern:** [Bool]
**Documentation:** Instead of using the entropy change given in the ’Melting entropy change’ query the EnthalpyAdditionalOutputs in the material model to compute the entropy change for the phase transition from solid to melt.Units: $J/(kg K)$.
(parameters:Heating_20model/Radioactive_20decay)=
## **Subsection:** Heating model / Radioactive decay
(parameters:Heating_20model/Radioactive_20decay/Crust_20composition_20number)=
### __Parameter name:__ Crust composition number
**Default value:** 0
**Pattern:** [Integer range 0...2147483647 (inclusive)]
**Documentation:** Which composition field should be treated as crust
(parameters:Heating_20model/Radioactive_20decay/Crust_20defined_20by_20composition)=
### __Parameter name:__ Crust defined by composition
**Default value:** false
**Pattern:** [Bool]
**Documentation:** Whether crust defined by composition or depth
(parameters:Heating_20model/Radioactive_20decay/Crust_20depth)=
### __Parameter name:__ Crust depth
**Default value:** 0.
**Pattern:** [Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]
**Documentation:** Depth of the crust when crust if defined by depth. Units: \si{\meter}.
(parameters:Heating_20model/Radioactive_20decay/Half_20decay_20times)=
### __Parameter name:__ Half decay times
**Default value:**
**Pattern:** [List of <[Double 0...MAX_DOUBLE (inclusive)]> of length 0...4294967295 (inclusive)]
**Documentation:** Half decay times. Units: (Seconds), or (Years) if set ‘use years instead of seconds’.
(parameters:Heating_20model/Radioactive_20decay/Heating_20rates)=
### __Parameter name:__ Heating rates
**Default value:**
**Pattern:** [List of <[Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]> of length 0...4294967295 (inclusive)]
**Documentation:** Heating rates of different elements (W/kg)
(parameters:Heating_20model/Radioactive_20decay/Initial_20concentrations_20crust)=
### __Parameter name:__ Initial concentrations crust
**Default value:**
**Pattern:** [List of <[Double 0...MAX_DOUBLE (inclusive)]> of length 0...4294967295 (inclusive)]
**Documentation:** Initial concentrations of different elements (ppm)
(parameters:Heating_20model/Radioactive_20decay/Initial_20concentrations_20mantle)=
### __Parameter name:__ Initial concentrations mantle
**Default value:**
**Pattern:** [List of <[Double 0...MAX_DOUBLE (inclusive)]> of length 0...4294967295 (inclusive)]
**Documentation:** Initial concentrations of different elements (ppm)
(parameters:Heating_20model/Radioactive_20decay/Number_20of_20elements)=
### __Parameter name:__ Number of elements
**Default value:** 0
**Pattern:** [Integer range 0...2147483647 (inclusive)]
**Documentation:** Number of radioactive elements