CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Post-Processing with Matlab

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2024, 07:08
Default Post-Processing with Matlab
  #1
New Member
 
Join Date: Nov 2023
Posts: 9
Rep Power: 3
Charly23 is on a distinguished road
Hey everybody!


I am simulating an open channel flow with interFoam and I am intrested in the surface velocities of water flowing in the channel.
What I have done so far is loading the results in Paraview, extracting a specific time range and clipping the results with alpha.water = 0.5.
Does somebody know how I can extract the data just from the water surface? Because clipping just shows the complete water body.

How do I import this data into Matlab with the mesh from Openfoam?

I want to use Matlab because I want to compare physical experiment results which have been analyzed in Matlab with the simulation results.


I would appriciate your help
Charly23 is offline   Reply With Quote

Old   May 20, 2024, 01:06
Default
  #2
New Member
 
madeled
Join Date: May 2024
Posts: 1
Rep Power: 0
madeled is on a distinguished road
Quote:
Hey everybody!


I am simulating an open channel flow with interFoam and I am intrested in the surface velocities of water flowing in the channel.
What I have done so far is loading the results in Paraview, extracting a specific time range and clipping the results with alpha.water = 0.5.
Does somebody know how I can extract the data just from the water surface? Because clipping just shows the complete water uno online body.

How do I import this data into Matlab with the mesh from Openfoam?

I want to use Matlab because I want to compare physical experiment results which have been analyzed in Matlab with the simulation results.


I would appriciate your help
Paraview can save data in VTK (Visualization Toolkit) format.
After applying the filter, go to "File" -> "Save Data As...".
Choose "VTK" format and select a filename.
In Matlab, you can use the vtkFile library (available online) to read VTK data. This library allows you to access the mesh information (points, connectivity) along with the surface velocity data.

Last edited by madeled; May 31, 2024 at 04:19.
madeled is offline   Reply With Quote

Old   May 22, 2024, 16:58
Default
  #3
New Member
 
Join Date: Nov 2023
Posts: 9
Rep Power: 3
Charly23 is on a distinguished road
Thank you for your answer! What I did so far was using point Data exported from Paraview and interpolating these Data values onto physical experiment results. The only difference is that the results from Openfoam are stored in the cell centers (vtk Data) right? And the point Data values are the one from the cell's corners?
Charly23 is offline   Reply With Quote

Old   May 24, 2024, 01:10
Default
  #4
New Member
 
Join Date: May 2024
Posts: 1
Rep Power: 0
AlinaHabba24 is on a distinguished road
Quote:
Originally Posted by Charly23 View Post
Thank you for your answer! What I did so far was using point Data exported from Paraview and interpolating these Data values onto physical experiment results. The only difference is that the results from Openfoam are stored in the cell centers (vtk Data) right? And the point Data values are the one from the cell's corners? final grade calculator
How can I tell if the data are in RMS or Peak after loading the TesLab data file into Matlab?
AlinaHabba24 is offline   Reply With Quote

Old   May 24, 2024, 03:36
Default
  #5
New Member
 
ryanrobbie
Join Date: May 2024
Posts: 1
Rep Power: 0
ryanrobbie is on a distinguished road
Quote:
Originally Posted by Charly23 View Post
Hey everybody!


I am simulating an open channel flow with interFoam and I am intrested in the surface velocities of water flowing in the channel. mapquest driving directions

What I have done so far is loading the results in Paraview, extracting a specific time range and clipping the results with alpha.water = 0.5.
Does somebody know how I can extract the data just from the water surface? Because clipping just shows the complete water body.

How do I import this data into Matlab with the mesh from Openfoam?

I want to use Matlab because I want to compare physical experiment results which have been analyzed in Matlab with the simulation results.


I would appriciate your help
Since you want to compare physical experiment results analyzed in MATLAB with simulation results, it makes sense to use MATLAB for this task. MATLAB is a powerful numerical computing environment widely used for data analysis, algorithm development, and simulations.
ryanrobbie is offline   Reply With Quote

Reply

Tags
interfoam, matlab, paraview, post processing


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
post processing for CEL expressions Niru CFX 0 May 10, 2013 14:13
Automated post processing using CFD Post shreyasr ANSYS 0 January 28, 2013 07:21
CFD post processing techniques & streamlining klk Main CFD Forum 0 October 19, 2010 08:37
fluent for post processing James FLUENT 0 April 21, 2006 05:43
post processing in CFD MANISH BHARGAVA Main CFD Forum 0 October 17, 1998 21:51


All times are GMT -4. The time now is 11:05.