|
[Sponsors] |
[OpenFOAM] Automating ParaFoam for exporting CSV files |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 17, 2011, 05:12 |
Automating ParaFoam for exporting CSV files
|
#1 |
Senior Member
Suresh kumar Kannan
Join Date: Mar 2009
Location: Luxembourg, Luxembourg, Luxembourg
Posts: 129
Rep Power: 17 |
Hello ,
I am using interFoam for jet simulations and I want to export my data into matlab. I perform the following operations: Start ParaFoam 1) Load Mesh parts - ALL 2) Load Volume Fields - alpha1 3) Display - Representation - points 4) Select color by - Volpoint interpolation (alpha1) 5) Split Horizontal 6) Spreadsheet view 7) Export - filename.csv Then i am able to easily import this file in Matlab. But I have around 100 timesteps, and i dont want to perform this action for all the time steps. Is there an easy way to record these actions and then execute the script for all the time steps. any idea on performing this is helpful regards K.Suresh kumar |
|
February 19, 2011, 14:34 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings kumar,
AFAIK, you have at least two possible solutions:
Bruno
__________________
Last edited by wyldckat; February 21, 2011 at 05:52. Reason: see "edit:" |
|
February 21, 2011, 03:39 |
|
#3 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
No macro's in Paraview? What do you mean with that? Since you can 'trace' a series of actions via the python shell, and save it as Python script. You can then execute it via the GUI if you like. But writing a loop around this should not be too complicated in this case.
|
|
February 21, 2011, 05:51 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Bernhard,
I'm use to seeing the term "Macros" in OpenOffice, Office and some other text editors, where mouse clicks and keyboard actions can be recorded... Hey, wait, it does have macros!!! Apparently I've been partially asleep for a while now Quote:
On the menu "Tools->Python Shell", select the "Trace" tab and click on the "Start Trace". Do the actions. "Stop Trace" and "Edit Trace", make the changes you want and save the script. Then it's just a matter of running the script!! Many thanks Bernhard! Best regards, Bruno
__________________
|
||
May 2, 2011, 12:10 |
|
#5 |
Member
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 70
Rep Power: 17 |
Hello,
my ParaView is the version from the OF homepage (paraviewopenfoam381), but it has no python and no macro functionality. Do I need to just download and install ParaView from the official page to restore this functions? And which functions am I losing by doing this (or are the two versions just the same?)? Thanks for every hint David /edit: I had to download the 'official' ParaView 3.10.1 and modify it following this instructions: http://www.cfd-online.com/Forums/blo...-openfoam.html Last edited by David*; May 3, 2011 at 11:33. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting ANSYS CFX files to Fluent files | Martin S. Rasmussen | FLUENT | 3 | January 30, 2007 16:08 |
Problems with result files | Kasper | CFX | 5 | December 14, 2006 03:41 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |
[making animations] fclose fails to close files? | Mika | FLUENT | 0 | March 30, 2001 09:19 |
Merging .msh files in TGrid | Raza Mirza | FLUENT | 2 | January 18, 2001 19:09 |