|
[Sponsors] |
July 31, 2011, 15:32 |
Total mass flow - CFD Post
|
#1 |
New Member
James
Join Date: Apr 2011
Posts: 13
Rep Power: 15 |
Hi,
I am using CFX to simulate the motion of fluid inside vibrating elastic pipe. Currently, I am trying to use CFD-POST to calculate the total mass flow through the inlet. I know how to calculate the total mass flow on each time step, but how can I sum it? Thanks, James |
|
August 1, 2011, 11:45 |
|
#2 |
Senior Member
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 21 |
Try using perl and powersyntax. The following is an example. Not tested and written in haste, but general idea.
# Load a transient file and read the time step list > load filename=myFile.res !$timestepList = getValue("DATA READER", "Timestep List"); !@timesteps = split(/, /, $timestepList ); # Print step number, time value and mass flow for each time step ! $sum = 0; ! open(FH,">myOut"); ! foreach $ts ( @timesteps ) { > load timestep=$ts ! $val = massFlow("Inlet"); ! $sum=$sum+$val; ! $time = getValue( "DATA READER", "Current Timevalue"); ! print FH "$ts $time $val $sum\n"; !close FH; !} |
|
August 8, 2011, 16:49 |
|
#3 |
New Member
James
Join Date: Apr 2011
Posts: 13
Rep Power: 15 |
Thank you Singer. I will try that.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
particle, parcel and mass flow rate balance | flybird | FLUENT | 0 | May 24, 2007 11:44 |
mass flow | Wenbin Song | FLUENT | 0 | September 27, 2005 14:00 |
Mass flow rate | Neser | CFX | 4 | February 14, 2004 01:27 |
Determine mass flow rate along flow path | Atit Koonsrisuk | CFX | 2 | October 5, 2003 05:47 |
Mass Flow Inlet | Pravir Kumar Rai | FLUENT | 0 | February 19, 2003 15:03 |