Skip to main content
1-Visitor
July 27, 2018
Solved

wavy circle by equation

  • July 27, 2018
  • 1 reply
  • 8036 views

Hi all, I have been trying to figure out how one might create a 'wavy circle' similar to the attached screen shot by using curve equation. It is 2 dimensional. 

Regards

John 

Best answer by HamsterNL

/* For cartesian coordinate system, enter parametric equation
/* in terms of t (which will vary from 0 to 1) for x, y and z
/* For example: for a circle in x-y plane, centered at origin
/* and radius = 4, the parametric equations will be:
/* x = 4 * cos ( t * 360 )
/* y = 4 * sin ( t * 360 )
/* z = 0
/*-------------------------------------------------------------------
r = 50
a = 5
n = 20

x = (r + a * sin(n * t * 360 )) * cos (t * 360 )
y = (r + a * sin(n * t * 360 )) * sin (t * 360 )

 

Wavy Circle.PNG

1 reply

HamsterNL
HamsterNL18-OpalAnswer
18-Opal
July 27, 2018

/* For cartesian coordinate system, enter parametric equation
/* in terms of t (which will vary from 0 to 1) for x, y and z
/* For example: for a circle in x-y plane, centered at origin
/* and radius = 4, the parametric equations will be:
/* x = 4 * cos ( t * 360 )
/* y = 4 * sin ( t * 360 )
/* z = 0
/*-------------------------------------------------------------------
r = 50
a = 5
n = 20

x = (r + a * sin(n * t * 360 )) * cos (t * 360 )
y = (r + a * sin(n * t * 360 )) * sin (t * 360 )

 

Wavy Circle.PNG

1-Visitor
July 27, 2018

Thank you, I knew there would be an equation. I just could not figure out how to introduce number of cycles & amplitude to a circle in x-y plane.

Best regards

John

HamsterNL
18-Opal
July 27, 2018

This is the first time I have created such a curve.

 

I combined the knowledge from the reply by Max in this StackExchange post "Equation of sine wave around a circle" with this Creo post about Equations for Curves and more.

 

After I replaced "θ" (the angle) with "t * 360", the wavy circle showed up.