CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

IOobject constructor problem

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   November 18, 2006, 00:05
Default i wish to calculate the mean f
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
  Reply With Quote

Old   November 19, 2006, 00:59
Default is this thing possible? and ho
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.
  Reply With Quote

Old   November 19, 2006, 04:17
Default regIOobjects can only be read
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,806
Rep Power: 25
hjasak will become famous soon enough
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.

Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting:
hjasak is offline   Reply With Quote

Old   November 19, 2006, 07:39
Default Thanks, now i can quit tryin
Posts: n/a
now i can quit trying to do it with all combinations possible, and take another route, as suggested.
  Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IOobject r2d2 OpenFOAM Running, Solving & CFD 20 May 5, 2016 08:16
Face Set Constructor for star v4.02 gonnafon Siemens 1 June 6, 2012 09: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 03:24

All times are GMT -4. The time now is 09:13.