|
[Sponsors] |
September 29, 2016, 03:41 |
Please HELP!!! How to calculate average mass flow rate?
|
#1 |
New Member
Join Date: Jun 2016
Posts: 25
Rep Power: 10 |
Hi, I am a degree student. I was wondering how to calculate the average mass flow rate over the total time step at outlet.
Last edited by michellemay1993; September 29, 2016 at 10:02. |
|
September 29, 2016, 13:02 |
|
#2 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23 |
1.) Make An Expression for MyOutFlow = "massFlow()@outlet"
2.) Make a chart where you plot the transient results for this expression 3.) export it as .csv and average it in excel or some other program. There may be another way using transient statistics, but I have not done it that way, so I can't tell you how. |
|
September 30, 2016, 02:15 |
|
#3 |
New Member
Join Date: Jun 2016
Posts: 25
Rep Power: 10 |
Is this how it normally be calculated?
|
|
September 30, 2016, 12:54 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
A modified version of Evcelica instructions:
If you are using CFD-Post : 1.) Make An Expression for MyOutFlow = "massFlow()@outlet" 2.) Make a chart where you plot the transient results for this expression 3.) In the Data Series tab, there is an info (i) icon (just below the (x) for delete). Click the info icon, and it will display the max/min/mean over the rang of the chart. There is just "time averaged value" If you are using a recent version of ANSYS CFX, you can use the ANSYS CFX Solver Manager, 1.- Create a plot for the Boundary Flow for the continuity equation at the Outlet (effectively massFlow()@outlet). 2.- Create a Derived Variable for such plot (right click on the plot area), and look at the Derived Variables tab. Select the type of statistics you want to evaluate, say Time Average. Select the range of time for the averaging. 3 - Go to the Plot Variables tab, and activate on which individual plot you want the statistics to be computed; otherwise, it will compute on all the variables being plotted. If you want for the quantities to be computed in the solver, and output to the ANSYS CFX Solver Manager, 1.- Create a monitor point 2.- Select Option = Expression, write the expression of interest 3.- Activate Transient Statistics for that expression and select the statistics of interest.. As you see, there are several ways to obtain what you need. Hope the above helps, |
|
March 28, 2019, 06:31 |
|
#5 |
New Member
dboss
Join Date: Mar 2019
Posts: 6
Rep Power: 7 |
@Opaque
I tried the last possibility you mentioned. But I couldn't find the averaged massflow in the cfx solver manager? |
|
March 28, 2019, 08:58 |
|
#6 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
The last option is to be set in CFX-Pre(processor), and visualize in the CFX-SolverManager
In CFX-Pre, goto Output Control/Monitor, insert Monitor Point-> Option=Expression, and you should see what is available to you. |
|
March 28, 2019, 11:46 |
|
#7 |
New Member
dboss
Join Date: Mar 2019
Posts: 6
Rep Power: 7 |
I am not sure if understood your description correctly.
At the moment I have a area averaged massflow for which I defined a monitor point in cfx-pre. During solving in the cfx-solver I can see on a monitor the reasonable fluctuating curve for the massflow. But how can i extract the average out of this curve? I already tried by creating a trn-stats document in cfx-pre with arithmetic average, a specially created variable massflow, but I couldn't find the result chart, file or table? Thank you for your patience. |
|
March 28, 2019, 11:49 |
|
#8 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Could you post the CCL for the monitor point you have created?, Right click on the monitor point icon in the Outline tree, select Edit in Command Editor, copy and paste here.
|
|
March 28, 2019, 13:13 |
|
#9 |
New Member
dboss
Join Date: Mar 2019
Posts: 6
Rep Power: 7 |
FLOW: Flow Analysis 1 OUTPUT CONTROL:
MONITOR OBJECTS: &replace MONITOR POINT: massflowinletleft Coord Frame = Coord 0 Expression Value = massFlowInletLeft Option = Expression END END END END |
|
March 28, 2019, 13:21 |
|
#10 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
What is your expression for massFlowInletLeft equal to?
|
|
March 28, 2019, 13:26 |
|
#11 |
New Member
dboss
Join Date: Mar 2019
Posts: 6
Rep Power: 7 |
massFlowInletLeft is equal to massFlow()@REGION:inlet_left
CCL would be: LIBRARY: CEL: &replace EXPRESSIONS: Nperiod = 10 PexiteAmpl = 50000 [Pa] PexiteMean = 200000 [Pa] Pout = 1e5[Pa] Tin = 293[K] freqO = 1000 [Hz] massFlowInlet = massFlow()@REGION:inlet massFlowInletLeft = massFlow()@REGION:inlet_left massFlowInletRight = massFlow()@REGION:inlet_right massFlowOutlet = massFlow()@REGIONutlet pInletLeft = massFlowAve(Absolute Pressure )@REGION:inlet_left pOszileft = PexiteMean + PexiteAmpl *sin(2*pi*freqO *t) pOsziright = PexiteMean + PexiteAmpl *cos(2*pi*freqO *t) pin = 5e5 [Pa] timeStepsPerPeriod = 40 END END END |
|
March 28, 2019, 13:50 |
|
#12 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
I assume you are using a recent version of the software; therefore, the following should work
FLOW: Flow Analysis 1 OUTPUT CONTROL: MONITOR OBJECTS: &replace MONITOR POINT: massflowinletleft Coord Frame = Coord 0 Expression Value = massFlowInletLeft Option = Expression MONITOR STATISTICS: Option = Moving Interval Statistics List = Arithmetic Average INTERVAL DEFINITION: Number of Timesteps = 10 Option = Timesteps END END END END END END |
|
April 1, 2019, 13:27 |
|
#13 |
New Member
dboss
Join Date: Mar 2019
Posts: 6
Rep Power: 7 |
Sorry for the late response. That did work thank you very much.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
y+ and u+ values with low-Re RANS turbulence models: utility + testcase | florian_krause | OpenFOAM | 114 | August 23, 2023 06:37 |
Mass Flow rate in DPM model | tohidtkz | FLUENT | 0 | November 7, 2015 05:13 |
Periodic channel flow with time dependent mass flow rate | QBeast | FLUENT | 3 | May 10, 2013 14:14 |
Mass Flow Rate Error | jallison | FLUENT | 1 | May 16, 2011 17:22 |
Mass Flow Rate is not converging | destgir448 | CFX | 5 | December 11, 2010 06:55 |