Skip to content

Commit 52d210b

Browse files
authored
Merge pull request #83 from NumericalEarth/ncc/latex-render
Tweak some latex rendering in the docs
2 parents 0587039 + d935996 commit 52d210b

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

docs/src/physics/soil_energy_water.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ where $\mathbf{j}_\text{h}$ (W/m²) is the diffusive heat flux vector and $\math
2424
Since ground materials are often porous, i.e., there exists void space between the solid particles, it is necessary to consider the potential presence of water and/or ice in this void space, which is hereafter referred to as pore space, or simply, soil pores. The thermal effects of water and ice can be accounted for by considering not only the temperature of the material but rather the total internal energy of the elementary volume. Combining the diffusive flux with a potential advective heat flux $j_z^{\text{w}}$ due to water flow yields the energy conservation law,
2525
```math
2626
\begin{equation}
27-
\frac{\partial U(T,\theta)}{\partial t} - \nabla \cdot \left(\mathbf{j}_\text{h} + \mathbf{j}_h^{\text{w}}\right) - F_h(z,t) = 0\,,
27+
\frac{\partial U(T,\theta)}{\partial t} - \boldsymbol{\nabla} \cdot \left(\mathbf{j}_\text{h} + \mathbf{j}_h^{\text{w}}\right) - F_h(z,t) = 0\,,
2828
\end{equation}
2929
```
3030
where $U(T,\theta)$ (J/m³) is the volumetric internal energy as a function of temperature and total water/ice content $\theta$ (m³/m³), and $F_h(z,t)$ is an inhomogeneous heat source/sink (forcing) term.
@@ -42,7 +42,7 @@ where $L_{\text{sl}}$ and $c_{\text{w}}$ (J/kg) represent the specific latent he
4242
The constitutive relationship between energy and temperature plays a key role in characterizing the subsurface energy balance. This relation can be defined in integral form as
4343
```math
4444
\begin{equation}
45-
U(T,\theta) = \int_{T_{\text{ref}}}^T \tilde{C}(x,\theta) \, dx\,,
45+
U(T,\theta) = \int_{T_{\text{ref}}}^T \tilde{C}(x,\theta) \, \mathrm{d}x\,,
4646
%= \overbrace{\HC(\thetaw,\thetai)\left[T-T_{\text{ref}}\right]}^{\text{Sensible}} + \overbrace{\densityw \LHF\thetaw(T,\thetawi)}^{\text{Latent}},
4747
\end{equation}
4848
```
@@ -84,7 +84,7 @@ where $C = C(\theta_{\text{w}},\theta)$ is the volumetric heat capacity (J/K/m³
8484

8585
The vertical flow of water in porous media, such as soils, can be formulated as following the conservation law
8686
```math
87-
\phi\frac{\partial\vartheta(\psi)}{\partial t} - \nabla \cdot \textbf{j}_{\text{w}} - F_{\text{w}}(z,t) = 0,
87+
\phi\frac{\partial\vartheta(\psi)}{\partial t} - \boldsymbol{\nabla} \cdot \textbf{j}_{\text{w}} - F_{\text{w}}(z,t) = 0,
8888
```
8989
where $\phi$ is the natural porosity (or saturated water content) of the soil volume and $F_{\text{w}}(z,t)$ (m/s) is an inhomogeneous source/sink (forcing) term.
9090

src/processes/soil/energy/soil_energy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Represents an explicit formulation of the two-phase heat conduction operator in 1D:
55
66
```math
7-
\\frac{\\partial U(T,\\phi)}{\\partial t} = \\nabla \\cdot \\kappa(T)\\nabla_x T(x,t)
7+
\\frac{\\partial U(T,\\phi)}{\\partial t} = \\boldsymbol{\\nabla} \\cdot \\left[ \\kappa(T) \\boldsymbol{\\nabla}_x T(x,t) \\right]
88
```
99
where \$T\$ is temperature [K], \$U\$ is internal energy [J m⁻³], and \$\\kappa\$ is the thermal conductivity [W m K⁻¹].
1010
"""

src/processes/soil/energy/soil_thermal_properties.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ end
100100
The inverse quadratic (or "quadratic parallel") bulk thermal conductivity formula (Cosenza et al. 2003):
101101
102102
```math
103-
k = [\\sum_{i=1}^N θᵢ\\sqrt{kᵢ}]^2
103+
k = \\left[\\sum_{i=1}^N θᵢ\\sqrt{kᵢ}\\right]^2
104104
```
105105
106106
Cosenza, P., Guérin, R., and Tabbagh, A.: Relationship between thermal

src/processes/soil/hydrology/soil_hydrology_rre.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
of the Richardson-Richards equation:
66
77
```math
8-
\\phi(z) \\frac{\\partial s_{\\mathrm{wi}}(\\Psi(z,t))}{\\partial t} = \\n+\\nabla \\cdot \\bigl(K(s_{\\mathrm{wi}}, T) \\; \\n+\\nabla (\\psi_m + 1)\\bigr)
8+
\\phi(z) \\frac{\\partial s_{\\mathrm{wi}}(\\Psi(z,t))}{\\partial t} = \\boldsymbol{\\nabla} \\cdot \\left[ K(s_{\\mathrm{wi}}, T) + \\boldsymbol{\\nabla} (\\psi_m + 1)\\right]
99
```
1010
which describes the vertical movement of water according to gravity-driven
1111
percolation and capillary-driven diffusion.

src/processes/surface_hydrology/ground_evaporation.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,10 @@ ConstantEvaporationResistanceFactor(::Type{NF}; kwargs...) where {NF} = Constant
7676
Implements the soil moisture limiting resistance factor of Lee and Pielke (1992),
7777
7878
```math
79-
\\beta = \\begin{cases}
80-
\\frac{1}{4} \\left(1 - \\cos\\left(π \\frac{\\theta_1}{\\theta_{\\text{fc}}} \\right)\\right) & \\theta_1 < \\theta_{\\text{fc}} \\
81-
1 & \\text{otherwise}
82-
\\end{cases}
79+
\\beta =
80+
\\frac{1}{4} \\left[1 - \\cos\\left(π \\theta_1/\\theta_{\\text{fc}} \\right)\\right] \\quad \\text{for } \\theta_1 < \\theta_{\\text{fc}}
8381
```
82+
otherwise ``\\beta=1``.
8483
"""
8584
struct SoilMoistureResistanceFactor{NF} <: AbstractGroundEvaporationResistanceFactor end
8685

src/processes/vegetation/plant_available_water.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ Implementation of vegetation water availability (a.k.a "plant available water")
55
that computes the wilting fraction
66
77
```math
8-
W_i = \\min(\\frac{\\theta_{\\text{w},i} - \\theta_{\\text{wp},i}}{\\theta_{\\text{fc},i} - \\theta_{\\text{wp},i}}}, 1)
8+
W_i = \\min\\left(\\frac{\\theta_{\\text{w},i} - \\theta_{\\text{wp},i}}{\\theta_{\\text{fc},i} - \\theta_{\\text{wp},i}}
9+
, 1\\right)
910
```
1011
11-
where ``\\theta_{\\text{w},i}`` is the volumetric water content of the i'th soil layer, ``\\theta_{\\text{fc},i}``
12+
where ``\\theta_{\\text{w},i}`` is the volumetric water content of the ``i``'th soil layer, ``\\theta_{\\text{fc},i}``
1213
is the "field capacity", and ``\\theta_{\\text{wp},i}`` is the "wilting point". The water availability
1314
1415
Properties:

src/processes/vegetation/root_distribution.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ based on the scheme proposed by Zeng (2001). The PDF of the root distribution
66
is modeled as
77
88
```math
9-
\\frac{\\partial R}{\\partial z} = \\frac{1}{2} \\left( a \\exp(a z) + b \\exp(b z) \\right)
9+
\\frac{\\partial R}{\\partial z} = \\frac{1}{2} \\left[ a \\exp(a z) + b \\exp(b z) \\right]
1010
```
1111
which is then integrated over the soil column and normalized to sum to unity. Note that
1212
this is effectively the average of two exponential distributions with rates `a` and `b`, both

0 commit comments

Comments
 (0)