# Computational Fluid Dynamics (CFD) and Matlab?

78 views (last 30 days)
Jakob Sievers on 3 Aug 2015
Answered: QuickerSim on 5 Aug 2021
I'm wondering: If I wanted to illustrate the 2D/3D air-flow and turbulence around simple solid objects which I define myself, would that be possible in Matlab? Cheers Jakob
##### 2 CommentsShow 1 older commentHide 1 older comment
QuickerSim on 16 Jul 2021
Edited: QuickerSim on 16 Jul 2021
You may check out the QuickerSim CFD Toolbox for MATLAB. It is a third-party toolbox for solving fluid flows in the MATLAB environment. You can create heat transfer and fluid flow simulations in 2-D and 3-D.
The toolbox provides the user with efficient CFD solvers and auxiliary (e.g. mesh-manipulation, preprocessing, and postprocessing) functions inside of MATLAB. It encourages users to make use of them in combination with their own code.
You can check out the free code or ask for a trial full verion here.

Precise Simulation on 25 Feb 2017
Edited: Precise Simulation on 3 Mar 2019
The FEATool Multiphysics toolbox (available via the FileExchange and MATLAB Add-Ons) allows you to perform fluid flow and other physics simulations directly in a GUI environment. In addition to using the built-in GUI you can also use all toolbox functions directly on the command line, so in your case you could use featool m-functions for just geometry and grid generation, or 3D visualization and postprocessing as in the linked post.
The linked video tutorial show how to set up and solve a flow around a cylinder directly in MATLAB and optionally solve it with the external OpenFOAM CFD solver.

Nitin Khola on 5 Aug 2015
Yes, MATLAB can be used to visualize data for turbulent flows. One of the examples would be the MATLAB code available on the Johns Hopkins Turbulence database website: Using the JHU Turbulence Database Matlab Analysis Tools. This GUI based implementation "provides functionality for plotting/animating velocity and vorticity fields, computing and plotting longitudinal energy spectra, and computing PDF's of velocity, pressure, and velocity increments". Here is one of the snapshots I could produce at my end.
Here, the data is fetched from the JHU Turbulence Database Cluster. You can write a similar code to visualize your own data.
Jakob Sievers on 5 Aug 2015
Thank you very much for your help! Will get straight into playing around with this!

QuickerSim on 5 Aug 2021
You may check out the QuickerSim CFD Toolbox for MATLAB. It is a third-party toolbox for solving fluid flows in the MATLAB environment. You can create heat transfer and fluid flow simulations in 2-D and 3-D.
The toolbox provides the user with efficient CFD solvers and auxiliary (e.g. mesh-manipulation, preprocessing, and postprocessing) functions inside of MATLAB. It encourages users to make use of them in combination with their own code.
You can check out the free code or ask for a trial full verion here.

### Categories

Find more on Computational Fluid Dynamics (CFD) in Help Center and File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by