Skip to content

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

Description

@HyyydeXD

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions