Utils
# IncompressibleNavierStokes.get_lims — Function.
julia
get_lims(x) -> Tuple{Any, Any}
get_lims(x, n) -> Tuple{Any, Any}
Get approximate lower and upper limits of a field x
based on the mean and standard deviation (x
is constant, a margin of 1e-4
is enforced. This is required for contour plotting functions that require a certain range.
# IncompressibleNavierStokes.get_spectrum — Method.
julia
get_spectrum(
setup;
npoint,
a
) -> NamedTuple{(:κ, :masks, :K), <:Tuple{Any, Any, Any}}
Get energy spectrum of velocity field.
# IncompressibleNavierStokes.plotgrid — Function.
julia
plotgrid(x, y; kwargs...)
plotgrid(x, y, z)
Plot nonuniform Cartesian grid.
# IncompressibleNavierStokes.spectral_stuff — Method.
julia
spectral_stuff(
setup;
npoint,
a
) -> NamedTuple{(:A, :κ, :K), <:Tuple{Any, Any, Any}}
Get utilities to compute energy spectrum.