|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
James
Join Date: Apr 2011
Posts: 13
Rep Power: 13 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 19 ![]() |
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; !} |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
James
Join Date: Apr 2011
Posts: 13
Rep Power: 13 ![]() |
Thank you Singer. I will try that.
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
particle, parcel and mass flow rate balance | flybird | FLUENT | 0 | May 24, 2007 10:44 |
mass flow | Wenbin Song | FLUENT | 0 | September 27, 2005 13:00 |
Mass flow rate | Neser | CFX | 4 | February 14, 2004 00:27 |
Determine mass flow rate along flow path | Atit Koonsrisuk | CFX | 2 | October 5, 2003 04:47 |
Mass Flow Inlet | Pravir Kumar Rai | FLUENT | 0 | February 19, 2003 14:03 |