CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

postProcess calculate Tdeg

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2018, 05:40
Default postProcess calculate Tdeg
  #1
New Member
 
Jonathan
Join Date: Feb 2018
Location: Gothenburg, Sweden
Posts: 5
Rep Power: 8
jonfah is on a distinguished road
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:
postProcess -func "subtract(T,273.15,result=Tdeg)" -region fluid_Humidifier 
I get this error message:



--> 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.
jonfah is offline   Reply With Quote

Old   November 1, 2018, 05:47
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 647
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
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
Regards,
Tom
tomf is offline   Reply With Quote

Old   November 1, 2018, 07:07
Default
  #3
New Member
 
Jonathan
Join Date: Feb 2018
Location: Gothenburg, Sweden
Posts: 5
Rep Power: 8
jonfah is on a distinguished road
Thanks Tom, it works perfect!
jonfah 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 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


All times are GMT -4. The time now is 14:35.