CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFX

volume flowrate integral

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 12, 2011, 03:49
Default volume flowrate integral
  #1
Member
 
sajad
Join Date: Nov 2010
Posts: 51
Rep Power: 6
sajad_abasi is on a distinguished road
hi to all.

i want to clculate following term in cfx that is time dependent quantity.
is it possible to calculate this term with out writing fortran code and if yes how??????????

""integral of ((Q-Qref)dt)"" where Q is flowrate at each time and Qref if refrence flowrate.........

pls help me in detail...

best regards
Attached Images
File Type: jpg 1.jpg (5.0 KB, 1 views)
sajad_abasi is offline   Reply With Quote

Old   August 12, 2011, 04:10
Default
  #2
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 120
Rep Power: 6
monkey1 is on a distinguished road
Why not writing it as an Expression and then creating a Variable which takes as Value the result of the expression?

If you then activate the transient statistics in the CFX Pre Output menu, then it will write out the transient averages for each defined variable.
Or you set the Variable as the one to be monitored during the run and then you can export the plotted data of the solver into a .csv file.

Is this goin in the direction of your problem???
monkey1 is offline   Reply With Quote

Old   August 12, 2011, 07:28
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,809
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
The easiest way to do this is to make a monitor point set to Q and write it out every time step. Then do the simulation and export the Q versus time graph and integrate it using excel, matlab or whatever you want.
ghorrocks is offline   Reply With Quote

Old   August 12, 2011, 08:18
Default flowrate summation
  #4
Member
 
sajad
Join Date: Nov 2010
Posts: 51
Rep Power: 6
sajad_abasi is on a distinguished road
hi.
my problem exctely is a porous domain.in normal case flowrate is Qref.then suddenly the pressure at inlet decreased and so the flow rate is decreased.i need to calculate that integral or in an other word "sumation" to use it and set te porous resistance and obtain the referenced flowrate.

so in any time step i need sumation of flowrate in the all passed time.this is exactly what i want to do.

is there a way that i can do this?

thanks for your replies.
Attached Images
File Type: jpg 8-11-2011 4-48-21 PM.jpg (4.4 KB, 1 views)
sajad_abasi is offline   Reply With Quote

Old   August 12, 2011, 08:27
Default
  #5
Member
 
sajad
Join Date: Nov 2010
Posts: 51
Rep Power: 6
sajad_abasi is on a distinguished road
the methods that you write is valuable when i want the summation as an outpout.

but i need it during the run to setup and change porous resistance.

i will be thankfull if you gide me

best regards
sajad_abasi is offline   Reply With Quote

Old   August 12, 2011, 10:02
Default
  #6
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 494
Rep Power: 10
singer1812 is on a distinguished road
It looks like you couldnt get the summation to work out within CEL. It should be straight forward and I dont see any reason why you are getting the error that you are getting.

Since you are have trouble with the CEL method, do the summation user fortran.
singer1812 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
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 22:14
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


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