MATLAB Answers


Computational Fluid Dynamics (CFD) and Matlab?

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

  1 Comment

Is there a matlab code for transtonic small disturbance equation? Thank you.

Sign in to comment.

3 Answers

Answer by Precise Simulation on 25 Feb 2017
Edited by Precise Simulation on 6 Aug 2018
 Accepted Answer

The FEATool Multiphysics and the CFDTool Matlab CFD 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.


Sign in to comment.

Answer by 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.

  1 Comment

Thank you very much for your help! Will get straight into playing around with this!

Sign in to comment.

Answer by QuickerSim on 22 Jan 2016

You can also use QuickerSim CFD Toolbox for analysis of general 2-D flows. Full 3-D and turbulence comes soon.

Here are the links for download and documentation:

  1 Comment

The 2nd release of the QuickerSim CFD Toolbox is now available. It is still very flexible and lightweight - get the free trial form here.

Sign in to comment.