CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] from paraview to matlab

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2013, 03:48
Default from paraview to matlab
  #1
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 13
izna is on a distinguished road
Hey Guys..

I want to take my slice and plot it in matlab..
But when i save as .csv, the file i obtain is not what i expected in MAtlab..

help needed..
izna is offline   Reply With Quote

Old   September 7, 2013, 12:59
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings izna,

Please provide more information, such as:
  1. What does the CSV file look like?
  2. What does MATLAB want to read?
  3. What commands are you using for loading into MATLAB?
  4. Have you tried the "easy importer" feature that MATLAB provides?
    1. Importing Data Files into MATLAB: http://www.youtube.com/watch?v=me53aM6n_1Y
    2. Select Spreadsheet Data Using Import Tool: http://www.mathworks.com/help/matlab...ractively.html
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 8, 2013, 08:41
Default
  #3
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 13
izna is on a distinguished road
hello Brunos..

When i saved the slice i got 6 files of .csv.
It contain my U magnitude.

i am attaching one of the files.

In Matlab i want to show the plane i have cut.. Ie i wish to display the slice with velocity vectors in matlab.
Attached Images
File Type: jpg Screenshot from 2013-09-08 15:42:37.jpg (99.5 KB, 150 views)
izna is offline   Reply With Quote

Old   September 8, 2013, 10:42
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Izna,

Try the instructions given on the list item #4. In addition, near the easy data importer, there is also the easy plot tool.
Sorry, I don't know their specific names, but they are mentioned in the links on my previous post.

As for the data, a quick look at the image, and I can't find anything wrong with it. You should be able to import the data to MATLAB.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


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
[OpenFOAM.org] Two different versions of ParaView with same OpenFOAM release FJSJ OpenFOAM Installation 2 July 23, 2017 06:48
[General] Plotting solution vector from Matlab in Paraview crg123 ParaView 0 November 20, 2016 13:19
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) chrisb2244 OpenFOAM Installation 2 August 21, 2013 14:24
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 03:32
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 18:59.