Code Monkey home page Code Monkey logo

pylsa's Introduction

pylsa

Python code collection to solve the linear stabilty problem arising in convection problems. rbc-1d.py and rbc-2d.py contain the special case of Rayleigh-Benard convection.

Theoretical Background

The basis is the dimensionless Navier--Stokes equation:

equation

Using the modal ansatz for velocity, pressure and temperature fluctuations equation

equation

the two dimensional linearized Navier-Stokes equation with thermal forcing can be written in Matrix form

equation

equation

where overlines denote mean flow quantities and D_x is a suitable differentiation matrix (DM), for example a chebyshev DM. This is a generalized Eigenvalue problem (EVP) of the form

equation

of size equation and can be solved directly or iteratively.

In case of an infinite horizontal domain, we can apply the modal ansatz also in the x-direction. Practically, this is simply done by replacing equation, thus the dimensionality of the system is reduced and the EVP is of size equation.

Find the neutral curve

A steady state becomes unstable when the eigenvalue of the rhs is zero, then the Rayleigh number corresponds to the critical Rayleigh number Ra_c. One can solve directly for Ra_c by rewriting the above matrix:

equation

where the eigenvalue is now representative for the critical Rayleigh number.

Dependencies

numpy matplotlib scipy

Publications

P. Reiter and X. Zhang and R. Stepanov and O. Shishkina, Generation of zonal flows in convective systems by travelling thermal waves, J. Fluid Mech., 913 (2021), A13

G. Ahlers, E. Bodenschatz, R. Hartmann, X. He, D. Lohse, P. Reiter, R. Stevens, R. Verzicco, M. Wedi, S. Weiss, X. Zhang, L. Zwirner and O. Shishkina, Aspect ratio dependence of heat transfer in a cylindrical Rayleigh–Benard cell, in preparation (2021)

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.