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

Problems with heat transfer in a cylinder in Cartesian coordinate using laplacianFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2016, 16:08
Default Problems with heat transfer in a cylinder in Cartesian coordinate using laplacianFoam
  #1
New Member
 
Amir
Join Date: May 2015
Posts: 5
Rep Power: 12
ghorob is on a distinguished road
Hi

I want to model a simple transient heat conduction in a solid object with source term. I used laplacianfoam, but I found that it solves in steady state condition.
I put a heat flux on one end of the objects and other sides remained isolated (dT/dx=0). after a while I saw that there is no change in the thermal distribution inside the object .

I tried to add while (runtime.loop()) {} instead of the while (simple.loop()) {} but it still doesn't work.
I was wondering if you help me in this issue:


Code:
int main(int argc, char *argv[])
{
    #include "setRootCase.H"
    #include "createTime.H"
    #include "createMesh.H"
    #include "createFields.H"
    simpleControl simple(mesh);

    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

    Info<< "\nCalculating temperature distribution\n" << endl;

    while (runTime.loop())
    
       {
      
        Info<< "Time = " << runTime.timeName() << nl << endl;     
        
        while (simple.correctNonOrthogonal())         
        {
            solve
            (
                fvm::ddt(cp,T) 
        
        - fvm::laplacian(lambda/rho, T)
        
        -(latent)*fvc::ddt(gS)    
    
            );
        }  
        #include "calcgS.H" 
        #include "write.H"

        Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
            << "  ClockTime = " << runTime.elapsedClockTime() << " s"
            << nl << endl;   
        
    }
    
    Info<< "End\n" << endl;

    return 0;
}

Last edited by wyldckat; February 21, 2016 at 14:32. Reason: Added [CODE][/CODE] markers
ghorob is offline   Reply With Quote

Old   February 10, 2016, 13:13
Default
  #2
New Member
 
Amir
Join Date: May 2015
Posts: 5
Rep Power: 12
ghorob is on a distinguished road
Hi

I simulated heat transfer in a cylinder in Cartesian coordinate in OpenFoam using LaplacianFoam.

The initial temperature of the cylinder is 1500c, top and bottom of the cylinder set zeroGrarient (dT/dx=0) and cylinder sides has dT/dx = -2000. Total simulation run is 20000sec.

The purpose is to model a simple transient heat transfer. In this type of problem I expected to see the temperature decrease in every time steps.


My problem is that after around 4000sec the temperature distribution in the cylinder doesn’t change, but openFoam continue running without any error.this problem happen even when I set a fixed boundary condition on the cylinder sides like Tside=1000c.

when I simulated heat transfer in a cube which right face has a flux but other faces are dT/dx=0 the simulation run well and temperature decreases until the end of simulation.

I don't know why this happen when I use cylinder.
I attached solver that I edited (testlaplacian) with 0-constant-system folders.
Attached Files
File Type: zip CFDOnline_1.zip (15.1 KB, 13 views)

Last edited by ghorob; February 10, 2016 at 15:58.
ghorob is offline   Reply With Quote

Old   February 11, 2016, 12:44
Default
  #3
New Member
 
Amir
Join Date: May 2015
Posts: 5
Rep Power: 12
ghorob is on a distinguished road
Quote:
Originally Posted by ghorob View Post
Hi

I simulated heat transfer in a cylinder in Cartesian coordinate in OpenFoam using LaplacianFoam.

The initial temperature of the cylinder is 1500c, top and bottom of the cylinder set zeroGrarient (dT/dx=0) and cylinder sides has dT/dx = -2000. Total simulation run is 20000sec.

The purpose is to model a simple transient heat transfer. In this type of problem I expected to see the temperature decrease in every time steps.


My problem is that after around 4000sec the temperature distribution in the cylinder doesn’t change, but openFoam continue running without any error.this problem happen even when I set a fixed boundary condition on the cylinder sides like Tside=1000c.

when I simulated heat transfer in a cube which right face has a flux but other faces are dT/dx=0 the simulation run well and temperature decreases until the end of simulation.

I don't know why this happen when I use cylinder.
I attached solver that I edited (testlaplacian) with 0-constant-system folders.
I add heat to the icoFoam and my problem solved with that solver unsteady and correctly. I think there is something wrong with laplacianFoam in transient problems.
ghorob is offline   Reply With Quote

Reply

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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 11:12
CFX conjugate heat transfer problems dingsheng1206 CFX 7 February 13, 2014 13:29
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
Local heat transfer coefficient around a cylinder dal_fry FLUENT 2 March 29, 2013 13:35


All times are GMT -4. The time now is 23:00.