|November 24, 2011, 03:15||
Writing Averaged Data into a Text File.
Join Date: Mar 2011
Posts: 25Rep Power: 7
Good day to all!
I'm a beginner to OpenFOAM. I'm using OpenFOAM 2.0.1 and now learning OpenFOAM with the dieselFoam tutorial. I'm trying to write the domain averaged data on an output text file but I couldn't get it out. Let's say for instance I try to extract the averaged pressure, I added
const volScalarField& p =
Info<<"p avg:" << average(p) << endl;
into the controlDict file. It's supposed to at least write the average pressure to the terminal if I'm not mistaken but I didn't observe anything.
Can you please kindly advise that how can I solve the problem?
Thank you very much in advance.
|November 24, 2011, 15:27||
Join Date: Mar 2009
Posts: 3,986Rep Power: 41
|Thread||Thread Starter||Forum||Replies||Last Post|
|BlockMesh FOAM warning||gaottino||OpenFOAM Native Meshers: blockMesh||7||July 19, 2010 14:11|
|Compiling gmshFoam with OpenFOAM-1.5||BlGene||Open Source Meshers: Gmsh, Netgen, CGNS, ...||10||August 6, 2009 04:26|
|Problems With Journal When Writing Forces To File||Andrew||FLUENT||2||September 23, 2005 02:12|
|PHI file structure||Eugene||Phoenics||9||November 2, 2001 23:00|