Skip to content

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 (μ±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_spectrum Method
julia
get_spectrum(
    setup;
    npoint,
    a
) -> NamedTuple{(, :masks, :K), <:Tuple{Any, Any, Any}}

Get energy spectrum of velocity field.

source

IncompressibleNavierStokes.getoffset Method
julia
getoffset(I) -> Any

Get offset from CartesianIndices I.

source

IncompressibleNavierStokes.getval Method
julia
getval(_::Val{x}) -> Any

Get value contained in Val.

source

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

Plot nonuniform Cartesian grid.

source

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

Get utilities to compute energy spectrum.

source

IncompressibleNavierStokes.splitseed Method
julia
splitseed(seed, n) -> AbstractArray

Split random number generator seed into n new seeds.

source