Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DedalusProject/dedalus/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Dedalus supports native polar coordinate problems on disks and annuli using specialized bases:- DiskBasis: For problems on the full disk (r ∈ [0, R])
- AnnulusBasis: For problems on an annular region (r ∈ [R_i, R_o])
Disk Libration
File:examples/ivp_disk_libration/libration.py
Description
Simulates the librational instability in a disk—a phenomenon that occurs when a cylinder of fluid undergoes oscillatory (librational) forcing. The simulation solves the incompressible Navier-Stokes equations linearized around a background librating flow.Physical Setup
- Geometry: Unit disk (radius = 1)
- Background flow: Oscillating azimuthal velocity matching libration
- Boundary conditions: No-slip at r = 1
- Non-dimensionalization: Disk radius and librational frequency
- Parameters: Ekman = 1/(2×20²), Ro = 40
Key Features
Disk basis setup:Complete Code
Running the Example
Expected Results
- Runtime: ~20 cpu-minutes
- Physics: Librational forcing excites instability, leading to exponential growth of vorticity
- Output: Vorticity snapshots and kinetic energy time series
Annulus Centrifugal Convection
File:examples/ivp_annulus_centrifugal_convection/centrifugal_convection.py
Description
Simulates 2D centrifugal convection in an annulus—convection driven by radial buoyancy forces in a rotating system. This geometry is relevant to Taylor-Couette flows and astrophysical disks.Physical Setup
- Geometry: Annulus with inner radius R_i and outer radius R_o
- Radii ratio: η = 3 (R_o = 3×R_i)
- Boundary conditions: No-slip walls, fixed temperatures
- Parameters: Ra = 10⁶, Pr = 1
- Buoyancy: Radial gravity proportional to radius
Key Features
Annulus basis setup:Running the Example
Expected Results
- Runtime: ~10 cpu-minutes
- Physics: Convection develops in the radial direction, forming plumes that rise/fall
- Output: Vorticity and buoyancy fields in polar coordinates
Pipe Flow Eigenvalue Problem
File:examples/evp_disk_pipe_flow/pipe_flow.py
Description
Solves the linear stability eigenvalue problem for pipe flow (Poiseuille flow in a cylinder). This classic problem demonstrates how to handle axial wavenumbers in the disk geometry.Physical Setup
- Geometry: Unit disk (pipe cross-section)
- Background flow: Parabolic axial velocity w₀ = 1 - r²
- Parameters: Re = 10⁴, k_z = 1 (axial wavenumber), m = 5 (azimuthal mode)
- Boundary conditions: No-slip at r = 1
Key Technique: Axial Derivatives
Running the Example
Expected Results
- Runtime: A few seconds
- Output:
- Slowest decaying eigenvalue printed to console
- Plot of eigenfunction structure
pipe_eigenfunctions.png
- Physics: All modes are stable (negative real part of eigenvalue)
- Validation: Results compare with reference values from Vasil et al. (2016)