Hasegawa Wakatani Project Documentation
Welcome to the documentation page.
This tutorial just offered a quick glimpse on Julia's built-in documentation system, make sure to read the docs for more.
HasegawaWakatani.Domain
— TypeDomain(N, L)
Domain(Nx, Ny, Lx, Ly)
Box domain, that calculates spatial resolution under construction.
# Contains
Lengths: ``Lx``, ``Ly`` (Float64)\
Number of grid point: ``Nx``, ``Ny`` (Int64)\
Spatial resolution: ``dx``, ``dy`` (Float64)\
Spatial points: ``x``, ``y`` (LinRange)
``dxᵢ = 2Lₓ÷(Nₓ-1)``
Square Domain can be constructed using:\
``Domain(N,L)``
Rectangular Domain can be constructed using:\
``Domain(Nx,Ny,Lx,Ly)``
HasegawaWakatani.ifftPlot
— FunctionifftPlot(args...; kwargs...)
Plot the real part of the inverse Fourier transform (IFFT) of each argument that is a complex array.
This function is designed to handle multiple input arrays and plot them using the `plot` function
from a plotting library such as Plots.jl. Non-complex arrays are plotted as-is.
# Arguments
- `args...`: A variable number of arguments. Each argument can be an array. If the array is of a complex type,
its IFFT is computed, and only the real part is plotted. If the array is not complex, it is plotted directly.
- `kwargs...`: Keyword arguments that are passed directly to the `plot` function to customize the plot.
# Usage
using FFTW, Plots
# Create some sample data
x = rand(ComplexF64, 100)\
y = rand(100)
# Plot the real part of the IFFT of `x` and `y` directly
ifftPlot(x, y, title="IFFT Plot Example", legend=:topright)
<!–@autodocs Modules = [Domain, SpectralOperators] Pages = ["domain.jl", "spectralOperators.jl"]
Includes Domain, diagnostics, utilities, spectralSolve, spectralODEProblem and schemes –>