CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

Normal to Line - Curve Equ. from Points

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 4, 2005, 07:25
Default Normal to Line - Curve Equ. from Points
  #1
A.S.
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.
  Reply With Quote

Old   July 4, 2005, 07:40
Default Re: Normal to Line - Curve Equ. from Points
  #2
Simon
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
  Reply With Quote

Old   July 4, 2005, 20:34
Default Re: Normal to Line - Curve Equ. from Points
  #3
zxaar
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.

  Reply With Quote

Old   July 4, 2005, 23:39
Default Re: Normal to Line - Curve Equ. from Points
  #4
A.S.
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.
  Reply With Quote

Old   July 5, 2005, 00:19
Default Re: Normal to Line - Curve Equ. from Points
  #5
zxaar
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.
  Reply With Quote

Old   July 5, 2005, 02:41
Default Re: Normal to Line - Curve Equ. from Points
  #6
A.S.
Guest
 
Posts: n/a
Zxaar,

Thanks

A.S.
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 08:29
errors Fahad Main CFD Forum 0 March 23, 2004 14:20
Normal to a curve Pr Main CFD Forum 4 October 6, 2003 06:08
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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