CylindricalTank Class#
- class rocketpy.CylindricalTank[source]#
Class to define the geometry of a cylindrical tank. The cylinder has its zero reference point at its center (i.e. half of its height). This class inherits from the TankGeometry class. See the TankGeometry class for more information on its attributes and methods.
- __init__(radius, height, spherical_caps=False, geometry_dict={})[source]#
Initialize CylindricalTank class. The zero reference point of the cylinder is its center (i.e. half of its height). Therefore the its height coordinate span is (-height/2, height/2).
- Parameters:
radius (
float) – Radius of the cylindrical tank, in meters.height (
float) – Height of the cylindrical tank, in meters.spherical_caps (
bool, optional) – If True, the tank will have spherical caps. The default is False.geometry_dict (
dict, optional) – Dictionary containing the geometry of the tank. See TankGeometry.