How to import result data from OpenFOAM to matlab?
99 views (last 30 days)
Show older comments
Mahendra Devagiri on 19 Apr 2018
Commented: Arman Burkitbayev on 7 Sep 2022
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?
Precise Simulation on 27 May 2019
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).
can you please also let me know fro where can I find information about connecting my matlab model with OpenFOAM or ANsys models. I would like to run both simluations openfoam and matlab together as a input and output files.
Seyyed Ali on 21 May 2018
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.
you might do it as a input and output files when you connect matlab and openfoam models.
Find more on Get Started with MATLAB 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!