Utils
IncompressibleNavierStokes.enzyme_wrap Function
Wrap a function to return nothing, because Enzyme can not handle vector return values.
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.
sourceIncompressibleNavierStokes.getoffset Method
julia
getoffset(I) -> AnyGet offset from CartesianIndices I.
IncompressibleNavierStokes.getval Method
julia
getval(_::Val{x}) -> AnyGet value contained in Val.
IncompressibleNavierStokes.plotgrid Function
julia
plotgrid(x, y; kwargs...)
plotgrid(x, y, z)Plot nonuniform Cartesian grid.
sourceIncompressibleNavierStokes.spectral_stuff Method
julia
spectral_stuff(
setup;
npoint,
a
) -> NamedTuple{(:inds, :κ, :K), <:Tuple{Any, Any, Any}}Get utilities to compute energy spectrum.
sourceIncompressibleNavierStokes.splitseed Method
julia
splitseed(seed, n) -> AbstractArraySplit random number generator seed into n new seeds.