CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   Calculate velocity inflow on a 2D surface in 3D (

quarkz May 6, 2009 20:07

Calculate velocity inflow on a 2D surface in 3D
1 Attachment(s)
I need to calculate velocity inflow on a 2D surface in 3D. I can vaguely recall but I 'm not too sure. i have the coordinates of the 2D surface and the velocity vector

The steps are:
1. using 2 vector on the 2d surface (v1 n v2), calculate its unit cross product vector. this new vector will be perpendicular to the 2d surface

2. do a dot product between the new perpendicular vector and the velocity vector (vel vect). tt 'll give the velocity flowing into the 2D surface.

is this correct? tks!

mettler May 7, 2009 08:06

isn't this just the curl?

samolet4e May 7, 2009 09:19

I think (actually I know with confidence) that you will take the right steps if you follow what you have suggested in the list. As regards the curl mettler asked about, he obviously doesn't know know that the "rot" operator is obtained through a CROSS product between the nabla operator and another vector. :cool:

Rami May 10, 2009 05:07

There is one step missing in the suggested process: The v1 x v2 product will indeed create a normal, but you will then have to normalize it to make it a unit normal. Only then do the scalar (dot) product with the velocity vector to have the normal velocity. The direction of the latter (into or out of the domain) will depend on whether v1 x v2 is directed into the domain or outwards.

quarkz May 10, 2009 05:54

Thanks Rami and samolet4e,

ya i missed out tt normalising step. tks for pointing it out.

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