What kind of integration is this?

  • Thread starter Ballistic
  • Start date
  • #1
Ballistic
16
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!
 

Answers and Replies

  • #2
rcgldr
Homework Helper
8,791
579
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:
  • #3
Ballistic
16
0
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:
  • #4
rcgldr
Homework Helper
8,791
579
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:
  • #5
Ballistic
16
0
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:
  • #6
rcgldr
Homework Helper
8,791
579
Last edited by a moderator:
  • #7
Ballistic
16
0
Yessir, I think I was mislead from the homework request.

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

Suggested for: What kind of integration is this?

  • Last Post
2
Replies
57
Views
5K
  • Last Post
Replies
9
Views
819
  • Last Post
Replies
18
Views
2K
Replies
6
Views
1K
Replies
12
Views
4K
  • Last Post
Replies
4
Views
861
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
12
Views
2K
Top