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

Not writing volScalarField to hard disk

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2010, 08:46
Default Not writing volScalarField to hard disk
  #1
New Member
 
Join Date: Mar 2009
Location: Sao Jose dos Campos, Brazil
Posts: 29
Rep Power: 17
piccinini is on a distinguished road
Hello,

I've added the temperature to an incompressible solver (pisoFoam) as a volScalarField (adding the code below to createFields.H).

Code:
    volScalarField T
    (
        IOobject
        (
            "T",
            runTime.timeName(),
            mesh,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
    mesh
    );
During the solver execution, I write to screen the maximum and minimum values of T (I also added the equation for T) with the following code:

Code:
        Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
            << "  ClockTime = " << runTime.elapsedClockTime() << " s"
            << nl 
            << "rho max/min : " << max(rho).value() << " " << min(rho).value()
            << nl 
            << "T max/min : " << max(T).value() << " " << min(T).value()
            << nl << endl;
T max an T min are about 45 K different (315 and 270 K). When OpenFoam writes the T field to the hard disk, however, the T file remains always the same file as the initial one from the initial conditions. Does someone have a clue about what is going on?

Thanks.
piccinini is offline   Reply With Quote

Old   October 14, 2010, 13:26
Default
  #2
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
It seems to come from the instruction runTime.write(); in your main file.

Are you sure it is correctly inserted ?
Cyp 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
How to create initiate a volScalarField p without reading from disk NO_READ does not seem to work dbxmcf OpenFOAM Running, Solving & CFD 14 March 25, 2022 06:08
Hard disk speed important to increase CFD computing speed? lawrencelaw Hardware 13 November 17, 2009 14:35
3D LES of Air Flow in Hard Disk Drive Trinnapong FLUENT 0 April 17, 2008 21:04
Air flow in hard disk drives Sundar Main CFD Forum 3 July 10, 2004 02:20
Hard Disk Access Time steve podleski Main CFD Forum 35 August 3, 2000 13:14


All times are GMT -4. The time now is 18:27.