Skip to content

Commit 50cf00b

Browse files
committed
Add variational form of ice shelf momentum balance
1 parent 661f5a8 commit 50cf00b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/icepack2/model/variational.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,10 @@ def momentum_balance(**kwargs):
7878
return cell_balance + facet_balance
7979

8080

81+
def ice_shelf_momentum_balance(**kwargs):
82+
field_names = ("membrane_stress", "thickness", "test_function")
83+
M, h, v = map(kwargs.get, field_names)
84+
ε = sym(grad(v))
85+
86+
ρ = ρ_I * (1 - ρ_I / ρ_W)
87+
return (-h * inner(M, ε) + 0.5 * ρ * g * h**2 * div(v)) * dx

0 commit comments

Comments
 (0)