CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > CFX

writing expression result in a text file in CFD-Post

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

LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2017, 05:28
Question writing expression result in a text file in CFD-Post
New Member
Shafa HN
Join Date: Sep 2017
Posts: 7
Rep Power: 8
shafa_hn is on a distinguished road
I need to open result files automatically, calculate the "expression" and write down the result in a text file. But, when I use CCL commands like the following only the name of the expression ('TPR') is exported to the file, not the value of the expression. I need a command to export (to tmp.txt) the calculated value of TPR. I appreciate if any can help me.

!$outfile = "tmp.txt";
!open(OUT, ">$outfile");
!$tpr = TPR;
!print OUT $tpr;

PS: TPR is an expession defined before in CFT-post expression list which is total pressure ratio here.
shafa_hn is offline   Reply With Quote


ccl, cfd-post

Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24

All times are GMT -4. The time now is 08:43.