Giter Site home page Giter Site logo

cgle's Introduction

Complex Ginzburg-Landau Equation (CGLE) Simulation

This repository contains a Jupyter Notebook (cgle.ipynb) that demonstrates a numerical simulation of the Complex Ginzburg-Landau Equation (CGLE), a nonlinear partial differential equation that describes a wide array of phenomena from fluid dynamics to quantum physics.

Overview

The CGLE is an equation of great interest in the study of pattern formation and turbulence in nonlinear, nonequilibrium systems. The equation takes the form of a partial differential equation with both linear and nonlinear terms that include complex coefficients.

$$\partial_t A = A + (1 + i\alpha) \nabla^2 A - (1 + i\beta)|A|^2 A$$

In this notebook, we present a numerical approach to solve this equation using a pseudo-spectral method and visualize the evolution of the complex field over time.

Dependencies

To run the notebook, you will need the following:

  • Python 3.x
  • Matplotlib (for plotting and animation)
  • NumPy (for numerical operations)

You can install these dependencies via pip:

pip install matplotlib numpy

Running the Simulation

To view and run the simulation:

  1. Clone this repository or download cgle.py and cgle.ipynb.
  2. Ensure you have Jupyter installed, or use an online platform such as Google Colab.
  3. Open the notebook and execute the cells in sequence.

Visualization

The notebook uses matplotlib to create snapshot plots that visualizes the dynamics of the complex field as they evolve in time according to the CGLE.

cgle's People

Contributors

jmframe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.