vort2dord6pb
algorithm
- vorticity measures the tendency of a vectorfield to rotate around a point
- calculates vorticity of a vector field in each point of the field
- uses 6th order gradients
- uses periodic boundary conditions
- plots isolevels of vorticity
syntax
vortz=vort2dord6pb(X,Y,x_velocity,y_velocity,b)
example for input
vortz=vort2dord6pb(X,Y,x_velocity,y_velocity,'1')
input arguments
Name | description |
---|---|
X,Y | vectors defining the rectangular domain |
x_velocity,y_velocity | velocity components |
b | switch for boundary conditions: periodic top/bottom b='1', periodic left/right b='2' periodic all sides b='3', no periodicity b='4' |
output arguments
Name | description |
---|---|
vortz | vorticity around z-axis |
plot | isovalues of vorticity |