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

Pressure as the variable in Expression in CFX-Pre

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2005, 14:42
Default Pressure as the variable in Expression in CFX-Pre
  #1
Atit Koonsrisuk
Guest
 
Posts: n/a
Please someone suggest me how to use 'Pressure' and 'area' at a certain face inside the domain as the variable in 'Expressions' of CFX-Pre.

I would like to define one variable in 'Expressions' of CFX-Pre as the function of the pressure at one certain face of my domain. I found the name of face is F5.B1.P3 and the formula is the pressure at that face times face area. However I do not know how to define that pressure. I already tried:

Pressure@F5.B1.P3 and Pressure()@F5.B1.P3 and Pressure("F5.B1.P3") and massFlowAve(Pressure)@F5.B1.P3

but none of them is acceptable. Do anyone know how to define the pressure at certain face in 'Expressions'

In addition, Function Calculator in CFX-Post can compute 'area' at any face, so there must be 'area' as the parameter in CFX, isn't it? However I have no idea how to get 'area' to use in CFX-Pre. I have tried:

area@F5.B1.P3 and area()@F5.B1.P3

they all doesn't work. In my domain, there are some 2D regions that I specify the boundary conditions. For example, I have 'in' as the 2D region for 'Inlet' boundary condition. I have tried

area@in

CFX accept this definition, but the preprocessor does not support its evaluation in CFX-Pre. Do I have to define F5.B1.P3 as the 2D region? I think that we define 2D region for specifying boundary conditions, while this face is the face on fluid subdomain for energy source, which need not any boundary condition. So I think specify it as 2D region is not right, isn't it?

Thank you very much for your kind consideration.

Atit
  Reply With Quote

Old   February 16, 2005, 14:55
Default Re: Pressure as the variable in Expression in CFX-
  #2
Juan Carlos
Guest
 
Posts: n/a
Hi,

The callback functions within CFX-Pre and the CFX-Solver only support the use of regions that are defined as : domain, sub-domain, boundary, domain interfaces, point sources or monitor points. There is no mechanism for accessing a face that is not a boundary or a domain interface.

Can you make that region a domain interface? and treat the subdomain as a domain?

For further information, you can look at the CEL Variables, Functions and Constants section of the CFX-5.7/5.7.1 documentation.

Regards, Juan Carlos

  Reply With Quote

Old   February 16, 2005, 15:09
Default Re: Pressure as the variable in Expression in CFX-
  #3
Atit Koonsrisuk
Guest
 
Posts: n/a
Dear Carlos, Thank you very much for your kind answer.

I follow your suggestion by defining that face as the domain interface named 'ADin'. As I stated earlier that

area@in

do work, but

area@ADin

doesn't work. Why?

In addition, do you have idea how to use pressure, because even

Pressure@in

doesn't work

Thank you very much.

Atit
  Reply With Quote

Old   February 16, 2005, 16:18
Default Re: Pressure as the variable in Expression in CFX-
  #4
Juan Carlos
Guest
 
Posts: n/a
Hi,

When you refer to the domain interface, you should refer to a side of it. Then, you really refer to the boundary on the side you are interest in. I think that will solve the area@ADin problem..

Second, callbacks are single value functions.. You cannot access the Pressure array on a boundary via a callback yet.. You can average, min, max the array but not access the array itself.. You may be confused with the syntax, for example area is a function not a variable with syntax area@location. Other example is areaAve(variable, like Pressure)@location.

For example, to obtain the area integral of Pressure over a surface, you do : areaInt(Pressure)@location

Regards, Juan Carlos

  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
Setting Pressure Boundary Conditions in ANSYS CFX Pre saisanthoshm88 CFX 21 February 22, 2017 17:50
Total pressure in CFX famarcfd CFX 0 June 17, 2011 11:33
how to define pressure drop with CFX post alex CFX 0 September 20, 2007 18:31
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 14:19
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 16:00


All times are GMT -4. The time now is 12:29.