Skip to content

Commit 86a989d

Browse files
committed
add notes on forcing term
1 parent fcb3700 commit 86a989d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/steady-state.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def f_model(u_model, x, y):
2828
ksq = constant(1.0)
2929
pi = constant(math.pi)
3030

31+
# we use this specific forcing term because we have an exact analytical solution for this case
32+
# to compare the results of the PINN solution
3133
# note that we must use tensorflow math primitives such as sin, cos, etc!
3234
forcing = - (a1 * pi) ** 2 * sin(a1 * pi * x) * sin(a2 * pi * y) - \
3335
(a2 * pi) ** 2 * sin(a1 * pi * x) * sin(a2 * pi * y) + \

0 commit comments

Comments
 (0)