|
[Sponsors] |
July 4, 2005, 08:25 |
Normal to Line - Curve Equ. from Points
|
#1 |
Guest
Posts: n/a
|
Hi,
I have a 2d set of points, I want to get the curve equation, and then move points by some distances normal to the curve at that point. Can anybody point to some online literature on it. Thanks A.S. |
|
July 4, 2005, 08:40 |
Re: Normal to Line - Curve Equ. from Points
|
#2 |
Guest
Posts: n/a
|
I would suggest a spline interpolation, but if you use the routine from the "Numerical Recipes" book, what you get is the second derivative values to perform the interpolation as well as a routine to obtain the interpolated values. You can obtain the normal gradient to the surface from the first derivative: -1/df
|
|
July 4, 2005, 21:34 |
Re: Normal to Line - Curve Equ. from Points
|
#3 |
Guest
Posts: n/a
|
i belive i can help you, last week i wrote a small program to calculate the center of curvature for given 3d set of data representing a curve. i do calculate the normal vector in order to find the center of rotation, if u drop me a mail, i can modify my prog little bit to suit ur need and can mail u that.
(for example u might want to displace all the points by some fixed values or u might have corrosponding values in a file, or u might want to calculate them based on given curve). write in detail. |
|
July 5, 2005, 00:39 |
Re: Normal to Line - Curve Equ. from Points
|
#4 |
Guest
Posts: n/a
|
Hi Zxaar,
Thanks for your help.I will mail you the program. I is for 2d grid generation. It uses the Numerical recipies spline subroutine for interpolationing points. If you can help it will be very kind of you. Thanks A.S. |
|
July 5, 2005, 01:19 |
Re: Normal to Line - Curve Equ. from Points
|
#5 |
Guest
Posts: n/a
|
or in 2d you can use this approach,
http://online.redwoods.cc.ca.us/inst...osculating.htm my approach is similar to it but its in 3d. |
|
July 5, 2005, 03:41 |
Re: Normal to Line - Curve Equ. from Points
|
#6 |
Guest
Posts: n/a
|
Zxaar,
Thanks A.S. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM15 installables are incomplete problem with paraFoam | tryingof | OpenFOAM Bugs | 17 | December 7, 2008 05:41 |
Normal and Tangent to Curve | A.S. | Main CFD Forum | 1 | September 11, 2007 09:29 |
errors | Fahad | Main CFD Forum | 0 | March 23, 2004 14:20 |
Normal to a curve | Pr | Main CFD Forum | 4 | October 6, 2003 07:08 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |