CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Not writing volScalarField to hard disk

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

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

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

    volScalarField T
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:

        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?

piccinini is offline   Reply With Quote

Old   October 14, 2010, 13:26
Senior Member
Join Date: Feb 2010
Location: Stanford University
Posts: 262
Rep Power: 11
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


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 create initiate a volScalarField p without reading from disk NO_READ does not seem to work dbxmcf OpenFOAM Running, Solving & CFD 12 August 22, 2013 07:32
Hard disk speed important to increase CFD computing speed? lawrencelaw Hardware 13 November 17, 2009 15: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 13:45.