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

Solver not "seeing" temperature change.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2011, 18:06
Default Solver not "seeing" temperature change.
  #1
Member
 
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16
Canesin is on a distinguished road
---------_EDIT_---------- SOLVED: was relaxing in outerloop

Hi all,

In an custom solver I need to add a value in the temperature..

I'm doing the equivalent of:


Code:
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
    {
        tmp<fvScalarMatrix> TEqn
        (
            fvm::ddt(rho*cp, T)
          - fvm::laplacian(K, T)
        );
        
        TEqn().solve();
    }
    Info<< "TEMP: Min/max T: " << min(T).value() << " / " << max(T).value() << endl;
}

T += 6;
But when I visualize the results in paraview it looks like the temperature change has not "propagated", say. If I do T.write() after the temperature change I can see the difference, but in the next time step the solutions looks like the change has never happened.

Last edited by Canesin; October 20, 2011 at 19:12. Reason: SOLVED
Canesin 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
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 10:52
An issue with temperature change in unsteady prob Ashok kumar FLUENT 1 January 13, 2009 05:34
change the temperature unit cha s n FLUENT 1 February 22, 2005 23:49
How to change line colors in solver? Tony CFX 3 December 15, 2004 12:35
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


All times are GMT -4. The time now is 03:37.