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:
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
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.
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.
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.
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.
Generalized Hodgkin-Huxley model of an intrinsically bursting neuron. Again, MATLAB scripts implementing the full model are in the data folder.
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 modelspymech
: 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