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

heat source in solid

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

Like Tree3Likes
  • 1 Post By MarkW
  • 2 Post By nimasam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2011, 11:02
Question heat source in solid
  #1
New Member
 
Join Date: Nov 2011
Posts: 2
Rep Power: 0
MarkW is on a distinguished road
Hello there,
I'm trying to simulate the heat transfer in a piece of metal, which is heated by an electric current.
I already got a little bit familiar with laplacianFoam, is there some way to model a heat source inside of it?
Or do I have to use a different solver?
Thanks a lot!
mizzou likes this.
MarkW is offline   Reply With Quote

Old   November 25, 2011, 02:34
Default heat source in laplacianFoam
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
you can model heat source! just by add a source term to the laplacianFoam equation
in creatFields.H
Code:
    volScalarField q
    (
        IOobject
        (
            "q",
            runTime.timeName(),
            mesh,
            IOobject::MUST_READ,
            IOobject::NO_WRITE
        ),
        mesh
    );
in laplacianFoam.C
Code:
fvm::ddt(T) - fvm::laplacian(DT, T) - q
then you should compile your solver with "wmake"! (look user guide)

then in your case study in folder zero you should add a file name "q"
you can apply different value from uniform or non-uniform heat source
for making the initial non uniform heat source use "setFields" or "funkySetFields"
for install "funkySetField", look at here:
http://openfoamwiki.net/index.php/Co...funkySetFields
mizzou and dasa like this.
nimasam is offline   Reply With Quote

Old   November 25, 2011, 09:19
Default
  #3
New Member
 
Join Date: Nov 2011
Posts: 2
Rep Power: 0
MarkW is on a distinguished road
Thanks a lot!
This approach saves me a lot of time!
MarkW is offline   Reply With Quote

Reply

Tags
heat source, heat transfer, laplacian, solid objects

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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to load the heat source to wall david yang Main CFD Forum 1 October 12, 2009 14:34
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 BlGene OpenFOAM Meshing & Mesh Conversion 10 August 6, 2009 05:26
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 14, 2000 00:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 04:43


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