Angular Momentum problem v2 (mass moving inward or outward)

In summary, an equation is provided that calculates the velocities that conserves angular momentum. It uses the force to accel decel and keep the system valid.
  • #1
losbellos
63
0
TL;DR Summary
An other angular momentum problem, code included that runs in a browser. Press F12 for more info.
Hello, simplified the Angular momentum problem that comes up when i try to solve a mass moving inward or outwards and it does not conserver the angular momentum properly. I have tried this is many software by now, or by someone else and we all have found that there is no angular momentum conservation that can be called valid.

So I wrote some equations and try to write my onw solver but could not solve for a valid force (or torque) that would accelerate and decelerate considering the mass differences (frame and moving in mass), location, time, accel etc...

I wonder anyone can present a simple code that can actually prove that angular momentum conservation valid in a simple case.. I'd say two point is good enough...Here is my code have a look at it if you like.
Also please advise if you ever used any software and was validated that in simple problems like this conserves the angular momentum...

https://files.fm/u/zgjafqaxa
 
Last edited:
Physics news on Phys.org
  • #2
losbellos said:
TL;DR Summary: An other angular momentum problem, code included that runs in a browser.

I wonder anyone can present a simple code that can actually prove that angular momentum conservation valid in a simple case..
See Feynman I 18-3.
 
  • #3
OP don't seem to include any code so I don't know if this is your problem, but some types of numerical integrators are well known for producing simulations that don't respect conservation laws. The problem is in their methods of approximate integration, not the underlying theory.
 
Last edited:
  • Like
Likes losbellos, berkeman and hutchphd
  • #4
Ibix said:
OP don't seem to include any code so I don't know if this is your problem, but some types of numerical integrators are well known for producing simulations that don't respect conservation laws. The problem is in their methods of approximate integration, not the underlying theory.
Its up now again, sorry I did not see that after edit, it was lost for the edit post page.
 
  • #5
Made an other equation to try to solve the misery of the moving mass inwards to the center of the rotation and the conserved angular momentum etc

