VolumeToDimension:

Path: Propulsion/Rocket

% Computes the dimensions of a tank. Four types may be entered:

   'sphere'
   'cylinder' (with spherical endcaps)
   'cylinder flat ends'
   'cylinder with constrained radius' (aR = diameter)
  
--------------------------------------------------------------------------
   Form:
   d = VolumeToDimension( v, type, aR )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   v			  (1,1)   Volume
   type    	  (1,1)   Type of tank 'sphere' 'cylinder' 'cylinder flat ends'
                         'cylinder constrained radius'
   aR            (1,1)   Length/width or diameter for constrained cylinder
                        
   -------
   Outputs
   -------
   d             (1,1)   Dimension
                         .diameter (1,1) Diameter
                         .length   (1,1) Length
                          
--------------------------------------------------------------------------

Back to the Propulsion Module page