|
[Sponsors] |
March 3, 2011, 06:53 |
create an output file only at the endTime
|
#1 |
Senior Member
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18 |
Hi!
I would like to create an output file at my last time step. I wondered if an command similar to Code:
if (runTime.outputTime()) { logFile << balbalbalblalba << endl; } Any help would be appreciated. Best regards, Cyp |
|
March 3, 2011, 12:18 |
|
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
I believe you're looking for:
Code:
if (runTime.end()) |
|
March 3, 2011, 12:29 |
|
#3 |
Senior Member
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18 |
Hi Marupio!
Thank you for your answer. I tried your suggestion but nothing is written inside my output file... |
|
March 4, 2011, 05:15 |
|
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
You could also put your write command behind the time loop:
Code:
while (runTime.run()) { [...] } logfile << STUFF; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 | BlGene | OpenFOAM Meshing & Mesh Conversion | 10 | August 6, 2009 05:26 |
[OpenFOAM] Paraview command not found | hardy | ParaView | 7 | September 18, 2008 05:59 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |