3D iso-contour of swirling strength (vorticity) in channel

Version 1.0.1 (35.1 MB) by Jitong Ding
An example of visualising an instantaneous vorticity field in channel flow. The vorticity field is calculated using swirling strength.
18 Downloads
Updated 24 Aug 2024

View License

This code serves as an example of plotting the vorticity field of an instantaneous channel flow snapshot. The vorticity field is calculated using swirling strength (see the original paper: Chong, M., Perry, A. & Cantwell, B. A general classification of three-dimensional flow fields. Phys. Fluids A, 2, 765-777 (1990)). The channel size is 2\pi by \pi by 2 (streamwise length, spanwise length, wall-normal length).
The iso-contour value of the swirling strength could be changed by modifying variable ‘iso_percentage’ in the main code ‘MAIN_swirling_strength.m’.
There are six snippets: 'MAIN_swirling_strength.m', 'get_swirling_strength.m', 'get_velocity_tensor.m', 'get_km.m', 'get_3d.m' and 'cheb.m'. There is one dataset for the instantaneous velocity field: 'velocity_for_swirling_strength.mat'.
To run the code, put all the files inside a same folder. Open the code 'MAIN_swirling_strength.m', click 'Run' under 'EDITOR'. You will obtain a figure same as the profile photo.
Please download the zip file to get the dataset 'velocity_for_swirling_strength.mat' which cannot be shown on the webpage.

Cite As

Jitong Ding (2025). 3D iso-contour of swirling strength (vorticity) in channel (https://ch.mathworks.com/matlabcentral/fileexchange/165921-3d-iso-contour-of-swirling-strength-vorticity-in-channel), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.1

change the title and description

1.0.0