-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move all resources into docs folder * Embed design decisions * Embed design decisions * Intro to advection * Add all linear time steppers * Ensure documentation displays correctly * Add nonlinear problems * Ensure documentation displays properly * Reformate for mkdocs * Reformate for mkdocs * Proxy setup of ICs to have reaction diffusion work * Setup all reaction-diffusion steppers * Comply with markdown * Add docs for normalized and difficulty conversion utilties * Add docs to general steppers * Fix spelling mistake * Adapt to name change * Add all normalized steppers * Add doc files for difficulty interface * Add docs for all ICs * Rework linking to make mkdocstrings work * Add documentation for metrics * Export placeholder functions * Ensure consistent naming * Add docs for visualization routines * Add docs for smaller utility functions * Add documentation for Poisson solver * Add missing members selector * Add ETDRK and base classes docs * Add all documentation for the nonlinear functions * Enhance landing page
- Loading branch information
Showing
101 changed files
with
1,615 additions
and
1,224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# ETDRK Backbone | ||
|
||
Core clases that implement the Exponential Time Differencing Runge-Kutta (ETDRK) | ||
method for solving semi-linear PDEs in form of timesteppers. Require supplying | ||
the time step size $\Delta t$, the linear operator in Fourier space $\hat{\mathcal{L}}_h$, and the non-linear operator in Fourier space $\hat{\mathcal{N}}_h$. | ||
|
||
::: exponax.etdrk.ETDRK0 | ||
options: | ||
members: | ||
- __init__ | ||
- step_fourier | ||
|
||
--- | ||
|
||
::: exponax.etdrk.ETDRK1 | ||
options: | ||
members: | ||
- __init__ | ||
- step_fourier | ||
|
||
--- | ||
|
||
::: exponax.etdrk.ETDRK2 | ||
options: | ||
members: | ||
- __init__ | ||
- step_fourier | ||
|
||
--- | ||
|
||
::: exponax.etdrk.ETDRK3 | ||
options: | ||
members: | ||
- __init__ | ||
- step_fourier | ||
|
||
--- | ||
|
||
::: exponax.etdrk.ETDRK4 | ||
options: | ||
members: | ||
- __init__ | ||
- step_fourier | ||
|
||
--- | ||
|
||
::: exponax.etdrk.BaseETDRK | ||
options: | ||
members: | ||
- __init__ | ||
- step_fourier | ||
|
||
--- | ||
|
||
::: exponax.etdrk.roots_of_unity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Convection | ||
|
||
::: exponax.normalized.DifficultyConvectionStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Gradient Norm | ||
|
||
::: exponax.normalized.DifficultyGradientNormStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Linear | ||
|
||
::: exponax.normalized.DifficultyLinearStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Nonlinear | ||
|
||
::: exponax.normalized.DifficultyGeneralNonlinearStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Polynomial | ||
|
||
::: exponax.normalized.DifficultyPolynomialStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Convection | ||
|
||
::: exponax.normalized.NormalizedConvectionStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Gradient NormA | ||
|
||
::: exponax.normalized.NormalizedGradientNormStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Nonlinear | ||
|
||
::: exponax.normalized.NormalizedGeneralNonlinearStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Polynomial | ||
|
||
::: exponax.normalized.NormalizedPolynomialStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Vorticity Convection | ||
|
||
::: exponax.normalized.NormalizedVorticityConvection | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Burgers | ||
|
||
In 1D: | ||
|
||
$$ \frac{\partial u}{\partial t} + \frac{1}{2} \frac{\partial u^2}{\partial x} = \nu \frac{\partial^2 u}{\partial x^2} $$ | ||
|
||
In higher dimensions: | ||
|
||
$$ \frac{\partial u}{\partial t} + \frac{1}{2} \nabla \cdot (u \odot u) = \nu \nabla \cdot \nabla u $$ | ||
|
||
(with as many channels (=velocity components) as spatial dimensions) | ||
|
||
::: exponax.stepper.Burgers | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# General Convection Stepper | ||
|
||
::: exponax.stepper.GeneralConvectionStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# General Gradient Norm Stepper | ||
|
||
::: exponax.stepper.GeneralGradientNormStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# General Linear Stepper | ||
|
||
::: exponax.stepper.GeneralLinearStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# General Nonlinear Stepper | ||
|
||
::: exponax.stepper.GeneralNonlinearStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# General Polynomial Stepper | ||
|
||
::: exponax.stepper.GeneralPolynomialStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
7 changes: 7 additions & 0 deletions
7
docs/api/stepper/physical/general/general_vorticity_convection.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# General Vorticity Convection Stepper | ||
|
||
::: exponax.stepper.GeneralVorticityConvectionStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Korteweg-de Vries | ||
|
||
::: exponax.stepper.KortewegDeVries | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Kuramoto-Sivashinsky equation | ||
|
||
In 1D: | ||
|
||
$$ \frac{\partial u}{\partial t} + \frac{1}{2} \left(\frac{\partial u}{\partial x}\right)^2 + \frac{\partial^2 u}{\partial x^2} + \frac{\partial^4 u}{\partial x^4} = 0 $$ | ||
|
||
In higher dimensions: | ||
|
||
$$ \frac{\partial u}{\partial t} + \frac{1}{2} \left \| \nabla u \right \|^2 + \nabla \cdot \nabla u + \nabla \cdot (\nabla \odot \nabla \odot \nabla) u = 0 $$ | ||
|
||
Uses the combustion format via the gradient norm that easily scales to higher dimensions. | ||
|
||
::: exponax.stepper.KuramotoSivashinsky | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Kuramoto-Sivashinsky (conservative format) | ||
|
||
Uses the convection nonlinearity similar to Burgers, but only works in 1D: | ||
|
||
$$ \frac{\partial u}{\partial t} + \frac{1}{2} \frac{\partial u^2}{\partial x} + \frac{\partial^2 u}{\partial x^2} + \frac{\partial^4 u}{\partial x^4} = 0 $$ | ||
|
||
::: exponax.stepper.KuramotoSivashinskyConservative | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Advection-Diffusion | ||
|
||
In 1D: | ||
|
||
$$ \frac{\partial u}{\partial t} + c \frac{\partial u}{\partial x} = \nu \frac{\partial^2 u}{\partial x^2} $$ | ||
|
||
In higher dimensions: | ||
|
||
$$ \frac{\partial u}{\partial t} + \vec{c} \cdot \nabla u = \nu \nabla \cdot \nabla u $$ | ||
|
||
(often just $\vec{c} = c \vec{1}$) and potentially with anisotropic diffusion. | ||
|
||
::: exponax.stepper.AdvectionDiffusion | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Diffusion | ||
|
||
In 1D: | ||
|
||
$$ \frac{\partial u}{\partial t} = \nu \frac{\partial^2 u}{\partial x^2} $$ | ||
|
||
In higher dimensions: | ||
|
||
$$ \frac{\partial u}{\partial t} = \nu \nabla \cdot \nabla u $$ | ||
|
||
or with anisotropic diffusion: | ||
|
||
$$ \frac{\partial u}{\partial t} = \nabla \cdot \left( A \nabla u \right) $$ | ||
|
||
with $A \in \R^{D \times D}$ symmetric positive definite. | ||
|
||
::: exponax.stepper.Diffusion | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Dispersion | ||
|
||
In 1D: | ||
|
||
$$ \frac{\partial u}{\partial t} = \xi \frac{\partial^3 u}{\partial x^3} $$ | ||
|
||
In higher dimensions: | ||
|
||
$$ \frac{\partial u}{\partial t} = \xi \nabla \cdot (\nabla \odot \nabla) u $$ | ||
|
||
or with spatial mixing: | ||
|
||
$$ \frac{\partial u}{\partial t} = \xi (1 \cdot \nabla) (\nabla \cdot \nabla) u $$ | ||
|
||
::: exponax.stepper.Dispersion | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Hyper-Diffusion | ||
|
||
In 1D: | ||
|
||
$$ \frac{\partial u}{\partial t} = \xi \frac{\partial^4 u}{\partial x^4} $$ | ||
|
||
In higher dimensions: | ||
|
||
$$ \frac{\partial u}{\partial t} = \zeta \nabla \cdot (\nabla \odot \nabla \odot \nabla) u $$ | ||
|
||
or with spatial mixing: | ||
|
||
$$ \frac{\partial u}{\partial t} = \zeta (\nabla \cdot \nabla)(\nabla \cdot \nabla) u $$ | ||
|
||
::: exponax.stepper.HyperDiffusion | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
Oops, something went wrong.