Sets the current thrust(N) and mass flow rate (kg/sec). Computes the isp using the rocket equation. Returns false on an error.
[Visual Basic .NET] |
---|
Public Function SetThrustAndMassFlowRate( _ ByVal Thrust As Double, _ ByVal MassFlowRate As Double _ ) As Boolean |
[C#] |
---|
public bool SetThrustAndMassFlowRate( double Thrust, double MassFlowRate ); |
[Managed C++] |
---|
public: bool SetThrustAndMassFlowRate( double Thrust, double MassFlowRate ); |
[Unmanaged C++] |
---|
public: HRESULT SetThrustAndMassFlowRate( double Thrust, double MassFlowRate, VARIANT_BOOL * pReturn ); |
[Java] |
---|
public bool setThrustAndMassFlowRate( double Thrust, double MassFlowRate ); |
- Thrust
- Must be positive.
- MassFlowRate
- Mass loss rate. May be entered as positive or negative number, but is always considered a mass loss, not a mass gain.
Returns false if thrust is not positive.
Computes Isp from the rocket equation