Convenience macros for defining velocity fields via their stream function.
Install by typing
]add https://github.com/CoherentStructures/StreamMacros.jl.gitin the Julia REPL.
The basic usage pattern is
output = @velo_from_stream <stream_name> begin
<stream_name> = ...
# additional definitions
endas in
using StreamMacros
vortex = @velo_from_stream stream begin
stream = x^2 + y^2 + perturbation(x, y, t)
perturbation(x, y, t) = sin(t) * y
end