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

calculate average velocity whith Phoenics

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2005, 06:19
Default calculate average velocity whith Phoenics
  #1
Olfa Daboussi
Guest
 
Posts: n/a
how could I proceede to calculate the average velocity for a sectional velocity distribution. Many Thanks
  Reply With Quote

Old   June 23, 2005, 13:46
Default Re: calculate average velocity whith Phoenics
  #2
mick
Guest
 
Posts: n/a
I suggest using inform as I think this is the sort of thing that this feature should be good for. I must admit I think the documentation could be easier. However it seems that the way to go with this feature is to suck it and see. You need to try and find/manipulate examples and experiment.

I managed to get an average from some simple code such as below. You could try modifying this or perhaps reading the documentation and coming up with something better.

INFORM7BEGIN

** declare variable

(MAKE ASUM is 0.)

PATCH(PATCH1,CELL,1,NX,1,NY,3,3,1,LSTEP) ! patch over which this works

(STORE1 ASUM at PATCH1 is SUM(W1))

(STORED VAVE at PATCH1 is ASUM/(nx*ny))

** Print-out into INFOROUT file (PRINT of w_average at PATCH is VAVE)

INFORM7END
  Reply With Quote

Old   June 24, 2005, 06:04
Default Re: calculate average velocity whith Phoenics
  #3
cham
Guest
 
Posts: n/a
The VR Viewer contour-map facility displays the average value for the selected plane on the background.
  Reply With Quote

Old   June 30, 2005, 12:24
Default Re: calculate average velocity whith Phoenics
  #4
Olfa Daboussi
Guest
 
Posts: n/a
I do it but PHOENICS do'nt give me a result. and when I insert the print-out syntax the solver displays an error message that in-form false syntax
  Reply With Quote

Old   October 14, 2005, 17:37
Default Re: calculate average velocity whith Phoenics
  #5
Steven
Guest
 
Posts: n/a
This works for me (calculates local bulk velocity at NX locations in x direction) using Inform:

DO II=1,NX

PATCH(M:II:,CELL,:II:,:II:,1,NY,1,NZ,1,LSTEP)

ENDDO

(MAKE ATOT)

(MAKE UBULK)

DO II=1,NX

(STORE1 of ATOT at M:II: is SUM(ARE) with SWPFIN)

(STORE1 of UBULK at M:II: is SUM(U1*ARE)/ATOT with

SWPFIN)

ENDDO

You can also define the PATCHes in VR no problem. However if you have arbitrary shaped facetted objects the areas etc. may not be right. You can output the last value (at NX)using;

(PRINT UBULK is UBULK)

It goes to the file INFOROUT

  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
calculate the average velocity of particles robert FLUENT 0 August 1, 2008 10:44
how to calculate the average kumar Main CFD Forum 0 July 13, 2006 13:17
calculate average in Paraview alain Main CFD Forum 0 March 14, 2006 06:49
how to calculate the average pressure lenson Siemens 0 March 4, 2005 04:24
calculate average magnitude Ethan Siemens 1 June 3, 2003 13:34


All times are GMT -4. The time now is 02:59.