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

writeObjects FO, Where the data are coming from?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2020, 09:22
Default writeObjects FO, Where the data are coming from?
  #1
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 15
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Hello all,

We already know that while running a simulation a huge amount of data, is stored on the RAM at each time step. Some are written on the disk, called by the main solver code (like U p etc) and some are written on the disk because of the FOs we have added to the controlDict file. Fair enough.

Ok now. After finishing the run. All unwritten data are removed from the RAM storage and all you have as data is what is written on the disk inside the time directories. Right?

So how is it when I run (buoyantCavity tutorial in buoyantSimpleFoam solver):

Code:
buoyantSimpleFoam -postProcess -func writeObjects
having configured the writeObjects FO as followed:

Code:
type            writeObjects;
libs            ("libutilityFunctionObjects.so");

objects         (rho);

writeControl    writeTime;
It writes out the rho field in each time step? How does it know the values of rho when the simulation is actually finished?

Does it use a reverse kind of formulation (Computing the rho field based on the other existing fields) or what?

Bests,
Mojtaba
__________________
Learn OpenFOAM in Persian
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Old   April 14, 2020, 17:25
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
`rho` is always available as a `rhoField` type.
It is retrieved from the turbulence model being used.
If the simulation is incompressible, it is just a `geometricOneField`, and if not, a `volScalarField`.
Hope it helps.
HPE 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
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 20:06
A CFX-POST error (ver 14.5.7) wangyflp88 CFX 2 July 22, 2017 00:17
[OpenFOAM] Paraview doesn't seem to be picking up data generated by icofoam MikeHersee ParaView 2 January 6, 2015 08:27
Data Produced From Fine Marine Cant Match with The Experimental Data PeiSan Fidelity CFD 4 August 23, 2014 05:33
export data at nodes Meenu FLUENT 1 December 30, 2011 01:24


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