Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Calculating unit vector for velocity

  1. Jul 31, 2009 #1
    Hello,
    I am trying to calculate unit vector for velocity (vel= (U*Unit vector)/unit vector). But if I consider calculation by angle change e.g. unit vector= cos(theta) at certain angle velocity becomes infinity.
    Please inform me how I can take care of this problem.
    Thanks in advance.
     

    Attached Files:

  2. jcsd
  3. Jul 31, 2009 #2
    This equation makes no sense.

    This equation makes even less sense...as cos(theta) is a scalar not a vector.

    Typically you make unit vectors by normalizing them, which means to divide by the length.
     
  4. Jul 31, 2009 #3
    The unit vector for velocity would be:
    [tex]U=\left(\frac{V_x}{|V|},\frac{V_y}{|V|},\frac{V_z}{|V|}\right)[/tex]

    where the magnitude of the velocity vector is given by:

    [tex]|V|=sqrt(V_x^2+V_y^2+V_z^2)[/tex]

    and

    [tex]V_x[/tex],[tex]V_y[/tex],[tex]V_z[/tex], are the [tex]x[/tex], [tex]y[/tex], and [tex]z[/tex] components of the velocity vector respectively.

    However, without more information on the original problem I'm not sure if this is what you want.
     
  5. Jul 31, 2009 #4
    Thanks for reply.
    I am trying to multiply velocity with unit vector to transfer velocity without calculating at perticular location. Please see attached picture. Please tell me if I m using right equation and its values.

    John,
    I need to use following equation to calculate velocity for 2D?

    [tex]Unit vector=\left(\frac{U_x}{|U|}+\frac{U_y}{|U|}\right)[/tex]

    [tex]|U|=sqrt(U_x^2+U_y^2)[/tex]

    Then I can calculate U' by (U(x,y)*Unit vector(x,y))/unit vector(x,y)
     

    Attached Files:

  6. Jul 31, 2009 #5
    I think what you want is the dot product. The dot product will give you the component of the velocity in the direction of the unit vector.

    For a unit vector u the projection of V on U is given by:

    [tex]Proj_UV=U\cdot V=UxVx+UyVy+UzVz[/tex]
     
  7. Jul 31, 2009 #6
    means-
    If we consider one direction like picture I have attached in last post.
    U- Velocity(known)
    U'-Velocity(unknown)
    Uv-Velocity Vector

    Then if I am transferring velocity value

    U'=U.Uv

    Where [tex]U_v=\left(\frac{U}{|U|}\right )[/tex]

    But this becomes U'=U. I think this is wrong as location of velocity changes.
     
  8. Jul 31, 2009 #7
    To make your posts more clear, use subscripts for components of vectors. Now reread my last two posts. As far as I understand your problem, you are trying to find the component of the velocity in the direction of the unit vector. This is not the same thing as finding the velocity.
     
  9. Aug 3, 2009 #8
    Thank you John. This helped alot.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Calculating unit vector for velocity
  1. The CPU ALU unit (Replies: 5)

  2. C++ Vectors (Replies: 1)

Loading...