Combining PINN with FVM #861
-
Hi, Dr. Lu Lu! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 29 replies
-
You could compute for any point, as PINN is a network. To implement it in DeepXDE, it is possible and there might be multiple ways. But it is tricky, and I am not sure what the best way is. |
Beta Was this translation helpful? Give feedback.
-
I can tell you this idea, however, the code should be done by yourself.
|
Beta Was this translation helpful? Give feedback.
I can tell you this idea, however, the code should be done by yourself.
sample_func
,x_points
should be(n, num)
that representsn
sample points withnum
neighbors.x_points
so it will be(x1_1, x1_2, ...x1_num, x2_1, ..., xn_num)
, and the shape is(n*num, 1)
.x_points
andy_points
asx_y
.x_y
should be(n*num, 2)
my_model
is(n*num, 1)
. Reorganize the output with shape(n, num)
(n, 1)
as other tensors infinal_output