|
[Sponsors] |
April 7, 2015, 05:32 |
P_VEL(p)[i] Actual meaning?
|
#1 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
Wondering what this actually means P_VEL(p)[i], I was thinking it is an array of values of each of the velocity components (Tangential Radial Axial)?And are these the same as the (x y z) components? I think not not but just hoping for a nice explanation.
Anyhow, if it is one of the component systems from above, I found in the Fluent UDF manual for calculating the normal velocity the normal component is given in an array of 3 values as well. Shouldn't it be just a single value? Or am i misunderstanding this part of the code from the UDF manual: for(i=0; i<idim; i++) P_VEL(p)[i] -= vn*normal[i]; Thanks |
|
April 7, 2015, 06:12 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
P_VEL(p)[i] is a macro returning velocities for a particle. P_VEL(p)[0] corresponds to the velocity in the x-direction, and so forth in Cartesian coordinates.
A vector, such as a (unit) normal vector, has several components as well so it makes sense to operate in each direction at a time (component-wise). |
|
April 7, 2015, 06:36 |
|
#3 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
How would you relate the velocities in the different Cartesian coordinates to the normal or tangential components? I thought that the components of P_VEL(p)[i] are the tangential, radial, axial components and each is equivalent to a direction (x,y,z).
Are you saying that the X velocity has further 3 components as well, that makes i a 3x3 matrix? Also in the above equation vn is the normal velocity, then why is it not written with its components like the other terms in the equation 'vn [i]'. Thanks |
|
April 7, 2015, 06:54 |
|
#4 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
Normal or tangential to what? Are you using Cartesian, cylindrical or other coordinates?
No. The particle has a motion in space and this velocity vector is the first time derivative of the displacement vector. In 3-D Cartesian coordinates: u=dx/dt, v=dy/dt and w=dz/dt. Or as vectors, u=dx/dt. For the particles in Fluent's DPM: u=P_VEL(p)[0], v=P_VEL(p)[1] and w=P_VEL(p)[2]. 'vn' is the magnitude of the normal velocity (perpendicular to the boundary face) and the normal unit vector is the variable 'normal' according to this post I assume you're referring to. Have a read of this Wikipedia article on the dot product operation. |
|
April 7, 2015, 09:43 |
|
#5 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
Thanks for that, I will go through it. Actually I dont even know what coordinates am i using, does it depend on the geometry? I suppose they are just cartesian, how do I tell?
|
|
April 7, 2015, 10:04 |
|
#6 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
You'll more than likely be using Cartesian coordinates, and that's fine (I'm not familiar with using other coordinate systems in Fluent and whether it's possible or practical to do so).
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Who can tell me what is the meaning of the macro in fluent UDF:C_PREMIXC_RATE(c,t) | ChenZhan | Fluent UDF and Scheme Programming | 1 | May 12, 2017 04:40 |
What's meaning of UDF FUNCTION | zhaoxinyu | Fluent UDF and Scheme Programming | 0 | March 31, 2010 09:04 |
incompressible, The exact meaning of P in case/0/p ? | panda60 | OpenFOAM | 3 | December 2, 2009 05:41 |
Actual drag force from dimensionless equations | slaxmi | CFX | 10 | September 14, 2007 20:20 |
What's the meaning of "combustion scalar"and.... | cfdbeginner | CFX | 0 | November 27, 2003 10:02 |