MATLAB Answers

How to import result data from OpenFOAM to matlab?

109 views (last 30 days)
Mahendra Devagiri
Mahendra Devagiri on 19 Apr 2018
Commented: Muhammad Ahsan Khan on 7 Sep 2020 at 13:08
hello, I want to import the result data from OpenFOAM which are compressed to matlab to plot the results and compare them with the results of other flow models. Can anyone please help me with the code?
Regards, Mahendra

  0 Comments

Sign in to comment.

Answers (2)

Seyyed Ali
Seyyed Ali on 21 May 2018
Hi Mahendra,
Have you found anything? The only I have found so far is that you can convert data to VTK (foamToVTK) and read VTK in matlab using some VTK reader function. I have not found a better solution yet.
SAHM>

  0 Comments

Sign in to comment.


Precise Simulation
Precise Simulation on 27 May 2019
Dear Mahendra,
If this is still relevant, you can both run OpenFOAM CFD simulations directly in MATLAB and import/export Foam and ParaView VTK results files from/to MATLAB with the FEATool Multiphysics Toolbox (as well as other formats).

  1 Comment

Muhammad Ahsan Khan
Muhammad Ahsan Khan on 7 Sep 2020 at 13:08
Hello Precise Simulation,
I have installed FEATool Multiphysics Toolbox in MATLAB. I have an OpenFOAM case already run in ubuntu (I have all the time directories, system and constant folders). I need to tranfer my case to MATLAB for post processing since I don't want to do it in ParaView.
Can you tell me how can I transfer my case to FEATool in MATLAB? There is no option to import the OpenFOAM case in FEATool as far as I have explored.
Thank You :)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!