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

User-defined Outlet Boundary Condition in CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2017, 22:04
Smile User-defined Outlet Boundary Condition in CFX
  #1
New Member
 
Min Zhang
Join Date: Nov 2017
Location: China
Posts: 22
Rep Power: 8
modest_may is on a distinguished road
There are many types of boundary conditions for outlet in CFX. However, it seems to be impossible to impose both velocity and static pressure simultaneously. Here is a problem, at the outlet B.C., the pressure and velocity are coupled:

Velocity u*Ay + miu*Velocity u. Gradient y - Ax*Ay=0 (Eq.1)
Velocity v*Ay + miu*Velocity v. Gradeint y - Ay*Ay
& + (Velcoity•A) - 0.5*Velcoity*Velcoity = Pressure+Q (Eq.2)
Velocity w*Ay + miu*Velocity w. Gradient y - Az*Ay=0 (Eq.3)
where A=(Ax,Ay,Az) is a predefined vector (it is defined using initialized profile data) and Q is also a given value.

Now, the outlet boundary condition needs to be specified based on Eqs.(1-3). However, the unknown variables, including the pressure and three components of the Velocity vector, are more than the available equations by one.

Before I present the question, it might be worth mentioning that during the solver run, the pressure, velocity and velocity gradient can be get using the "USER_GETVAR" routine. So the questions are:

1. since the available equations are more than the unknown variables, can I define the pressure arbitrarily and then calculate and specify the three components of the velocity at the outlet boundary condition (see the figure attached, where pout=constant)?

2. As pointed out by the CFX modeling guide, USER_GETVAR cannot be used to change the value of the solution field.
If the static pressure is specified at the outlet and the pressure value is calculated using Eq.(2), then after every iteration step, is there any ways to correct the solved Velocity u and Velocity w using Eq.(1) and Eq.(3) respectively? This involves to manually change the outlet velocity field.

PS: Eqs.(1-3) are derived formulas, they may have no physical meanings and can be regarded as constraints. So the simulation problem is not described here.

Looking forward to any advice and comment. Thanks in advance. :-).
Attached Images
File Type: jpg Velocity Outlet.jpg (16.1 KB, 20 views)
modest_may is offline   Reply With Quote

Old   November 27, 2017, 22:32
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Why do want to do this? In every case I have seen the person who wants to set a simultaneous velocity and pressure boundary condition actually wants to do something else.

And the fact that simultaneous setting of velocity and pressure at a boundary is mathematically ill-posed in most situations is a give-away that this is something you probably don't want to do.
ghorrocks is offline   Reply With Quote

Old   November 27, 2017, 22:45
Default
  #3
New Member
 
Min Zhang
Join Date: Nov 2017
Location: China
Posts: 22
Rep Power: 8
modest_may is on a distinguished road
Thank you for the reply.

In fact, this is the adjoint outlet boundary equation for an optimization problem. A similar description is presented in this thread, but is for OpenFoam.

adjoint method- uniformity

As mentioned before, this condition may have no physical meaning, I just wonder if CFX can realize those two techniques whatever the final results are. .

Apart from the boundary condition, is it possible to modify the velocity filed after every iteration? I just found the velocity is stored in the directory of '/FLOW/BOUNDCON/ZN1/BCP3/VARIABLES/VEL_FL1', while i have no idea to do that.
modest_may is offline   Reply With Quote

Old   November 27, 2017, 22:48
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You have access to change just about everything in CFX through user fortran, but low level stuff like this is very tricky to implement and not well documented. I have not this type of fortran stuff for many years.
ghorrocks is offline   Reply With Quote

Old   November 27, 2017, 23:00
Default
  #5
New Member
 
Min Zhang
Join Date: Nov 2017
Location: China
Posts: 22
Rep Power: 8
modest_may is on a distinguished road
Many routines are not documented, this makes the User Fortran mysterious and elusive.

Last edited by modest_may; November 29, 2017 at 05:59.
modest_may is offline   Reply With Quote

Old   November 27, 2017, 23:08
Default
  #6
New Member
 
Min Zhang
Join Date: Nov 2017
Location: China
Posts: 22
Rep Power: 8
modest_may is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
You have access to change just about everything in CFX through user fortran, but low level stuff like this is very tricky to implement and not well documented. I have not this type of fortran stuff for many years.
Can you tell me what Routines are appropriate for this situation?
modest_may is offline   Reply With Quote

Reply

Tags
ansys cfx, outlet boundary condition, solution field


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
Outlet boundary condition for wave flume with interFoam solver Arnoldinho OpenFOAM 9 July 10, 2018 06:15
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
Radiation interface hinca CFX 15 January 26, 2014 18:11
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 05:13


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