Skip to content
Discussion options

You must be logged in to vote

So it turns out that the Kuramoto-Sivashinsky equation exists with different definitions of the squared term. Some use the square of the gradient $|\nabla c|^2$ (the example code does too!) and this equation is not conserved. So the behaviour observed by @deephog is correct. Others use the gradient of the square $\nabla (c^2)$. With periodic boundary conditions this equation seems to be conserved.

This code will run a simulation with the second (i.e. conserved) equation and should yield the desired behaviour according to the OP:

import pde

# make 1D grid
 grid = pde.CartesianGrid([(0, 60)], [128], periodic=True)

# initial condition: random field
state = pde.ScalarField.random_uniform(grid

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@deephog
Comment options

@david-zwicker
Comment options

@gerritwellecke
Comment options

@gerritwellecke
Comment options

Answer selected by gerritwellecke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants