|
[Sponsors] |
November 18, 2006, 00:05 |
i wish to calculate the mean f
|
#1 |
Guest
Posts: n/a
|
i wish to calculate the mean flow (and many other calculations) from time say 0.1s to 10.0s and write the final output in folder say Avg (at the same level as 0.1,0.2,0.3, ... 10.0) so for the corresponding volScalarField if i write the IOobject in its constructor as
U_bar(IOobject("U_bar","Avg",mesh .... )...) it doesn't work. I guessed that the second arg indicated the folder which is generally runtime.TimeName(), and replaced it with "Avg" can you please help? thanks a lot |
|
November 19, 2006, 00:59 |
is this thing possible? and ho
|
#2 |
Guest
Posts: n/a
|
is this thing possible? and how can i make OpenFOAM read a particular file from a particular directory? i would want OpenFOAM to read the files from the Avg Directory, if i can get it written.
|
|
November 19, 2006, 04:17 |
regIOobjects can only be read
|
#3 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
regIOobjects can only be read or written from time directories, system or constant. If you really insist on having them elsewhere, open your own OFstream and put the file wherever you like.
Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
November 19, 2006, 07:39 |
Thanks,
now i can quit tryin
|
#4 |
Guest
Posts: n/a
|
Thanks,
now i can quit trying to do it with all combinations possible, and take another route, as suggested. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
IOobject | r2d2 | OpenFOAM Running, Solving & CFD | 20 | May 5, 2016 09:16 |
Face Set Constructor for star v4.02 | gonnafon | Siemens | 1 | June 6, 2012 10:16 |
MultiComponentMixture constructor | prashant24983 | OpenFOAM Running, Solving & CFD | 5 | February 7, 2011 16:54 |
A question on IOObject | ivan_cozza | OpenFOAM | 0 | September 16, 2008 04:24 |