AlexS12 / FlightMechanicsSimulator.jl

Flight Mechanics Engine
MIT License
9 stars 2 forks source link

Simulation results #36

Open AlexS12 opened 3 years ago

AlexS12 commented 3 years ago

At the moment, only the state vector is stored as a result of the simulation process:

  sol = solve(prob, solver; solve_args...)
  df = DataFrame(sol')
  rename!(df, get_x_names(dss))
  df[!, :time] = sol.t
  return df

However, given the library architecture, based on different types for different physical variables, it would be useful to store this structs during the integration process (ie. atmosphere, dssd, atmosphere...).

However, if the equation is solved in this manner (parameters, no data arrays), there will be no record of what the parameter was at each timepoint. That is the tradeoff between DEDataArrays and ParameterizedFunctions.

AlexS12 commented 3 years ago

Useful information:

https://discourse.julialang.org/t/ordinarydiffeq-unexpected-results-in-dedataarray/59282