Coder Social home page Coder Social logo

dynamicslab / dominant-balance Goto Github PK

View Code? Open in Web Editor NEW
54.0 5.0 28.0 17.28 MB

Methods and code for J. L. Callaham, J. N. Kutz, B. W. Brunton, and S. L. Brunton (2020)

Home Page: https://arxiv.org/abs/2001.10019

License: MIT License

GLSL 0.05% MATLAB 0.30% M 0.01% Jupyter Notebook 99.58% Python 0.07%

dominant-balance's Introduction

DOI

Learning dominant physical processes with data-driven balance models

Code and details for the manuscript on data-driven dominant balance analysis. The repository should have everything needed to reproduce the results of the paper and get started exploring dominant balance in other systems.

The method essentially uses out of the box scikit-learn algorithms, so this repository doesn't have a separate library for import. All the Jupyter notebooks should basically be self-contained, provided the dependencies (below) are met. See Appendix A of the paper for detailed information on data provenance, but there are notebooks for the following examples:

1. Burgers equation

Simple PDE model for shock formation. This notebook is the most heavily annotated and is the easiest to understand and visualize, since the equation only has three terms. Data was generated with second-order finite difference solver

2. $\mathrm{Re}=100$ cylinder wake

Vortex shedding past a circular cylinder at moderate Reynolds number. This notebook also includes a demonstration of uncertainty analysis for the dominant balance procedure. Data was generated with a direct numerical simulation using the Nek5000 spectral element solver. The case files necessary to re-run the DNS are in the data folder.

3. Turbulent boundary layer

Main example from the paper. In addition to the results in the paper, the notebook shows that the identified balance regions are consistent with two kinds of scaling collapse: the Blasius profile in the laminar inflow region, and wall coordinates in the viscous sublayer. Data available from the Johns Hopkins Turbulence Database. We only make use of the mean profile, which is available as an HDF5 file.

4. Supercontinuum generation

Optical pulse propagation with the Generalized Nonlinear Schrodinger Equation. MATLAB spectral solver code originally obtained here, but modified scripts to run the solver, nondimensionalize the results, and extract the various terms from the solver are in the data folder.

5. Geostrophic balance

Surface currents in the Gulf of Mexico. Data was downloaded from the HYCOM group, but a MATLAB script to do the same is in the data folder.

6. Neuron model

Generalized Hodgkin-Huxley model of an intrinsically bursting neuron. Again, MATLAB scripts implementing the full model are in the data folder.

7. Rotating detonation engine analogue

Modified Majda-Burgers model of 1D combustion in a rotating detonation engine

Dependencies:

  • scikit-learn: all machine learning methods are implemented as off-the-shelf models
  • pymech: python package helpful for reading/writing Nek5000 data files (only needed for cylinder example)
  • pyclaw: python interface to the Clawpack finite volume solver (only needed to generate data for the RDE model)
  • Standard libraries:seaborn, scipy, numpy, matplotlib

dominant-balance's People

Contributors

jcallaham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.