# Problem with Field Function

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

 August 17, 2012, 04:55 Problem with Field Function #1 New Member   Join Date: Aug 2012 Posts: 12 Rep Power: 4 Hallo, I've got a coolingtube through which an air stream flows. This air stream is heated by an heat flux over the surface of the tube. The problem is that I don't know the temperature of the incoming and the outgoing air. I' only given the masflowrate of the air and the middle temperature of the air calculated by the equation: Tm=(Tout+Tin)/2 I've chosen a Mass Flow Inlet as boundary-type for the Inlet. Of course the program demands the Inlet Temperature. So I wondered wether it is possible to write a Field Function for the Inlet that gets the outlet Temperature and then iterates the Inlet Temperature? The Formula is not difficult but how do I get the temperature from a different Boundary? Thank you all in advance for your help, Claas

August 17, 2012, 08:38
#2
Super Moderator

Ryne Whitehill
Join Date: Aug 2009
Posts: 313
Rep Power: 9
Quote:
 Originally Posted by gmoehl Hallo, I've got a coolingtube through which an air stream flows. This air stream is heated by an heat flux over the surface of the tube. The problem is that I don't know the temperature of the incoming and the outgoing air. I' only given the masflowrate of the air and the middle temperature of the air calculated by the equation: Tm=(Tout+Tin)/2 I've chosen a Mass Flow Inlet as boundary-type for the Inlet. Of course the program demands the Inlet Temperature. So I wondered wether it is possible to write a Field Function for the Inlet that gets the outlet Temperature and then iterates the Inlet Temperature? The Formula is not difficult but how do I get the temperature from a different Boundary? Thank you all in advance for your help, Claas
Use a report. Set up a report to get the (avg, min, or max, whichever you want) temperature on your outlet. You can then reference it in a field function by using \$<ReportName>Report. I.e. if you report is "Outlet Temperature" you can reference this in a field function using \$OutletTemperatureReport

 August 18, 2012, 04:17 #3 New Member   Join Date: Aug 2012 Posts: 12 Rep Power: 4 Thank you very much for your help rwryne. It's working

 Tags field function, temperature average value

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20 andrew FLUENT 5 June 24, 2011 10:53 chiven OpenFOAM Installation 15 April 26, 2009 22:33 ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50 Christian Main CFD Forum 2 February 27, 2007 07:27

All times are GMT -4. The time now is 17:50.