Skip to content

Utils

# IncompressibleNavierStokes.get_limsFunction.
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 (μ±nσ). If x is constant, a margin of 1e-4 is enforced. This is required for contour plotting functions that require a certain range.

source


# IncompressibleNavierStokes.get_spectrumMethod.
julia
get_spectrum(
    setup;
    npoint,
    a
) -> NamedTuple{(, :masks, :K), <:Tuple{Any, Any, Any}}

Get energy spectrum of velocity field.

source


# IncompressibleNavierStokes.plotgridFunction.
julia
plotgrid(x, y; kwargs...)
plotgrid(x, y, z)

Plot nonuniform Cartesian grid.

source


# IncompressibleNavierStokes.spectral_stuffMethod.
julia
spectral_stuff(
    setup;
    npoint,
    a
) -> NamedTuple{(:A, , :K), <:Tuple{Any, Any, Any}}

Get utilities to compute energy spectrum.

source