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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2018, 04:40
Default postProcess calculate Tdeg
  #1
New Member
 
Jonathan
Join Date: Feb 2018
Location: Gothenburg, Sweden
Posts: 2
Rep Power: 0
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, 04:47
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 523
Rep Power: 18
tomf 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, 06:07
Default
  #3
New Member
 
Jonathan
Join Date: Feb 2018
Location: Gothenburg, Sweden
Posts: 2
Rep Power: 0
jonfah is on a distinguished road
Thanks Tom, it works perfect!
jonfah is offline   Reply With Quote

Reply

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 On
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 4 July 30, 2018 10:03
How to calculate Turbulent Intensity and Hydraulic Diameter for my problem? Roh FLUENT 1 June 17, 2018 03:12
postProcess functionality in openFOAM 4 bullmut OpenFOAM Post-Processing 23 July 21, 2017 09:11
calculate friction factor & nusselt number soheil1991 FLUENT 3 March 11, 2017 09:30
How to calculate Torque for francis turbine manish CFX 4 March 15, 2007 02:57


All times are GMT -4. The time now is 03:38.