Issues related to multiple iterations #739
wanglishuo
started this conversation in
General
Replies: 1 comment
-
If anyone sees it, can you answer my question? Thank you very much! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry to bother you again@schaubh ,
I have established a basic orbital simulation. The difference is that I want to implement a solution that, after conducting a simulation, takes the orbit information of the last position of the satellite as the input for the next simulation, repeating this process multiple times.
But I encountered some problems. When I assigned the results of each simulation to the initial state, it did not change, and each simulation still started from the state I set at the beginning.
Perhaps this question is a bit foolish, but I really don't understand where the problem lies. Can you point out where the problem lies, or can you provide me with a feasible solution.Here is my code.
`oe = orbitalMotion.ClassicElements()
rLEO = 7000. * 1000 # meters
oe.a = rLEO
oe.e = 0.0001
oe.i = 33.3 * macros.D2R
oe.Omega = 48.2 * macros.D2R
oe.omega = 347.8 * macros.D2R
oe.f = 85.3 * macros.D2R
rN, vN = orbitalMotion.elem2rv(mu, oe)
oe = orbitalMotion.rv2elem(mu, rN, vN)
scObject.hub.r_CN_NInit = rN # m - r_BN_N
scObject.hub.v_CN_NInit = vN # m/s - v_BN_N
Thank you very much for your answer!
Beta Was this translation helpful? Give feedback.
All reactions