What kind of integration is this?

  • Thread starter Thread starter Ballistic
  • Start date Start date
  • Tags Tags
    Integration
Click For Summary

Discussion Overview

The discussion revolves around identifying the type of numerical integration methods used in a given script related to physics simulations. Participants explore the integration methods applied for calculating velocity and distance over time, with a focus on understanding the distinctions between them.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests that the integration method might be the Euler method but expresses confusion about the specifics.
  • Another participant notes that two different methods are being used: one for velocity and another for distance, which may contribute to the confusion.
  • Further clarification is requested regarding which specific methods correspond to velocity and distance calculations.
  • Key equations are referenced, indicating that the velocity update resembles a simple Euler method while the distance update appears to use a trapezoidal approach.
  • Participants discuss the names of the integration methods, with one asserting that the methods used are not the common Runge-Kutta methods.
  • A participant shares links to Wikipedia articles on numerical methods for ordinary differential equations, suggesting that the Euler and trapezoidal methods are relevant to the discussion.

Areas of Agreement / Disagreement

Participants generally agree that different methods are used for velocity and distance calculations, but there is no consensus on the specific names of the integration methods being applied. The discussion remains unresolved regarding the exact classification of these methods.

Contextual Notes

Participants express uncertainty about the integration methods and their names, indicating a reliance on external resources for clarification. There are references to common numerical methods, but no definitive conclusions are reached.

Ballistic
Messages
15
Reaction score
0

Homework Statement



I'm given with the following script:

Code:
for ii = 2:length(x_time)
    V(ii)                   = V(ii-1) - (forces_x(ii-1)./w) * g .* dt;                                        
    D(ii)                   = 0.5 .* rho .* V(ii).^2 * s * Cd;                    
    R(ii)                   = (not relevant);
    F(ii)                   = 2 .* Cf(ii) .* R(ii);                              
    forces_x(ii)         = (F(ii) + D(ii)) - T(ii);                 
    distance(ii)         = distance(ii-1) + .5 .* (V(ii) + V(ii-1)) .* dt;           
    deceleration(ii)   = (V(ii) - V(ii-1))./dt;                               
end

Homework Equations



Above I've reported only the relevant equations.

The Attempt at a Solution



I'm asked to state what kind of integration is this.

I don't know really how to answer, I was thinking about Euler-method, but right now I am a bit confused.Thank you for your help!
 
Physics news on Phys.org
Two methods are being used, one method for velocity, and another method for distance. Perhaps that is why you're not sure?
 
Last edited by a moderator:
Can you please tell me which is the method for the velocity and which one is for the distance?

Thanks for the help!
 
Last edited by a moderator:
Ballistic said:
Can you please tell me which is the method for the velocity and which one is for the distance?
Note the key equations being used for velocity and distance are essentially these equations:

v = v[i-1] + a Δt

d = d[i-1] + 1/2 (v + v[i-1]) Δt
 
Last edited by a moderator:
Exactly! Thanks again!

But what's the name (e.g. Runge-Kutta, Euler, ecc.) of this integration methods, if they have any?
 
Last edited by a moderator:
Last edited by a moderator:
Yessir, I think I was mislead from the homework request.

Thank you for your very accurate answers!
 
Last edited by a moderator:

Similar threads

Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
12K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
6
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K