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

Total mass flow - CFD Post

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2011, 15:32
Default Total mass flow - CFD Post
  #1
New Member
 
James
Join Date: Apr 2011
Posts: 13
Rep Power: 15
James113 is on a distinguished road
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
James113 is offline   Reply With Quote

Old   August 1, 2011, 11:45
Default
  #2
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 21
singer1812 is on a distinguished road
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;
!}
singer1812 is offline   Reply With Quote

Old   August 8, 2011, 16:49
Default
  #3
New Member
 
James
Join Date: Apr 2011
Posts: 13
Rep Power: 15
James113 is on a distinguished road
Thank you Singer. I will try that.
James113 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:31.