CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Just one teeny tiny question

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 2, 2007, 08:24
Default Hi to all, I added this file
  #1
Member
 
hadi tartoussi
Join Date: Mar 2009
Location: paris
Posts: 48
Rep Power: 7
hadi is on a distinguished road
Hi to all,
I added this file in channelOodles to save the variation of gradP through time, but after each iteration the value of gradP replace the preceding one, so i only get the latest value.
How can i write in this file all the values without removing the preceding one's for each iteration?

# include "OFstream.H"
OFstream gradP
(
runTime.path()/("gradP.dat")
);
gradP
<< runTime.timeName() << gradP.value() << "\n
<< endl;

Thanks in advance
Hadi
hadi is offline   Reply With Quote

Old   August 2, 2007, 08:52
Default Sorry guys, I just noticed
  #2
Member
 
hadi tartoussi
Join Date: Mar 2009
Location: paris
Posts: 48
Rep Power: 7
hadi is on a distinguished road
Sorry guys,

I just noticed that i should open the file before the time Loop.

Thanks anyways
cheers
hadi is offline   Reply With Quote

Reply

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
CFX 10 question DAK565656 CFX 0 August 6, 2007 01:06
UDF question Kerem FLUENT 0 April 3, 2006 20:24
UDF question Z FLUENT 0 March 16, 2005 13:06
Tiny size particle question. (DPM) ggbaby FLUENT 2 August 18, 2004 11:14
injecting water mixed with tiny bubble willy FLUENT 3 June 18, 2001 09:50


All times are GMT -4. The time now is 15:30.