IC loss for the 2D Allen-Cahn version does not change after first iteration #1473
Unanswered
jannesvpoppelen
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I tried implementing the 2D Allen-Cahn equation to get familiar with the library. I am aware that there is a 1D example available, however, that implements the boundary and initial conditions in a different way than I do, and I don't understand how to rewrite mine to be consistent with the example. I think I have everything set up correctly, but when I try to train the network, the IC loss does not change at all. I have taken a look at the FAQ ( I failed to train the network or get the right solution, e.g., large training loss, unbalanced losses.), and tried some suggestions there, such as changing the weight, adding more num_initial, changing the time interval, and all of these did not seem to resolve the issue.
The exact problem I tried solving is
Any help would be greatly appreciated.
Additionally, I would like to use JAX as the backend for the library, while right now I am using Tensorflow. There do not exist any examples that use JAX, and the syntax seems to be slightly different when compared, so if I can get some pointers on how to translate this code using the JAX backend, I would also appreciate that!
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions