Skip to content
Snippets Groups Projects
Commit 32782e38 authored by Brian Groenke's avatar Brian Groenke
Browse files

Minor adjustment to advective heat flux

parent b36c5403
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ WaterHeatBC(waterbc::WaterBC, heatbc::HeatBC) = Coupled(waterbc, heatbc) ...@@ -10,7 +10,7 @@ WaterHeatBC(waterbc::WaterBC, heatbc::HeatBC) = Coupled(waterbc, heatbc)
Computes the advective energy flux between grid cells with temperatures `T₁` and `T₂` Computes the advective energy flux between grid cells with temperatures `T₁` and `T₂`
given the heat capacity of water `cw` and latent heat of fusion `L`. given the heat capacity of water `cw` and latent heat of fusion `L`.
""" """
advectiveflux(jw, T₁, T₂, cw, L) = jw*(cw*T₁*(jw > zero(jw)) + cw*T₂*(jw < zero(jw)) + L) advectiveflux(jw, T₁, T₂, cw, L) = jw*(cw*(T₁-T₂) + L)
""" """
water_energy_advection!(::SubSurface, ::Coupled(WaterBalance, HeatBalance), state) water_energy_advection!(::SubSurface, ::Coupled(WaterBalance, HeatBalance), state)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment