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

About the One-dimensional Poisson’s equation with boundary layer solution #7

Open
HyyydeXD opened this issue Apr 9, 2024 · 1 comment

Comments

@HyyydeXD
Copy link

HyyydeXD commented Apr 9, 2024

Hello Ehsan,
I changed the u_exit() and the f_exit() in the hp-vpinn-poission-1d.py with the same equation in the paper as:

    def u_ext(x):
        utemp = 0.1 * np.sin(5 * np.pi * x) + np.e**(-99 - 100 * x)
        return amp * utemp
    def f_ext(x):
        gtemp = -(0.5 * np.cos(5 * np.pi * x) - 100 * np.e**(-99 - 100 * x))
        return -amp * gtemp

However, I cant get the same solution, instead I get a completely wrong solution. BTW I didn't change anywhere else but this two functions.
And I noticed that the output of the lossv is weird. It seems too small. Maybe the wrong loss is to be blamed.
Could you please tell me where I went wrong?

Best
Hyde

@HyyydeXD
Copy link
Author

HyyydeXD commented Apr 9, 2024

And would you please upload the codes about solving the Bugers' Equation? That would be of great help.

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

1 participant