@@ -1162,7 +1162,7 @@ def all_info(self):
11621162 self .prints .all ()
11631163 self .plots .all ()
11641164
1165-
1165+ # TODO: move this class to a separate file, needs a breaking change warning
11661166class GenericMotor (Motor ):
11671167 """Class that represents a simple motor defined mainly by its thrust curve.
11681168 There is no distinction between the propellant types (e.g. Solid, Liquid).
@@ -1601,56 +1601,3 @@ def from_dict(cls, data):
16011601 nozzle_position = data ["nozzle_position" ],
16021602 interpolation_method = data ["interpolate" ],
16031603 )
1604-
1605-
1606- class EmptyMotor :
1607- """Class that represents an empty motor with no mass and no thrust."""
1608-
1609- # TODO: This is a temporary solution. It should be replaced by a class that
1610- # inherits from the abstract Motor class. Currently cannot be done easily.
1611- # pylint: disable=too-many-statements
1612- def __init__ (self ):
1613- """Initializes an empty motor with no mass and no thrust.
1614-
1615- Notes
1616- -----
1617- This class is a temporary solution to the problem of having a motor
1618- with no mass and no thrust. It should be replaced by a class that
1619- inherits from the abstract Motor class. Currently cannot be done easily.
1620- """
1621- self ._csys = 1
1622- self .dry_mass = 0
1623- self .nozzle_radius = 0
1624- self .thrust = Function (0 , "Time (s)" , "Thrust (N)" )
1625- self .propellant_mass = Function (0 , "Time (s)" , "Propellant Mass (kg)" )
1626- self .propellant_initial_mass = 0
1627- self .total_mass = Function (0 , "Time (s)" , "Total Mass (kg)" )
1628- self .total_mass_flow_rate = Function (
1629- 0 , "Time (s)" , "Mass Depletion Rate (kg/s)"
1630- )
1631- self .burn_out_time = 1
1632- self .nozzle_position = 0
1633- self .nozzle_radius = 0
1634- self .center_of_dry_mass_position = 0
1635- self .center_of_propellant_mass = Function (
1636- 0 , "Time (s)" , "Center of Propellant Mass (kg)"
1637- )
1638- self .center_of_mass = Function (0 , "Time (s)" , "Center of Mass (kg)" )
1639- self .dry_I_11 = 0
1640- self .dry_I_22 = 0
1641- self .dry_I_33 = 0
1642- self .dry_I_12 = 0
1643- self .dry_I_13 = 0
1644- self .dry_I_23 = 0
1645- self .propellant_I_11 = Function (0 , "Time (s)" , "Propellant I_11 (kg m²)" )
1646- self .propellant_I_22 = Function (0 , "Time (s)" , "Propellant I_22 (kg m²)" )
1647- self .propellant_I_33 = Function (0 , "Time (s)" , "Propellant I_33 (kg m²)" )
1648- self .propellant_I_12 = Function (0 , "Time (s)" , "Propellant I_12 (kg m²)" )
1649- self .propellant_I_13 = Function (0 , "Time (s)" , "Propellant I_13 (kg m²)" )
1650- self .propellant_I_23 = Function (0 , "Time (s)" , "Propellant I_23 (kg m²)" )
1651- self .I_11 = Function (0 )
1652- self .I_22 = Function (0 )
1653- self .I_33 = Function (0 )
1654- self .I_12 = Function (0 )
1655- self .I_13 = Function (0 )
1656- self .I_23 = Function (0 )
0 commit comments