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

Scalar field becomes filled with NaN s #1

Open
yohad opened this issue Jun 16, 2022 · 0 comments
Open

Scalar field becomes filled with NaN s #1

yohad opened this issue Jun 16, 2022 · 0 comments

Comments

@yohad
Copy link

yohad commented Jun 16, 2022

Hi,
I'm trying to solve the Swift-Hohenbeg model's PDE as such:

l = 3
k_c = 0.5

grid = pde.CartesianGrid([[0, 100], [0, 100]], [100, 100])
field = pde.ScalarField.random_normal(grid, mean=10)

storage = pde.MemoryStorage()
eq = pde.PDE({"u": f"u -{l}*u**3 -laplace(laplace(u)) -{k_c**4}*u - 2*{k_c**2}*laplace(u)"})
result = eq.solve(field, t_range=100, dt=1e-2, tracker=["progress", storage.tracker(1)])
result.plot()

But for many values of l and k_c, The final result becomes a scalar field filled with NaN.

The current values causes this error.
Thanks

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