Solve Curveball Modeling Using Runge-Kutta4

  • Context: Graduate 
  • Thread starter Thread starter ryankunzzz
  • Start date Start date
  • Tags Tags
    Modeling
Click For Summary

Discussion Overview

The discussion revolves around modeling the vertical displacement of a curveball in a two-dimensional space using differential equations. Participants explore the forces acting on the ball, specifically gravity and the Magnus force, and how to apply the Runge-Kutta4 method to solve the resulting equations of motion.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant outlines the equations for acceleration in both the x and y directions, incorporating the Magnus force and gravity.
  • Another participant challenges the correctness of the velocity equations, suggesting that the accelerations are not constant and proposing a different formulation based on time derivatives.
  • A later reply acknowledges that the accelerations depend on the previous velocity, indicating a dynamic relationship between the two components.
  • Participants discuss the need to treat the problem as two coupled second-order ordinary differential equations (ODEs) that can be reduced to four first-order ODEs for the Runge-Kutta method.
  • One participant suggests that the drag force from air should also be considered in the modeling, although others clarify that only the Magnus force and gravity are to be included.
  • There is a discussion about the axis of rotation of the ball, with clarification provided on the orientation of the spin.
  • Another participant proposes that under certain assumptions, the accelerations can be treated as almost constant, which leads to a specific formulation for the velocity equations suitable for RK4.
  • One participant expresses concern about the assumption of constant accelerations, questioning the dependency of accelerations on the velocities of the opposite components.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the treatment of accelerations and the inclusion of forces in the model. There are competing views on whether the accelerations can be considered constant and how to properly formulate the equations for the Runge-Kutta method.

Contextual Notes

There are unresolved assumptions regarding the dependency of accelerations on velocities and the potential impact of additional forces such as drag. The discussion reflects a range of interpretations of the problem setup and the mathematical modeling involved.

ryankunzzz
Messages
21
Reaction score
0
Hi there, so for my Differential equations class we are trying to model the vertical displacement of a curveball that is only in 2 dimensions, the X-Y plane, with Y being the vertical displacement, and X being the horizontal displacement.

To do this we were told that the 2 forces acting on the ball would be the force of gravity, and the magnus force due to the rotation of the ball. the problem is, the ball is thrown at an upward angle with a forward spin, and because the magnus force always acts perpendicular to the velocity of the ball it will always have 2 components, also x and y.

So far I have gotten my equations for the acceleration in both directions, and I think the equations for velocity in both directions, but I am having trouble solving the differential equations themselves. He hinted that using Runge-Kutta4 would be our best bet, but the equations are confusing me.

These are the 2nd derivative of displacement in each direction:
If Ay= -g - kVxω Where kVxω is the Y component of the magnus force.

Then Ax= +KVyω which is the X compenent of the magnus force,

Then our velocity equaions, which are the firs derivative of displacement, of should be:

Vy=Ay*t + Vy0 and
Vx=Ax*t + Vx0

But I'm totally stuck on how to apply Runge-Kutta4 to this.
 
Physics news on Phys.org
Your velocity equations don't seem correct to me. Ay and Ax are not necessarily constant in time.

i think the proper velocity equations can come out like this:

By taking the time derivative of both sides of the equation for Ay we will have [itex]\frac{dA_y}{dt}=-kA_x\omega[/itex] and replacing [itex]A_x=kV_y\omega[/itex] we get
[itex]\frac{dA_y}{dt}=-k^2V_y\omega^2[/itex] or [itex]\frac{d^2V_y}{dt^2}=-k^2\omega^2V_y[/itex]. With similar way you can get an equation for V_x. I hope this form is suitable for the Runge-Kutta method.

But then again such ODE have analytic solution, maybe your system of equations for the accelerations Ax and Ay is not correct at first place.
 
Last edited:
Yes sorry, the accelerations are not constant in time, but are depending on the opposite velocity from the step before hand.
 
Upon more research it seems we should be trying to solve these as 2 coupled 2nd order ODE's, which we can bring down into 4 first order ODE's and use Runge-Kutta on, but that is where I'm stumped.
 
Hmmmm, maybe you forgot the drag force from air [itex]\vec{F_d}=-b\vec{v}[/itex] in the modeling of the equations for A_x and A_y?

Also the ball is spining around which axis?
 
We were told to only take two forces into account, Magnus, and the force of gravity.

The ball is spinning about the axis coming out of the paper if you were to be looking down on to it.
 
Well all i can assume is that your professor wants you to test RK4 method though the equations seem to have exact analytic solution.

To the problem now I suppose we can further assume that the accelerations A_x and A_y do not vary much in time so as to consider them almost constant. Under this assumption your equations for velocity are correct. So it will be [itex]V_x=A_xt+V_{x_0}=kV_y\omega t+V_{x_0}[/itex] and replacing that expression in the equation for A_y we get [itex]\frac{dV_y}{dt}=-g-k^2\omega^2tV_y-k\omega V_{x_0}[/itex]. This last equation is obviously in RK4 form [itex]v'=f(t,v)[/itex].

You ll get another equation for V_x working in similar way. Together with the trivial equations of the definition of velocities [itex]V_x=dx/dt , V_y=dy/dt[/itex] you ll have a total of 4 first order ODEs.
 
Last edited:
The assumption that the accelerations are constant is what gets me. Wouldn't the accelerations at each point be dependent on the velocity of the opposite component at that point? So the Acceleration of x depends on the velocity of Y, and vice versa, and then those accelerations give the next velocities we would be using?
 
How does this look?
o4FUQql.jpg
 

Similar threads

  • · Replies 65 ·
3
Replies
65
Views
9K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
24
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K