SolidMotor Plots Class#

class rocketpy.plots.solid_motor_plots._SolidMotorPlots[source]#

Class that holds plot methods for SolidMotor class.

Variables:

_SolidMotorPlots.solid_motor (SolidMotor) – SolidMotor object that will be used for the plots.

__init__(solid_motor)[source]#

Initializes _MotorClass class.

Parameters:

solid_motor (SolidMotor) – Instance of the SolidMotor class

Return type:

None

grain_inner_radius(lower_limit=None, upper_limit=None)[source]#

Plots grain_inner_radius of the solid_motor as a function of time.

Parameters:
  • lower_limit (float) – Lower limit of the plot. Default is none, which means that the plot limits will be automatically calculated.

  • upper_limit (float) – Upper limit of the plot. Default is none, which means that the plot limits will be automatically calculated.

Return type:

None

grain_height(lower_limit=None, upper_limit=None)[source]#

Plots grain_height of the solid_motor as a function of time.

Parameters:
  • lower_limit (float) – Lower limit of the plot. Default is none, which means that the plot limits will be automatically calculated.

  • upper_limit (float) – Upper limit of the plot. Default is none, which means that the plot limits will be automatically calculated.

Return type:

None

burn_rate(lower_limit=None, upper_limit=None)[source]#

Plots burn_rate of the solid_motor as a function of time.

Parameters:
  • lower_limit (float) – Lower limit of the plot. Default is none, which means that the plot limits will be automatically calculated.

  • upper_limit (float) – Upper limit of the plot. Default is none, which means that the plot limits will be automatically calculated.

Return type:

None

burn_area(lower_limit=None, upper_limit=None)[source]#

Plots burn_area of the solid_motor as a function of time.

Parameters:
  • lower_limit (float) – Lower limit of the plot. Default is none, which means that the plot limits will be automatically calculated.

  • upper_limit (float) – Upper limit of the plot. Default is none, which means that the plot limits will be automatically calculated.

Return type:

None

Kn(lower_limit=None, upper_limit=None)[source]#

Plots Kn of the solid_motor as a function of time.

Parameters:
  • lower_limit (float) – Lower limit of the plot. Default is none, which means that the plot limits will be automatically calculated.

  • upper_limit (float) – Upper limit of the plot. Default is none, which means that the plot limits will be automatically calculated.

Return type:

None

draw()[source]#

Draw a representation of the SolidMotor.

Return type:

None

all()[source]#

Prints out all graphs available about the SolidMotor. It simply calls all the other plotter methods in this class.

Return type:

None