I made a change to the code YASim in order to get the actual execution speed dell'FDM, I hope that this code can be inserted in the official git because I think it is a useful aid for closer monitoring of the parameters. I included two examples, the first is related to the Eurofighter and the second to DHC6:
Note: I have inserted the line: "CPU Iter. Time:" to show the time in ms all'FDM need to find the solution. Since the average FDM runs 100-120 times every second, on my machine, I preferred to to insert the multiplication x 100 to give an concept of the total time required every second. The value "time for iteration" is the time required by the CPU in microseconds (us).
Yasim Eurofighter cpu speed test with param: <approach speed="30" aoa="9">
- Code: Select all
YASim Solution results
Iterations: 351
CPU Iter. time: 0.11963 ms (11.96 x100) time for iteration: 0.34 us
Drag Coefficient: 11.909696
Lift Ratio: 4713.267578
Cruise AoA: -0.512621
Tail Incidence: -0.284141
Approach Elevator: -0.011375
CG: x:-9.642, y:-0.000, z:0.087
Inertia tensor : 39099.188, 2.326, 5263.448
[kg*m^2] 2.326, 159295.875, -0.037
Origo at CG 5263.448, -0.037, 188226.859
Yasim Eurofighter cpu speed test with param: <approach speed="130" aoa="9">
- Code: Select all
YASim Solution results
Iterations: 351
CPU Iter. time: 0.11968 ms (11.97 x100) time for iteration: 0.34 us
Drag Coefficient: 12.546452
Lift Ratio: 220.451385
Cruise AoA: 0.729339
Tail Incidence: 0.450501
Approach Elevator: 0.045810
CG: x:-9.642, y:-0.000, z:0.087
Inertia tensor : 39099.188, 2.326, 5263.448
[kg*m^2] 2.326, 159295.875, -0.037
Origo at CG 5263.448, -0.037, 188226.859
Yasim Eurofighter cpu speed test with param: <approach speed="230" aoa="9">
- Code: Select all
YASim Solution results
Iterations: 678
CPU Iter. time: 0.23305 ms (23.31 x100) time for iteration: 0.34 us
Drag Coefficient: 12.009978
Lift Ratio: 59.845356
Cruise AoA: 3.523851
Tail Incidence: 0.646575
Approach Elevator: 0.166401
CG: x:-9.642, y:-0.000, z:0.087
Inertia tensor : 39099.188, 2.326, 5263.448
[kg*m^2] 2.326, 159295.875, -0.037
Origo at CG 5263.448, -0.037, 188226.859
Yasim Eurofighter cpu speed test with param: <approach speed="330" aoa="9">
- Code: Select all
YASim Solution results
Iterations: 1201
CPU Iter. time: 0.40928 ms (40.93 x100) time for iteration: 0.34 us
Drag Coefficient: 11.789522
Lift Ratio: 18.964622
Cruise AoA: 7.932158
Tail Incidence: -6.921604
Approach Elevator: 0.298966
CG: x:-9.642, y:-0.000, z:0.087
Inertia tensor : 39099.188, 2.326, 5263.448
[kg*m^2] 2.326, 159295.875, -0.037
Origo at CG 5263.448, -0.037, 188226.859
Yasim DHC6 cpu speed test:
- Code: Select all
YASim Solution results
Iterations: 1304
CPU Iter. time: 0.20395 ms (20.40 x 100) time for iteration: 0.16 us
Drag Coefficient: 17.284220
Lift Ratio: 104.260559
Cruise AoA: 2.561422
Tail Incidence: -1.359083
Approach Elevator: -0.361199
CG: x:-0.085, y:0.000, z:0.564
Inertia tensor : 79429.453, -0.000, 204.822
[kg*m^2] -0.000, 23331.586, 60.101
Origo at CG 204.822, 60.101, 98913.227
Comment:
Meanwhile, it is evident that the DHC6 has a better optimization for single loop because each loop cycle lasts 16 us compared to 34 which is observed for the Eurofighter. But the DHC6 employs hes about 1304 cycles compared to 351 required by Eurofighter.
The solution dell'FDM may deviate greatly varying one parameter, this means that the "boundary conditions" are fundamental and should be chosen attentively.
After this test it is clear that the parameter "Flight" is only partly related to the effective execution speed of the FDM loop solution. It would be interesting to know where is built the parameter "Flight" and if there is a link to "Events". In fact, I noticed that the higher "Flight", is on average higher "Events". Can indicate which is the code that implements the "Performance Monitor"? I think looking at that code, can understand something more.
I think it is useful to include the function that calculates the time loop for better optimization, if you're interested I can show you the code in another post, are just a few lines.