CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Implementation of a time varying heat sink

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2012, 04:56
Default Implementation of a time varying heat sink
  #1
New Member
 
Join Date: Oct 2012
Posts: 9
Rep Power: 14
Koga is on a distinguished road
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?
Koga is offline   Reply With Quote

Old   November 21, 2012, 18:27
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Koga View Post
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 ...
Koga likes this.
__________________
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
gschaider is offline   Reply With Quote

Old   November 22, 2012, 04:29
Default
  #3
New Member
 
Join Date: Oct 2012
Posts: 9
Rep Power: 14
Koga is on a distinguished road
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.
Koga is offline   Reply With Quote

Old   January 22, 2013, 06:39
Default
  #4
Member
 
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 14
vainilreb is on a distinguished road
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
vainilreb is offline   Reply With Quote

Old   August 18, 2015, 10:28
Default
  #5
Member
 
Rohith
Join Date: Oct 2012
Location: Germany
Posts: 57
Rep Power: 14
RaghavendraRohith is on a distinguished road
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
RaghavendraRohith 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
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 09:35
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 06:24
Simulate heat transfer of heat sink in a box... chien87 CFX 8 February 8, 2011 04:50
time averaged heat transfer in oscillating flow Matthieu Ubas Main CFD Forum 2 November 5, 1999 15:20


All times are GMT -4. The time now is 02:42.