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

heat source in solid

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

Reply
 
LinkBack Thread Tools 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!
MarkW is offline   Reply With Quote

Old   November 25, 2011, 02:34
Default heat source in laplacianFoam
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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
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
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 On
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 13:34
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04: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 13, 2000 23:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


All times are GMT -4. The time now is 05:58.