CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

from paraview to matlab

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 7, 2013, 02:48
Default from paraview to matlab
  #1
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 140
Rep Power: 4
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, 11:59
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 07:41
Default
  #3
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 140
Rep Power: 4
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, 26 views)
izna is offline   Reply With Quote

Old   September 8, 2013, 09:42
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) chrisb2244 OpenFOAM Installation 2 August 21, 2013 13:24
Paraview nice animation PyGloo ParaView 4 June 7, 2012 12:34
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 03:32
Paraview not found fusij OpenFOAM Installation 2 January 1, 2011 21:44
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 19:15.