# Constant Temperature Volumetric region

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

 March 6, 2012, 13:59 Constant Temperature Volumetric region #1 Senior Member   --------- Join Date: Oct 2010 Posts: 303 Rep Power: 9 I have a volumetric region in my domain that is supposed to be at a constant temperature. I see that this can't be modeled using a subdomain as a subdomain in CFX is always defined by a heat flux. Could some one please tell me how to model such volumetric region with a constant temperature in the domain __________________ Best regards, Santhosh.

 March 6, 2012, 14:35 #2 Senior Member   Erik Join Date: Feb 2011 Location: Earth (Land portion) Posts: 561 Rep Power: 11 You could use a subdomain with a heat generation rate which is a function of your set temperature. So that once the fluid enters the region it begins quickly heating or cooling to reach your desired temperature. If you try to magicly make it instantly change to a certain temperature, you will have a lot of numerical stability problems which I'm guessing is a reason its not allowed it in the first place.

 March 6, 2012, 16:18 #3 Senior Member   --------- Join Date: Oct 2010 Posts: 303 Rep Power: 9 Thanks for the reply Eric, but the requirement is that the volumetric region has to remain at a constant temperature through out the simulation __________________ Best regards, Santhosh.

 March 6, 2012, 16:59 #4 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 12,638 Rep Power: 98 It is easy to fix a region to a temperature using a source term. You make the source term inversely proportional to the different between the local temperature and the desired temperature and it quickly converges to the desired temperature. And if you use a source term linearisation term it converges just fine. Looks up source terms in the documentation.

 March 6, 2012, 17:24 #5 Senior Member   Erik Join Date: Feb 2011 Location: Earth (Land portion) Posts: 561 Rep Power: 11 Yes Glenn, that's exactly what I was saying, for example: E.genSource = (T.desired - Temperature)*c.p*density*(1/time constant) It still not instantly switching to the new temperature, as you still have some sort of a time constant but you can make it very very small. What you choose as a time constant will be where it starts approaching your temperature, so you could choose 1sec or 10^-whatever seconds. peterliu likes this.

 March 6, 2012, 17:29 #6 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 12,638 Rep Power: 98 The normal way of clamping to a temperature is to use a source term of E source = -C*(T.desired-Temperature) And a source term linearisation term of: E source linearisation = -C You choose the value of C to be large relative to your expected temperature range. Not sure if the units of my source term are right, you may have to add density and/or Cp to get the units right. This approach clamps it instantly to the desired temperature but still converges fine because of the linearisation term.

 March 12, 2012, 07:12 #7 Senior Member   --------- Join Date: Oct 2010 Posts: 303 Rep Power: 9 Hello Glenn, If you don't mind could you please explain setting up the source terms in CFX in a detailed way. I'm sorry but I couldn't find any thing particularly relevant to this context when I searched for " source terms " in the CFX help. __________________ Best regards, Santhosh.

 March 12, 2012, 17:28 #8 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 12,638 Rep Power: 98 I do not have the time to write tutorials. My previous post explained what you need to do, the documentation has a long explanation of source terms so hopefully you can sort it out from there.

 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 ssixr ANSYS 17 July 31, 2015 15:18 fshak92 STAR-CCM+ 3 February 16, 2012 08:36 NPU_conanxie FLUENT 0 March 30, 2011 05:56 Janshi FloEFD, FloWorks & FloTHERM 1 September 1, 2010 02:56 Hadley FLUENT 0 October 20, 2005 23:12

All times are GMT -4. The time now is 18:43.