Class ForcedInduction
Simulates forced induction systems (turbocharger or supercharger) for piston engines. Models turbine RPM inertia, exhaust-driven vs belt-driven boost, wastegate and blow-off valve.
Namespace: NWH.Aerodynamics.AircraftController.Propulsion.Engines
Assembly: NWH.Aerodynamics.dll
Syntax
[Serializable]
[RequireComponent(typeof(PistonEngine))]
public class ForcedInduction : MonoBehaviour
Fields
| Edit this page View SourceboostThresholdRPM
The RPM % at which the turbo begins making positive pressure.
Declaration
[Range(0, 1)]
[Tooltip("Engine RPM % threshold where turbo becomes effective.")]
public float boostThresholdRPM
Field Value
| Type | Description |
|---|---|
| float |
currentBoostPSI
Current boost pressure in PSI (Pounds per Square Inch). Informational only.
Declaration
[Tooltip("Current boost pressure in PSI.")]
public float currentBoostPSI
Field Value
| Type | Description |
|---|---|
| float |
efficiency
Efficiency of the intercooler and compressor. 1.0 = Perfect conversion of pressure to density (unrealistic). 0.7 = Typical for standard intercooled systems.
Declaration
[Range(0.5, 1)]
[Tooltip("Efficiency of the system. Affects how much Boost PSI translates to actual Power.")]
public float efficiency
Field Value
| Type | Description |
|---|---|
| float |
forcedInductionType
Declaration
public ForcedInduction.ForcedInductionType forcedInductionType
Field Value
| Type | Description |
|---|---|
| ForcedInduction.ForcedInductionType |
hasBlowOffValve
Simulates a Blow-Off Valve (BOV). If true, boost drops rapidly when throttle is released.
Declaration
public bool hasBlowOffValve
Field Value
| Type | Description |
|---|---|
| bool |
maxBoostPSI
The maximum boost pressure the system is configured to produce (PSI). Typical street cars: 6-12 PSI. Performance: 15-25 PSI.
Declaration
[Tooltip("Maximum boost pressure in PSI at peak efficiency.")]
public float maxBoostPSI
Field Value
| Type | Description |
|---|---|
| float |
normalizedBoost
Normalized boost value (0 to 1) relative to maxBoostPSI. Useful for UI gauges.
Declaration
[Tooltip("Normalized boost value (0 to 1). Used for UI.")]
[Range(0, 1)]
public float normalizedBoost
Field Value
| Type | Description |
|---|---|
| float |
parasiticLoss
Parasitic loss at max RPM (percent of power lost to drive the belt).
Declaration
[Range(0, 0.2)]
public float parasiticLoss
Field Value
| Type | Description |
|---|---|
| float |
spoolInertia
How fast the turbo RPM can change. Lower values = Heavy turbine (Laggy). Higher values = Ceramic/Ball-bearing (Responsive).
Declaration
[Range(0.1, 5)]
[Tooltip("Inertia factor. Lower = More Lag. Higher = Faster Spool.")]
public float spoolInertia
Field Value
| Type | Description |
|---|---|
| float |
Properties
| Edit this page View SourcePowerCoefficient
Gets the current power multiplication coefficient applied to the engine.
Declaration
public float PowerCoefficient { get; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
| Edit this page View SourceUpdate()
Declaration
public void Update()