CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

is there a post processing keyword for obtaining mass flow rate and total mass?

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2013, 16:47
Default
  #21
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
I'll try to look into it this weekend.
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 12, 2013, 13:30
Default
  #22
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
dear Bruno its the begining of weekend in your place!
please see how can modifying calcMassFlow.thanks.
immortality is offline   Reply With Quote

Old   April 14, 2013, 06:48
Default
  #23
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
FYI: I've updated the post #18: http://www.cfd-online.com/Forums/ope...tml#post418748
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 14, 2013, 07:14
Default
  #24
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thank you so much dear Bruno.
I'll test it a tell you.
Why rho is there in comment?
My case is compressible.its not necessary for me,is it?
immortality is offline   Reply With Quote

Old   April 14, 2013, 07:22
Default
  #25
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by immortality View Post
Why rho is there in comment?
My case is compressible.its not necessary for me,is it?
If you check the example file "calcMassFlowDict" that is in the attached tarballs on post #18, you'll see these lines:
Code:
// Factor to multiply the results with (for symmetric or axial cases)
// scaleFactor 72.;

// Density for incompressible cases
// rho rho [1 -3 0 0 0 0 0] 0.41;
So I can only guess that you can leave that line commented... although I would suggest that you first confirm with a case that you fully know of what goes in and what goes out...
__________________
wyldckat is offline   Reply With Quote

Old   April 14, 2013, 11:56
Default
  #26
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
it works nice.the output is like what swak4Foam run time function gives.
but how can increase time step decimal numbers? and if it can be done that a summation on phi's multiply to time step is outputted then total mass on each patch is obtained in the whole time (like: Total Mass = SUM(mass_flow_rate * time_step_size) ) and it is not required to external softwares. could you please have a look into this work? and it will be fully completed
thanks.
immortality is offline   Reply With Quote

Old   April 14, 2013, 13:08
Default
  #27
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Unfortunately I'm not 100% certain if I understand your request correctly.
If the time step is now of fixed size, then you only need to define "scaleFactor" accordingly.
If the time step varies... it depends on whether you've saved all of the iterations or not... because with only a few iterations, it will lead to a non-measurable error...

... wait... you want the summation of all results... and place it were?.. I guess at the bottom of the file...

If the time step is fixed, you'll be the one assuming the resulting error isn't relevant. Otherwise, you should have calculated this while the solver is running, not after it's finished.

I'll try to see if I can still implement this today. Otherwise, it will have to wait till next weekend.
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 20, 2013, 08:05
Default
  #28
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
I use adjustableRunTime.I think it could be possible to multiply each value in column right to difference of value of column left(time)and its before time(upper value) to program.
yes at the end of file or better at a time that user specifies when execute calcMassFlow in terminal in seconds (like:calcMassFlow .002)
immortality is offline   Reply With Quote

Old   July 4, 2013, 16:49
Default
  #29
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Hi Bruno
I executed calcMassFlow on a case but this showed:
Code:
Create time

fileName::stripInvalid() called for invalid fileName UntitledFolder
    For debug level (= 2) > 1 this is considered fatal
Aborted
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   July 6, 2013, 01:08
Default
  #30
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
it resolved.an untitled folder had been created accidently in the case folder.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   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
Target Mass Flow Rate Nitin FLUENT 9 June 17, 2017 10:30
how to set BC for compressible flow target mass flow rate foolboy007 FLUENT 1 April 4, 2012 03:24
Mass flow rate through each cell Babakjingo Main CFD Forum 0 August 21, 2011 03:18
particle, parcel and mass flow rate balance flybird FLUENT 0 May 24, 2007 10:44
mass flow inlet Denis Tschumperle FLUENT 7 August 9, 2000 02:19


All times are GMT -4. The time now is 00:14.