|
[Sponsors] |
April 4, 2006, 07:07 |
Velocity u.Gradient X
|
#1 |
Guest
Posts: n/a
|
Hi friends,
I tried to use the command "Velocity u.Gradient X" in order to extract the velocity gradient in X direction. Then this value enters a formulae to calculate viscosity. However it is not working in SOLVER. It gives an error: "Velocity u.Gradient X Velocity u.: read successfully, and then error found at item: Gradient X syntax error" Is there anyway to solve this? Thanks Serdar |
|
April 4, 2006, 10:18 |
Re: Velocity u.Gradient X
|
#2 |
Guest
Posts: n/a
|
Dear Mgtripple,
The ANSYS CFX solver does not support access to miscellaneous/suffixed variables such Velocity u.Gradient X or the like via CEL.. However, you may write a User CEL Function where you can call USER_GETVAR for Velocity.Gradient and use it as needed. The pointer to the stack that USER_GETVAR provides includes all the components of the Gradient for all velocity components, i.e a matrix.. Good luck, Opaque.. |
|
April 4, 2006, 10:34 |
Re: Velocity u.Gradient X
|
#3 |
Guest
Posts: n/a
|
Sorry to interupt. May I some question about this USer CEL thing? Would that be possible to use this function to define a plane in the flow domain and then output the area-averaged static pressure of this plane when the solver is running? Thank you for advice.
|
|
April 4, 2006, 10:43 |
Re: Velocity u.Gradient X
|
#4 |
Guest
Posts: n/a
|
Dear CFXuser,
The ANSYS CFX solver can only compute averages on region/locations already defined as a boundary in CFX-Pre.. An option in 10.0 is to remesh, or define a surface (2D) region and create a domain interface at such region.. Then, you can use a areaAve(Pressure)@New 2D region.. It may work if you only need a single plane. However, if you need more than 1, I would not even try it.. I understand the upcoming 11.0 will allow to use average functions on already defined regions even if they are not boundaries, or domain interfaces.. Good luck, Opaque.. |
|
April 5, 2006, 10:36 |
Re: Velocity u.Gradient X
|
#5 |
Guest
Posts: n/a
|
Thanks for the answer
Please correct me if i am wrong but what i understood from the manuals that i need FORTRAN program installed on my computer to use CEL function ? Regards, Serdar |
|
April 5, 2006, 11:00 |
Re: Velocity u.Gradient X
|
#6 |
Guest
Posts: n/a
|
Dear Mgtripple,
You need to write your own FORTRAN routine, compile it (you need a supported compiler), and setup the proper details in CFX-Pre.. It is a workaround; otherwise, there is no mechanism to get what you want.. Opaque.. |
|
April 5, 2006, 12:13 |
Re: Velocity u.Gradient X
|
#7 |
Guest
Posts: n/a
|
thanks again
at least now i know where to start. |
|
January 26, 2014, 15:00 |
how to use velocity gradient as a boundary codition
|
#8 | |
New Member
Chandrasekhar
Join Date: Oct 2013
Location: new jersey
Posts: 24
Rep Power: 13 |
Hello opaque
i would like to know how to input a velocity gradient( say in the x direction) as a boundary condition. my case is very simple, it is a 2d box with inlet and outlet. the bc's are 1m/sec at inlet and i want to input du/dx=0 at outlet. can u please tell me how to do this. Many thanks for replying. with regards Chandra Sekhar Quote:
|
||
January 27, 2014, 08:04 |
|
#9 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
Why do you want to fix du/dx at the outlet? For almost all cases that should be a part of the solution. Fixing that would affect the velocity fied upstream, which is not something you'd want unless you're testing something.
That being said, if your channel is long enough with a constant shape before the outlet, your solution should be du/dx=0 (developed flow). |
|
January 27, 2014, 11:01 |
|
#10 |
New Member
Chandrasekhar
Join Date: Oct 2013
Location: new jersey
Posts: 24
Rep Power: 13 |
Hi
first of all thanks for the prompt reply. i wanted to use du/dx=0 because i want to see how it is different from that of a pressure outlet at the outlet. I would like to know how to input such a boundary condition. Many thanks for replying. with regards |
|
January 28, 2014, 09:31 |
|
#11 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
Well, it's very different. On one you're imposing a prescribed pressure (velocity field is part of the solution), while on the other you're saying velocity u shouldn't change.
What is your application? |
|
January 28, 2014, 11:01 |
|
#12 |
New Member
Chandrasekhar
Join Date: Oct 2013
Location: new jersey
Posts: 24
Rep Power: 13 |
Hi
my professor had told me to see the velocity and pressure contours by applying different boundary conditions. so i thought of comparing three different scenarios by keeping the bc at the inlet constant. they are outflow at outlet, pressure outlet at outlet, and du/dx=0 at the outlet. I would like to know if i am doing some thing wrong. Also i tried using du/dx=constant in my case, fluent is showing an error. my case is a simple 2d rectangle with inlet and outlet at the opposite sides. I think i am doing it wrong. will be grateful for any help. Many thanks for replying. with regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
help with UDF for contact angle based on contact line velocity | gandesk | Fluent UDF and Scheme Programming | 14 | October 29, 2012 14:58 |
How to calculate Velocity? | Kali Sanjay | Phoenics | 1 | May 1, 2006 14:57 |
Neumann pressure BC and velocity field | Antech | Main CFD Forum | 0 | April 25, 2006 03:15 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |