Skip to content

Commit

Permalink
Adjust sediment temperature model
Browse files Browse the repository at this point in the history
  • Loading branch information
Maginor committed Sep 26, 2024
1 parent 079f77c commit 26a2c6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion models/modules/nivafjord/basin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ Authors: Magnus D. Norling
(in_flux(sw_vert, layer.water.heat)->>)*(1 - attn) * A[vert.below]/A
}

sed_alb : constant("Sediment albedo", [], 0.3)

flux(layer.water.heat, sw_sed, [J, day-1], "Shortwave to sediments") {
(in_flux(sw_vert, layer.water.heat)->>)*(1 - attn) * (A - A[vert.below])/A
(in_flux(sw_vert, layer.water.heat)->>)*(1 - attn)*(1 - sed_alb) * (A - A[vert.below])/A
}
}
7 changes: 4 additions & 3 deletions models/modules/nivafjord/sediment.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ module("NIVAFjord sediments", version(0, 0, 3),

# Set these as parameters: ?
sed_rho : constant("Sediment density", [k g, m-3], 2600)
sed_C : constant("Sediment specific heat capacity", [J, k g-1, K-1], 5000) #TODO: Find a good value
sed_k : constant("Sediment heat conductivity coefficient", [W, m-1, K-1], 20) #TODO: This is 10 times too high, but it probably must black-body radiate??
sed_C : constant("Sediment specific heat capacity", [J, k g-1, K-1], 4000) #TODO: Find a good value
sed_k : constant("Sediment heat conductivity coefficient", [W, m-1, K-1], 2) #TODO: This is 10 times too high, but otherwise heat just builds up...

par_group("Sediment temperature") {
dzh : par_real("Thickness of thermally active sediment layer", [m], 0.5)
Expand All @@ -59,10 +59,11 @@ module("NIVAFjord sediments", version(0, 0, 3),
V := area*dzh,
T_avg := heat / (sed_C*sed_rho*area*dzh) -> [deg_c],
2*T_avg - T_bot
#(T_avg - T_bot/4)*(4/3)
} @initial { layer.water.temp } # Or T_bot?

flux(layer.water.heat, sediment.heat, [J, day-1], "Water-sediment heat conduction") {
dz_ := 0.5*(layer.dz + dzh),
dz_ := 0.5[m],#layer.dz,#0.5*(layer.dz + dzh),
sediment.area*(layer.water.temp->[K] - sediment.temp->[K])*sed_k/dz_ ->>
}

Expand Down

0 comments on commit 26a2c6d

Please sign in to comment.