I am trying to design a rocket fin in rocketpy..but it's not showing any output..i am using VS code IDE #640
-
import rocketpy as rp Define the rocket componentsBody componentbody = rp.BodyComponent( Nose componentnose = rp.NoseComponent( Fin componentfins = rp.FinSet( Create the rocketrocket = rp.Rocket( Set the motormotor_h268r = rp.Motor( motor_g74w = rp.Motor( Set the simulation parametersenv = rp.Environment( Run the simulation with the H268R-14 motorrocket.motor = motor_h268r Run the simulation with the G74W-9 motorrocket.motor = motor_g74w Print the simulation resultsprint(f"Apogee (H268R-14): {results_h268r.apogee * 0.3048} m") Plot the flight trajectoriesplt.figure(figsize=(10, 6)) Analyze the stability marginprint(f"Stability Margin (H268R-14): {(results_h268r.cp - results_h268r.cg) / 0.0762} calibers") |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @Manassadashiv , thanks for your question. The syntax you have presented is not familiar to me. RocketPy doesn't have classes like Please refer to our documentation to get complete instructions on how to run your trajectory simulations with rocketpy: docs.rocketpy.org |
Beta Was this translation helpful? Give feedback.
Hello @Manassadashiv , thanks for your question.
The syntax you have presented is not familiar to me. RocketPy doesn't have classes like
BodyComponent
,FinSet
, orNoseComponent
.Are you sure you have opened your question in the right repo?
Please refer to our documentation to get complete instructions on how to run your trajectory simulations with rocketpy: docs.rocketpy.org