struct Solution t::Vector{Float64} position::Matrix{Vector{Float64}} φ::Matrix{Float64} function Solution(N::Int64, n_frames::Int64) return new(zeros(n_frames), [zeros(2) for i in 1:N, j in 1:n_frames], zeros((N, n_frames))) end end function save_data_jld(sol, args, name_part) println("Saving data...") data_path = "exports/$name_part.jld2" jldsave(data_path; sol, args, name_part) println("Data saved to $data_path.") return nothing end