Skip to content

Commit fd09e72

Browse files
redefine tt via tp and δt
1 parent b55dea8 commit fd09e72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

perpendicular-flap/fluid-nutils/fluid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def main(inflow: 'inflow velocity' = 10,
4343
= lambda f: theta * f + (1 - theta) * t0(f)
4444
# 1st order FD
4545
δt = lambda f: (f - t0(f)) / function.Argument('dt', ())
46-
# 2nd order FD
47-
tt = lambda f: (1.5 * f - 2 * t0(f) + 0.5 * t0(t0(f))) / function.Argument('dt', ())
4846
# extrapolation for pressure
4947
tp = lambda f: (1.5 * f - 0.5 * t0(f))
48+
# 2nd order FD
49+
tt = lambda f: tp(δt(f))
5050

5151
# Nutils namespace
5252
ns = function.Namespace()

0 commit comments

Comments
 (0)