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.getoffset Method
julia
getoffset(I) -> Any
Get offset from CartesianIndices
I
.
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{(:inds, :κ, :K), <:Tuple{Any, Any, Any}}
Get utilities to compute energy spectrum.
IncompressibleNavierStokes.splitseed Method
julia
splitseed(seed, n) -> AbstractArray
Split random number generator seed into n
new seeds.