-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Hi,
In the line below
MultiscalePINNs/heat1D/heat1D.py
Lines 32 to 37 in f300c74
| def operator(u, t, x, k, sigma_t=1.0, sigma_x=1.0): | |
| u_t = tf.gradients(u, t)[0] / sigma_t | |
| u_x = tf.gradients(u, x)[0] / sigma_x | |
| u_xx = tf.gradients(u_x, x)[0] / sigma_x | |
| residual = u_t - k * u_xx | |
| return residual |
I have two question:
- Seems that when the function is called
MultiscalePINNs/heat1D/models_tf.py
Lines 600 to 604 in f300c74
def net_r(self, t, x): u = self.net_u(t, x) residual = self.operator(u, t, x, self.k, self.sigma_t, self.sigma_x) return residual
you give slightly differentsigma_xandsigma_t, does not that break the balance of the equation? - Why
sigma_xoccurred twice in the second term (spatial 2nd derivative)? Does this mean that you are actually changing the PDE you are solving?
In addition, I got an output below that seems different comparing with the figure 12 in the paper (using heat1D_ST_FF), do you have any idea?

Metadata
Metadata
Assignees
Labels
No labels