CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

IOobject constructor problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2006, 23:05
Default i wish to calculate the mean f
  #1
iyer_arvind
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
  Reply With Quote

Old   November 18, 2006, 23:59
Default is this thing possible? and ho
  #2
iyer_arvind
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.
  Reply With Quote

Old   November 19, 2006, 03:17
Default regIOobjects can only be read
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
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.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

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

Reply


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 Off
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 15:54
A question on IOObject ivan_cozza OpenFOAM 0 September 16, 2008 03:24


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