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

Fortran Subroutines (area pressure calculation)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2000, 11:54
Default Fortran Subroutines (area pressure calculation)
  #1
Olu B
Guest
 
Posts: n/a
I am trying to locate a subroutine to calculate the total pressure over a set of cells at a givem location. i am running a diffuser test case and i am tring to show the variations in pressure for several axial locations.

  Reply With Quote

Old   March 28, 2000, 17:13
Default Re: Fortran Subroutines (area pressure calculation)
  #2
Jan Rusås
Guest
 
Posts: n/a
Dear Olu B,

I assume you are talking about CFX4.2/3, I think in CFX5 there the total pressure is available.

If you are using CFX4.3 I recommend the following procedure.

In your command file define your own user scalar, and then include the usrsrc.f file in where you calculate the total pressure and assign the value to your user scalar.

You can then see the total pressure in any post processor, and calculate it on any plane you which with the use of >>PATCH DATA. Take care when you do this, if you want to calculate an average pressure on a surface it should be mass average, which also is an option in patch data.

There is also another way, if you only want to calculate the total pressure and not seeing it in a post processor, if you have access to userflows.f in the extras library, the file is probably moved from the CFX4.3 library because the facility to calculate variables on any plane/patch is included in the command file. There is also a readme file to explain have you include the patch data when using the userflows.f file.

In the userflows.f file modify the lines with PHI=VAR(…. To PHI=0.5*DEN*(U**2+V**2+W**2) Any variable you define in patch data will now be the total pressure. Again-remember mass average.

Regards Jan
  Reply With Quote

Old   April 4, 2000, 02:44
Default Re: Fortran Subroutines (area pressure calculation)
  #3
Mamdud Hossain
Guest
 
Posts: n/a
Dear Jan,

Your answer is of great interest to me. I am new in using CFX4.2. So, I need some help. Basically, I am interested to calculate average pressure at the inlet and outlet patch. Can you please tell how to do that? I could not find >>PATCH DATA command in the manual, so I am not sure how to use that command also?

Regards,

Mamdud
  Reply With Quote

Old   April 4, 2000, 04:13
Default Re: Fortran Subroutines (area pressure calculation)
  #4
Jan Rusås
Guest
 
Posts: n/a
Dear Mamdud,

The reason why you can not find the >>PATCH DATA is because you are using CFX4.2. You should follow the procedure outlined in the last section of my answer. Find the userflows.f in you extras directory, read the readmefile. Modify the userflows.f as explained. If you still have problems fell free to contact me, I'll send you the file. Do remember - mass average if you want to calculate a pressure difference.

Regards Jan

  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
Pressure Rise Error emueller CFX 0 May 5, 2009 11:08
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Warning 097- AB Siemens 6 November 15, 2004 04:41
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
pressure gradient term in low speed flow Atit Koonsrisuk Main CFD Forum 2 January 10, 2002 10:52


All times are GMT -4. The time now is 17:39.