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

writing expression result in a text file in CFD-Post

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 14, 2017, 04:28
Question writing expression result in a text file in CFD-Post
  #1
New Member
 
Shafa HN
Join Date: Sep 2017
Posts: 1
Rep Power: 0
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;
!close(OUT);


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

Reply

Tags
ccl, cfd-post

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
problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Installation 9 June 12, 2015 17: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 01:24


All times are GMT -4. The time now is 10:44.