Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question of the derivatives #2

Closed
nlqnly opened this issue Jan 12, 2023 · 2 comments
Closed

A question of the derivatives #2

nlqnly opened this issue Jan 12, 2023 · 2 comments

Comments

@nlqnly
Copy link

nlqnly commented Jan 12, 2023

Thanks for sharing the codes of the PDE-based PINN. However, I cannot understand why the derivatives need to multiply and divide the model size, like in the code for first order derivatives: du_y, dv_x = du_ya/b, dv_xb/a, and for second order derivatives: du_xx, du_yy, du_xy = du_xx/a, du_yy*a/b**2, du_xy/b. We're guessing that these are modifications for implicit derivatives. We sincerely invite your guidance, thank you!

@weili101
Copy link
Owner

Thanks for your interest in this work. Those modifications are for the purpose of rescaling the input coordinates within [0, 1] or [-1, 1].
Suppose that the true coordinates x', y' are in the range [0, a] and [0, b], the actual input coordinates will be x=x'/a and y=y'/b within range [0, 1]. The same was done for the outputs u=u'/a and v=v'/b (this is actually not necessary).
Therefore, we will have the true derivative du'/dy' = du/dy*a/b.
Hope that helps!

@nlqnly
Copy link
Author

nlqnly commented Jan 14, 2023

Thanks for your answer! We have understood it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants