In this problem, you will have to first create a Python function called twobody_dynamics_first_order_EoMS. Given a time t and a state vector X, this function will return the derivatives of the state vector. Mathematically, this means you are computing X using some dynamics equation X = f(t, x). Once you have this function in Python, you can solve the differential equations it contains by using solve_ivp. The command will be similar to, but not necessarily exactly, what is shown below: solve_ivp(simple_pendulum_first_order_EoMS, t_span, initial_conditions, args=constants, rtol = 1e-8, atol 1e-8) which integrates the differential equations of motion to give us solutions to the states (i.e., position and velocity of a satellite). In the above, t_span contains the initial time to and final time t, and it will compute the solution at every instant of time (you will define this later in Problem 1.3 below). The integration is done with initial state vector Xo which defines the initial position and velocity. Xo needs to be a column vector. You will need to use the following constants in arriving at your answers: • Earth gravitational parameter = 3.986 × 105 km³/s² • Earth mean radius = 6378.14 km

Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
icon
Related questions
Question
In this problem, you will have to first create a Python function called twobody_dynamics_first_order_EoMS. Given a time t and a
state vector X, this function will return the derivatives of the state vector. Mathematically, this means you are computing X using
some dynamics equation X = f(t, X).
Once you have this function in Python, you can solve the differential equations it contains by using solve_ivp. The command will be
similar to, but not necessarily exactly, what is shown below:
solve_ivp(simple_pendulum_first_order_EoMS, t_span, initial_conditions, args=constants, rtol
1e-8,
atol 1e-8)
which integrates the differential equations of motion to give us solutions to the states (i.e., position and velocity of a satellite). In the
above, t_span contains the initial time to and final time tƒ and it will compute the solution at every instant of time (you will define this
later in Problem 1.3 below).
The integration is done with initial state vector Xo which defines the initial position and velocity. Xo needs to be a column vector.
You will need to use the following constants in arriving at your answers:
• Earth gravitational parameter = 3.986 × 105 km³/s²
• Earth mean radius = 6378.14 km
Transcribed Image Text:In this problem, you will have to first create a Python function called twobody_dynamics_first_order_EoMS. Given a time t and a state vector X, this function will return the derivatives of the state vector. Mathematically, this means you are computing X using some dynamics equation X = f(t, X). Once you have this function in Python, you can solve the differential equations it contains by using solve_ivp. The command will be similar to, but not necessarily exactly, what is shown below: solve_ivp(simple_pendulum_first_order_EoMS, t_span, initial_conditions, args=constants, rtol 1e-8, atol 1e-8) which integrates the differential equations of motion to give us solutions to the states (i.e., position and velocity of a satellite). In the above, t_span contains the initial time to and final time tƒ and it will compute the solution at every instant of time (you will define this later in Problem 1.3 below). The integration is done with initial state vector Xo which defines the initial position and velocity. Xo needs to be a column vector. You will need to use the following constants in arriving at your answers: • Earth gravitational parameter = 3.986 × 105 km³/s² • Earth mean radius = 6378.14 km
Write down the two body equations of motion in 3D, as a system of differential equations in the form X = ƒ(X), where
X₁
X
1
=
and
X:
||
X =
N: C: 8: N. C. 8.
-
S
א•
•
א•
א
X₂
X3
X4
X5
X6
X4
X₁
X6
f1(X1, X2, X3)
f2(X1, X2, X3)
f3(X1, X2, X3)_
(1.1)
(1.2)
Transcribed Image Text:Write down the two body equations of motion in 3D, as a system of differential equations in the form X = ƒ(X), where X₁ X 1 = and X: || X = N: C: 8: N. C. 8. - S א• • א• א X₂ X3 X4 X5 X6 X4 X₁ X6 f1(X1, X2, X3) f2(X1, X2, X3) f3(X1, X2, X3)_ (1.1) (1.2)
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Dimensional Analysis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY