|
[Sponsors] |
writing expression result in a text file in CFD-Post |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 14, 2017, 05:28 |
writing expression result in a text file in CFD-Post
|
#1 |
New Member
Shafa HN
Join Date: Sep 2017
Posts: 7
Rep Power: 9 |
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. |
|
Tags |
ccl, cfd-post |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] 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 |