CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

how to export data from CFX-post

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2009, 09:18
Smile how to export data from CFX-post
  #1
New Member
 
Rachel
Join Date: Sep 2009
Posts: 9
Rep Power: 17
Rachel_09 is on a distinguished road
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!
Rachel_09 is offline   Reply With Quote

Old   September 12, 2009, 09:27
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   September 14, 2009, 10:51
Smile I have difficult in reading the point coordinates in Session file
  #3
New Member
 
Rachel
Join Date: Sep 2009
Posts: 9
Rep Power: 17
Rachel_09 is on a distinguished road
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
Rachel_09 is offline   Reply With Quote

Old   October 31, 2012, 20:25
Default
  #4
Senior Member
 
Crank-Shaft's Avatar
 
Ovi
Join Date: Oct 2012
Location: Sydney, Australia
Posts: 166
Rep Power: 14
Crank-Shaft is on a distinguished road
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
Crank-Shaft is offline   Reply With Quote

Old   October 16, 2017, 15:46
Default
  #5
New Member
 
Katja N.
Join Date: May 2014
Location: Sweden
Posts: 13
Rep Power: 12
Katja is on a distinguished road
Quote:
Originally Posted by Rachel_09 View Post
Hi,

ERROR
CCL parser failed with message:
invalid parameter name: must be non-empty.

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;
__________________
Katja 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
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


All times are GMT -4. The time now is 23:32.