TAM, total angular momentum initial condition's value
ratio, ratio of the radiuses at the actual points (outer rim's radius/current location of the mass in terms of distance aka radius because it is moving inwards on a radius line)
vf, velocity of the outer rim of the frame
vm, velocity of the moving mass
vfp, it is the velocity that needs to be added to the vf
mm, mass of the moving mass
vfo, original velocity of the outer rim of the frame
AMF, original, initial angular momentum of the frame
REFFa, a set reference acceleration like 0.0001
rm, current location of the mass
TQF, Torque required to accelerate the frame with reference acceleration
TQM, Torque required to accelerate the mass at the current location with reference acceleration

TAM * ratio * (((vf + vfp)/ts/REFFa*TQF)) = ((vf + vfp) / vfo * AMF + (vm - (vm - (vf / ratio + vfp / ratio))) * mm * rm) * ((vf + vfp) / (vm - (vm - (vf / ratio + vfp / ratio))))*((vm - (vm - (vf / ratio + vfp / ratio)))/ts/REFFa*TQM)
ts, timestep
Here is an equation that makes sense it uses the angular momentum and the force(Torque) in order to find a pair of velocities that fullfills the criteries at a specific point on the way inwards the system

Left side of the equation:
Total angular momentum * ratio of the radiuses * (((current vel of the frame(outer rim) + vel to be added)/timestep/referenceA*TQ req for ref a for the frame))
Try to understand that these values must match on the right side too but by different phenomenon. For example as much force used to accel the frame as much will be used to decel the mass... so it is very useful.
I know that it seems that the left side doesn't make sense but the values are multiplying together in order to make a result that only can be if the right side also multiples these values together and since they are produced in a progress moving inwards the variations that maybe producing the same result and not producing invalid ratio of the velocities, torque etc are totally zero...

Right side:
total angular momentum * ratio of the velocities * Torque required to decelerate the masses

total angular momentum
((vf + vfp) / vfo * AMF + (vm - (vm - (vf / ratio + vfp / ratio))) * mm * rm)
Ratio of the velocities
((vf + vfp) / (vm - (vm - (vf / ratio + vfp / ratio))))
Torque Required to decelerate the mass (Must be the same for the frame)
((vm - (vm - (vf / ratio + vfp / ratio)))/ts/REFFa*TQM)

So this way the result produces velocities that are conserving the angular momentum and using the same force to accel decel and keep the system very valid because it cares about the velocities of the masses and their retios related to their locations etc. There is at least 7 criteria's that are in this equation that tries to estimate the valid velocities at the current locations based on what they should have at the new locations and what velocities they had at the previous locations.
So the equation is not sensitive to the inwards velocity, the time step size, but it is unable to deal with insanely dense like 30000 kg/m^3 objects because the equation is only valid if certain values multiplies together doest equals to zero etc... But not too many...
 
  • #6
Do you have a drawing of what you're trying to solve?

I'm with @Ibix anyways. If the equations are right but you're seeing energy is not being conserved it can be typically solved by reducing the step size in the simulation.
For example, I wrote some code to calculate the movement of a mass attached to a spring with some friction with the ground.
$$m\ddot{x} = -kx - \textup{sign}\left (\dot{x}\right ) \mu N$$
1690718342736.png


If I make the friction coefficient ##\mu = 0## then the energy of the system should look like this:
1690718042650.png

You can see how the potential energy in the spring and kinetic energy in the mass balance each other to keep the total energy in the system constant.However, if the step size is not small enough, then the energy is not conserved.
1690718036575.png


I can't remember exactly but I believe every time I have seen it happening energy is not conserved because it gets lost. I don't think I have ever seen the opposite where energy is created. It's not relevant to the point I'm trying to make but it's something I've always felt curious about. Maybe it's just related to the iteration process I use for the calculations.
 
Last edited:
  • Like
Likes PeroK

Related to Angular Momentum problem v2 (mass moving inward or outward)

What is angular momentum in the context of a mass moving inward or outward?

Angular momentum is a measure of the rotational motion of an object. For a mass moving inward or outward, it is the product of the mass's moment of inertia and its angular velocity. When the mass moves inward or outward, its moment of inertia changes, which affects its angular velocity if no external torque is applied.

How does the conservation of angular momentum apply when a mass moves inward or outward?

The conservation of angular momentum states that if no external torque acts on a system, the total angular momentum of the system remains constant. When a mass moves inward or outward, its distance from the axis of rotation changes, which alters its moment of inertia. To conserve angular momentum, the angular velocity must adjust accordingly. If the mass moves inward, the angular velocity increases, and if the mass moves outward, the angular velocity decreases.

What is the mathematical expression for angular momentum in this scenario?

The angular momentum \( L \) of a mass \( m \) at a distance \( r \) from the axis of rotation moving with an angular velocity \( \omega \) is given by \( L = I \omega \), where \( I \) is the moment of inertia. For a point mass, \( I = mr^2 \), so the angular momentum can also be expressed as \( L = mr^2 \omega \).

What happens to the kinetic energy of the mass as it moves inward or outward?

As the mass moves inward, its angular velocity increases due to the conservation of angular momentum, leading to an increase in rotational kinetic energy, which is given by \( \frac{1}{2} I \omega^2 \). Conversely, as the mass moves outward, its angular velocity decreases, resulting in a decrease in rotational kinetic energy. This change in kinetic energy must be accompanied by work done on or by the system, such as a force acting on the mass.

How do external forces influence the angular momentum of a mass moving inward or outward?

External forces can influence the angular momentum of a mass moving inward or outward if they exert an external torque on the system. An external torque can change the total angular momentum of the system. If no external torque is present, the angular momentum is conserved, and any change in the mass's distance from the axis of rotation will result in a corresponding change in angular velocity to maintain the conservation of angular momentum.

Similar threads

Replies
19
Views
1K
Replies
3
Views
2K
Replies
40
Views
3K
  • Mechanics
Replies
6
Views
205
Replies
9
Views
2K
Replies
36
Views
3K
Replies
36
Views
14K
Replies
3
Views
931
Back
Top