THRUSTER_HANDLE VESSEL::CreateThruster ( const VECTOR3 & pos,
const VECTOR3 & dir,
double maxth0,
PROPELLANT_HANDLE hp = NULL,
double isp0 = 0.0,
double isp_ref = 0.0,
double p_ref = 101.4e3
) const
Add a logical thruster definition for the vessel.
Parameters:
pos thrust force attack point in vessel coordinates [m]
dir thrust force direction in vessel coordinates (normalised)
maxth0 max. vacuum thrust rating [N]
hp propellant resource feeding the thruster
isp0 vacuum fuel-specific impulse (Isp) [m/s]
isp_ref Isp value at reference pressure p_ref [m/s]
p_ref reference pressure for Isp_ref [Pa]
Returns:
Thruster identifier
Note:
The fuel-specific impulse defines how much thrust is produced by burning 1kg of fuel per second. If the Isp level is not specified or is = 0, a default value is used (see SetISP()).
To define the thrust and Isp ratings to be pressure-dependent, specify an isp_ref value > 0, and set p_ref to the corresponding atmospheric pressure. Thrust and Isp at pressure p will then be calculated as
[math]
{Isp}(p) = \mathrm{Isp}_0(1-p\eta), [/math]
[math]{Th}(p) = {Th}_0(1-p\eta), [/math] [math]{where}\qquad \eta = \frac{{Isp}_0 - {Isp}_{ref}}{p_{ref} {Isp}_0} [/math]
If isp_ref = 0 then no pressure-dependency is assumed [math](\eta=0). [/math]