-
Notifications
You must be signed in to change notification settings - Fork 711
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
Euler eqs. example #62
Comments
You can check the examples of Burgers, Poisson, diffusion equation, etc. The Euler equation is very similar to them. Let me know if you have any difficulty. |
Hello, thanks for your fast response and help. At the moment, I have this, which doesn't really work. Am I on the good way? from future import absolute_import import numpy as np import sys import deepxde as dde def main():
if name == "main": |
Some suggestions:
|
Hello, thanks for suggestions. If I understand correctly what you mean, I modified the code as follows, but I get an error about the BC: File "../deepxde/boundary_conditions.py", line 54, in error Thank you, from future import absolute_import import numpy as np import sys import deepxde as dde def main():
if name == "main": |
For example, we have a Dirichlet BC for the first output: There are similar error in your IC. Also, the following Python grammar is wrong, def ic_rho(x):
if x<0.5:
rho = 1.4 * np.ones(x.shape)
else:
rho = 1.0 * np.ones(x.shape) Here, input |
Hello,
I'd like to ask whether would be possible to add a simple example for Euler equations, even 1D, for example a nozzle flow or 1d shock flow, a riemann problem, please?
Or some hints on how to do it?
Kind regards,
Lorenzo Campoli
The text was updated successfully, but these errors were encountered: