|
[Sponsors] |
User-defined Outlet Boundary Condition in CFX |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 27, 2017, 22:04 |
User-defined Outlet Boundary Condition in CFX
|
#1 |
New Member
Min Zhang
Join Date: Nov 2017
Location: China
Posts: 22
Rep Power: 8 |
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. :-). |
|
November 27, 2017, 22:32 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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. |
|
November 27, 2017, 22:45 |
|
#3 |
New Member
Min Zhang
Join Date: Nov 2017
Location: China
Posts: 22
Rep Power: 8 |
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. |
|
November 27, 2017, 22:48 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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.
|
|
November 27, 2017, 23:00 |
|
#5 |
New Member
Min Zhang
Join Date: Nov 2017
Location: China
Posts: 22
Rep Power: 8 |
Many routines are not documented, this makes the User Fortran mysterious and elusive.
Last edited by modest_may; November 29, 2017 at 05:59. |
|
November 27, 2017, 23:08 |
|
#6 |
New Member
Min Zhang
Join Date: Nov 2017
Location: China
Posts: 22
Rep Power: 8 |
Can you tell me what Routines are appropriate for this situation?
|
|
Tags |
ansys cfx, outlet boundary condition, solution field |
|
|
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 |