Skip to content

Provides some convenience macros for defining velocity fields via their stream function.

License

Notifications You must be signed in to change notification settings

CoherentStructures/StreamMacros.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StreamMacros.jl

Convenience macros for defining velocity fields via their stream function.

build status code coverage stable docs dev docs

Installation

Install by typing

]add https://github.com/CoherentStructures/StreamMacros.jl.git

in the Julia REPL.

Examples

The basic usage pattern is

output = @velo_from_stream <stream_name> begin
    <stream_name> = ...
    # additional definitions
end

as 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

About

Provides some convenience macros for defining velocity fields via their stream function.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages