PropellantMass:

Path: SC/Actuator

% Compute the propellant mass and pressurant mass for a tank.

	 The following equation is used:
		p = R*( mPressurant*T )/(V-mFuel/rhoFuel )

   where p is the pressure, R is the gas constant of the pressurant, V is the 
   tank volume, and rhoFuel is the density of the fuel.  
   
   The mass of the pressurant is found by setting p=pMin and mFuel=0. 
   The total mass of the fuel is then found by solving the above equation 
   for "mFuel".

   Helium gas constant:		2079 J/(kg*K)
	 Hydrazine density:   		1010 kg/m^3
	 Convert PSI-to-metric: 	1 PSI = 6895 N/m^2
--------------------------------------------------------------------------
   Form:
   [mFuel,mPressurant] = PropellantMass( V, R, T, rhoF, pMax, pMin );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   V        	Tank volume (m^3)
   R          Gas constant of pressurant (J/kg/K) 
   T       	Temperature (K)
   rhoFuel		Density of fuel (kg/m^3)
   pMax    	Maximum pressure (N/m^2)
   pMin       Minimum pressure (N/m^2)

   -------
   Outputs
   -------
   mFuel         Mass of the propellant (kg)
   mPressurant   Mass of the pressurant (kg)

--------------------------------------------------------------------------

Back to the SC Module page