Normalized Angular Rotation/Position Equations?

  • Context: Undergrad 
  • Thread starter Thread starter Stargazer43
  • Start date Start date
  • Tags Tags
    Angular
Click For Summary

Discussion Overview

The discussion revolves around solving dynamic equations related to the angular position of an object rotating around a circle. Participants explore methods to normalize angular values within a 0-360 degree range and address the decay of a variable based on angular proximity. The conversation includes technical challenges and proposed solutions related to modeling forces on a rotating cylinder.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant seeks a method to normalize angular position to avoid discontinuities when the angle exceeds 360 degrees, suggesting the use of RPM = Angle/Time.
  • Another participant proposes using the modulo operation to keep the angle within the 0-360 degree range, questioning the necessity of resetting the angle.
  • A participant expresses confusion regarding the decay of a variable x based on angular proximity, asking for more details on the issue.
  • Another participant mentions the challenge of modeling a localized force on a rotating cylinder, emphasizing the need to avoid conditional statements that complicate convergence in solutions.
  • One participant suggests using complex numbers of magnitude 1 to represent circular motion without discontinuity, while also noting that accepting angles larger than 2π and applying modulus when necessary is a simpler approach.

Areas of Agreement / Disagreement

Participants present multiple competing views on how to handle angular normalization and the decay of the variable x. The discussion remains unresolved, with differing opinions on the best approach to modeling the problem.

Contextual Notes

Participants have not reached consensus on the methods for normalizing angles or the decay function for variable x. There are also unresolved details regarding the mathematical representation of forces acting on the rotating cylinder.

Stargazer43
Messages
7
Reaction score
0
TL;DR
Trying to describe position on a circle as a function of time within 0-360 degrees, without creating a discontinuity when the angle goes from 360-degrees back to 0.
I'm trying to write a program to solve a series of dynamic equations, and ran into one stumbling block that seems like it should be easy to resolve. Basically, I'm trying to solve for the angular position of an object rotating around a circle, and to specify certain conditions on the circle when the object passes over it. These conditions would not be active on the rest of the circle. This is far enough outside the realm of what I usually get involved with that I could use some advice! I have a series of discretized equations for each position on the circle. The issues I was running into were the following:

1.) I can easily solve for the angular position as a function of time by using RPM = Angle/Time, but the issue is that my circle is only 0-360 degrees. After one revolution the reported angle will be >360, and arbitrarily resetting it back to 0 creates a major discontinuity that throws off the equation solvers I'm using. Is there a way to normalize the angle so that there will be a smooth transition between 360 degrees and 0 degrees, and to keep the final angular value within the range of 0-360?

2.) For each position on the circle, I want to set the value of a variable x=1 if the position matches the angle calculated above as a function of time, and have x decay to 0 if the angle is more than 10-degrees apart from that calculated above. Is there a good way to do this? I started off by using a ratio of the values of sin(Angle), but since two different angles can have the same sin value, it wasn't working quite as intended.
 
Physics news on Phys.org
Stargazer43 said:
1.) I can easily solve for the angular position as a function of time by using RPM = Angle/Time, but the issue is that my circle is only 0-360 degrees. After one revolution the reported angle will be >360, and arbitrarily resetting it back to 0 creates a major discontinuity that throws off the equation solvers I'm using. Is there a way to normalize the angle so that there will be a smooth transition between 360 degrees and 0 degrees, and to keep the final angular value within the range of 0-360?
Why not keep the angle as it is, and take the modulo when you need to map it in the range 0-360?

Stargazer43 said:
2.) For each position on the circle, I want to set the value of a variable x=1 if the position matches the angle calculated above as a function of time, and have x decay to 0 if the angle is more than 10-degrees apart from that calculated above. Is there a good way to do this? I started off by using a ratio of the values of sin(Angle), but since two different angles can have the same sin value, it wasn't working quite as intended.
I don't understand the issue here. You'll have to give more details.
 
DrClaude said:
I don't understand the issue here. You'll have to give more details.

I am trying to model a localized force of a known magnitude acting on a rotating cylinder. The force is in a constant location, but the cylinder is rotating. The main part I was struggling with is how to mathematically represent the angular position/magnitude of this force on the cylinder as a function of time.

I am solving all of the equations using the Newton method, so I was hoping not to use too many if/then statements or discontinuities since it struggles with that. Any of the approaches I have come up with involve a lot of conditional if/then statements that make it more difficult to converge on a solution.
 
Complex numbers of magnitude 1 correspond to a circle without discontinuity, but usually accepting angles larger than 2pi and then take the modulus when it matters is easier to handle.
 

Similar threads

  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
54
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K