Quantcast
Channel: Math.NET Numerics - Math.NET
Viewing all articles
Browse latest Browse all 224

Using ODEsolver to solve drag equation

$
0
0

@FunEye wrote:

Hi!

I’m very new to C# and Math.Net programming. I’ve got some experience in other languages, but have mainly used MATLAB in recent years.

I’m trying to create a method that calculates the trajectory of a projectile under the influence of drag and gravity.
In addition the drag coefficient is velocity dependent (simple table lookup).

Let x be the horizontal distance and y be the vertical distance. The initial position, velocity and direction is known.
The forces acting on the projectile is:
F = m*g - rho * v^2 *A * CD/2
where rho is the density of the air, A is the presented area of the projectile and CD is the drag coefficient, all known.

How would I use the ODEsolvers in Math.Net to find y = f(x)?
The documentation is really lacking when it comes to the ODEsolvers…

I assume I need to create a method/function for the equation of motion and pass it to the solver?
How do I do that? Remember I’m really new to C#…

Hope you can help me!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles