# Implementation of a time varying heat sink

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 November 15, 2012, 04:56 Implementation of a time varying heat sink #1 New Member   Join Date: Oct 2012 Posts: 9 Rep Power: 6 Sponsored Links I have implemented a constant heat sink for the chtMultiRegionSimpleFoam solver. I did it nearly the same way like they did it in this thread: http://www.cfd-online.com/Forums/ope...rce-solid.html Now I want to vary this heat sink over the time. I want to configure the heat sink in a table, the same way you do it with the uniformFixedValue boundary condition: Code: ```patch1 { type uniformFixedValue; uniformValue table ( ( 0 300) ( 100 500) ( 200 300) ); }``` So I will have some values for some points in time. For other points in time the values will be computed by interpolation. How can I implement this?
 Sponsored Links

November 21, 2012, 18:27
#2
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,008
Rep Power: 43
Quote:
 Originally Posted by Koga I have implemented a constant heat sink for the chtMultiRegionSimpleFoam solver. I did it nearly the same way like they did it in this thread: http://www.cfd-online.com/Forums/ope...rce-solid.html Now I want to vary this heat sink over the time. I want to configure the heat sink in a table, the same way you do it with the uniformFixedValue boundary condition: Code: ```patch1 { type uniformFixedValue; uniformValue table ( ( 0 300) ( 100 500) ( 200 300) ); }``` So I will have some values for some points in time. For other points in time the values will be computed by interpolation. How can I implement this?
Some of the solvers in 2.1 have something called "basicSource" built in (see for instance pimpleFoam) that allows you to do similar things (but you'll have to figure out how to use it, I've never used it in that form).

For some time swak4Foam has something called expressionSource that allows you to specify sources as expressions (how to add that to your solver search the message board for expressionSource)

The latest release of swak4Foam has a subclass of basicSource. So every solver that has basicSource built in can use a swakish source term (you'll have to load the library with libs in controlDict of cource).

And then there is always the possibility to hand-code it yourself ...
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request

 November 22, 2012, 04:29 #3 New Member   Join Date: Oct 2012 Posts: 9 Rep Power: 6 Thank you! I found a solution for my purpose. I implemented a time varying heat sink which has a constant volumetric heat flux on the whole field. I defined a config file where you can specify pointwise time and heat flux. Then I use linear interpolation to get the right heat flux value.

 January 22, 2013, 06:39 #4 Member   Robert Join Date: Aug 2012 Location: Berlin Posts: 74 Rep Power: 7 Hey Koga, I've got a similar problem. I want to set up a surface heat flux which linearly decreases by time. Could you please post the settings for your sink in your 'T'-file? I tried "compressible::turbulentheatFluxTemperature" but unfortunately it won't accept a table as heat flux input. I'd really appreciate your help. Best regards Robert

 August 18, 2015, 09:28 #5 Member   Rohith Join Date: Oct 2012 Location: Germany Posts: 57 Rep Power: 6 Hi Koga, Can you place the code here with which you have modeled unsteady or time dependent heat sink. I would appreciate it. Best Regards, Rohith

 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 hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 09:35 Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34 jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24 chien87 CFX 8 February 8, 2011 04:50 Matthieu Ubas Main CFD Forum 2 November 5, 1999 15:20

 Sponsored Links

All times are GMT -4. The time now is 22:36.

 Contact Us - CFD Online - Top