|
[Sponsors] |
September 11, 2009, 09:18 |
how to export data from CFX-post
|
#1 |
New Member
Rachel
Join Date: Sep 2009
Posts: 9
Rep Power: 17 |
Hi,
I have a question about how to export data from cfx-post. I already have *. res file. Then I have the coordinate of the points set (x, y z, in *.txt file). I would like to have the velocity and pressure information at these points. How should I do. I tried to make a *csv file with the point coordinate file, then import into cfx-post. but It does not work. It says "Error Invalid contents of file for importing data, or type can not be determined". So what's the problem? Do anyone have other way to get the flow information of the coordintes? Any comments will be appreciated. have a nice day! |
|
September 12, 2009, 09:27 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Record a session file in CFD-Post where you make a point using XYZ coordinates. Then edit the file to create all of your points and play the session file.
|
|
September 14, 2009, 10:51 |
I have difficult in reading the point coordinates in Session file
|
#3 |
New Member
Rachel
Join Date: Sep 2009
Posts: 9
Rep Power: 17 |
Hi,
When I play a sessin file to read the point coordinates from the *.txt file. I got the following error message. This is the first time I use session file. What do you think is the reason? ERROR CCL parser failed with message: invalid parameter name: must be non-empty. The session file is as follows: # Session file started: 2009/09/10 16:57:39 # CFX-11.0 build 2007.08.09-23.01 # To avoid unnecessary file pre-processing and modifications, include # COMMAND FILE at the top of your session file. # If it is not included, the file is assumed to be older and will be # modified for backward compatibility. COMMAND FILE: CFX Post Version = 11.0 END ################################################## ############# $filename="Ployline1.txt" ################################################## ############# open(MYDATA, "qPlane5a1.txt") or die("Error: cannot open file 'qPlane5a1.txt'\n"); my @lines = <MYDATA>; chomp @lines; print "@lines"; close MYDATA; # Session file stopped: 2009/09/10 16:58:25 Please indicate what is the problem and what I should do? many thanks |
|
October 31, 2012, 20:25 |
|
#4 |
Senior Member
Ovi
Join Date: Oct 2012
Location: Sydney, Australia
Posts: 166
Rep Power: 14 |
Hello all,
I am also trying to achieve something similar and extract data into CFD post. I created a point in space using x,y,z coordinates in FLUENT and the data for each time step was written into this however, it becomes a .out format rather than .txt or .csv. Please comment or provide some guidance on the best way to extract unsteady data for time-dependent plots in CFD Post. Thanks everyone. Last edited by Crank-Shaft; November 1, 2012 at 17:56. Reason: Posted into the wrong thread |
|
October 16, 2017, 15:46 |
|
#5 | |
New Member
Katja N.
Join Date: May 2014
Location: Sweden
Posts: 13
Rep Power: 12 |
Quote:
For me, I have found that the error was due to forgetting to put "!" before the $path in the following sample code Code:
! $outfile = "output.txt"; ! $path = "C:/home/katja/SimulationData/"; ! open(OUTPUT,">>$path$outfile"); ! $time = getValue( "DATA READER", "Current Timevalue"); ! print OUTPUT "$time\n"; ! close OUTPUT;
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to export every data w.r.t time to txt file | jaho | CFX | 94 | August 25, 2015 10:45 |
Export AreaAve data at each time step in CFX Post | Kumar | CFX | 2 | August 22, 2007 13:32 |
(CFX POST) Rotational Speed | ARJUN | CFX | 9 | July 13, 2006 21:38 |
Variable export from CFX post | Ram | CFX | 2 | October 20, 2005 07:00 |
creating expresions in cfx build or cfx post | alex | CFX | 1 | August 22, 2002 14:01 |