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

Data simulation of Reaction-Diffusion system in the Euler characteristic paper #4

Open
ZZKnight opened this issue Aug 18, 2021 · 0 comments

Comments

@ZZKnight
Copy link

I guess the code below in this example may be incorrect, though it does not hurt the conclusions significantly. I would appreciate it if someone could double check it. Thanks.

We update the variables.

    U[1:-1, 1:-1], V[1:-1, 1:-1] = \
        Uc + dt * (D*deltaU) + R*(Vc - Uc),\
        Vc + dt * (D*deltaV) + R*(Uc - Vc)

My suggestion:

We update the variables.

    U[1:-1, 1:-1], V[1:-1, 1:-1] = \
        Uc + dt * (D*deltaU + R*(Vc - Uc)),\
        Vc + dt * (D*deltaV + R*(Uc - Vc))
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