How to import result data from OpenFOAM to matlab?
65 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Precise Simulation
2019-5-27
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).
4 个评论
Arman Burkitbayev
2022-9-7
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.
Precise Simulation
2024-9-30
编辑:Precise Simulation
2024-9-30
@Arman Burkitbayev The toolbox has now been updated with a MATLAB API for OpenFOAM which supports exporting and importing OpenFOAM dictionaries and result data, the information can be found in the toolbox documentation:
Seyyed Ali
2018-5-21
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>
1 个评论
Arman Burkitbayev
2022-9-7
you might do it as a input and output files when you connect matlab and openfoam models.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computational Fluid Dynamics (CFD) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!