|
[Sponsors] |
October 31, 2018, 05:40 |
postProcess calculate Tdeg
|
#1 |
New Member
Jonathan
Join Date: Feb 2018
Location: Gothenburg, Sweden
Posts: 5
Rep Power: 8 |
Hi, Im trying to calculate the temperature in Celsius by using the postProcess utility. In previous version (OF22x) it was straight forward with the foamCalc utility to simply subtract 273 K from T to get Tdeg. I have tried different combinations with the postProcess utility e.g.
PHP Code:
--> FOAM FATAL IO ERROR: wrong token type - expected word, found on line 4 the doubleScalar 273.15 file: /usrfem/femsys_local/OpenFOAM/OpenFOAM-6/etc/caseDicts/postProcessing/fields/subtract.fields at line 4. From function Foam::Istream& Foam:perator>>(Foam::Istream&, Foam::word&) in file primitives/strings/word/wordIO.C at line 74. Does anyone know how to simply subtract a value from a field via the postProcess utility? Additional info, I’m using OF6 in a multiregion case. |
|
November 1, 2018, 05:47 |
|
#2 |
Senior Member
|
Hi,
I guess it would be fastest to make a field Tref with internalField and all boundaries at uniform 273.15 and than run as Code:
postProcess -func "subtract(T,Tref,result=Tdeg)" -region fluid_Humidifier Tom |
|
November 1, 2018, 07:07 |
|
#3 |
New Member
Jonathan
Join Date: Feb 2018
Location: Gothenburg, Sweden
Posts: 5
Rep Power: 8 |
Thanks Tom, it works perfect!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to calculate centerbody thrust of an aerospike nozzle in Fluent | Roh | FLUENT | 5 | February 21, 2022 12:30 |
How to calculate Turbulent Intensity and Hydraulic Diameter for my problem? | Roh | FLUENT | 1 | June 17, 2018 04:12 |
postProcess functionality in openFOAM 4 | bullmut | OpenFOAM Post-Processing | 23 | July 21, 2017 10:11 |
calculate friction factor & nusselt number | soheil1991 | FLUENT | 3 | March 11, 2017 10:30 |
How to calculate Torque for francis turbine | manish | CFX | 4 | March 15, 2007 03:57 |