|
[Sponsors] |
Writing additionnal output files during a run |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 23, 2007, 14:53 |
Hi everyone,
I am running t
|
#1 |
New Member
laurent glasson
Join Date: Mar 2009
Posts: 3
Rep Power: 17 |
Hi everyone,
I am running turbFOAM with a k-e turbulence model and wanted to see the evolutions of the Reynolds stresses during the calculation. So I was looking for a way to write a R file for each step next to U, k, epsilon, etc... But I'm a bit lost and don't know where to start. Where is the part of code stipulating which output has to be written down? Thank you in advance Laurent |
|
May 23, 2007, 15:05 |
mkDir(runTime.path()/"xyz");
|
#2 |
Senior Member
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17 |
mkDir(runTime.path()/"xyz");
OFstream logFile(runTime.path()/"xyz"/"myLog.dat"); logFile << bla bla bla << endl;
__________________
Xiaofeng Liu, Ph.D., P.E., Assistant Professor Department of Civil and Environmental Engineering Penn State University 223B Sackett Building University Park, PA 16802 Web: http://water.engr.psu.edu/liu/ |
|
May 23, 2007, 15:07 |
Reynolds stress never gets cal
|
#3 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
Reynolds stress never gets calculated, it there is no option to write it out.
The divergence or R does get calculated, but it is a temporary field and does not exist for most of the calculation. If you want to write out R, you first have to create the R field in createFields after the turbulence model has been constructed: volVectorField R ( IOobject ( "R", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), turbulence().R()() ); Then you have to update it after each loop: R = turbulence().R()(); calculate it using the turbulence().R()() function call. It will write out automatically. |
|
May 25, 2007, 11:35 |
thanks very much for your mess
|
#4 |
New Member
laurent glasson
Join Date: Mar 2009
Posts: 3
Rep Power: 17 |
thanks very much for your messages. It now works after some minor tuning.
laurent |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Writing forces to text files | christian | OpenFOAM Running, Solving & CFD | 1 | March 20, 2011 00:20 |
Writing geometry files in STAR-CD | Sachin | Siemens | 5 | April 22, 2008 17:38 |
Error in browse additionnal output file | student | Siemens | 2 | August 9, 2006 06:18 |
Pb with writing the Case and Dat files | Sam | FLUENT | 2 | May 14, 2004 12:16 |
Writing grid and velocity data to files | Mehul Kinariwala | FLUENT | 2 | October 4, 2000 10:26 |