Merge pull request #2339 from superspacehog/twr-plotting
Add thrust-to-weight option to plot menu
This commit is contained in:
commit
b4d4062121
@ -2031,6 +2031,7 @@ FlightDataType.TYPE_STABILITY = Stability margin calibers
|
||||
FlightDataType.TYPE_MACH_NUMBER = Mach number
|
||||
FlightDataType.TYPE_REYNOLDS_NUMBER = Reynolds number
|
||||
FlightDataType.TYPE_THRUST_FORCE = Thrust
|
||||
FlightDataType.TYPE_THRUST_WEIGHT_RATIO = Thrust-to-weight ratio
|
||||
FlightDataType.TYPE_DRAG_FORCE = Drag force
|
||||
FlightDataType.TYPE_DRAG_COEFF = Drag coefficient
|
||||
FlightDataType.TYPE_AXIAL_DRAG_COEFF = Axial drag coefficient
|
||||
|
@ -115,12 +115,14 @@ public class FlightDataType implements Comparable<FlightDataType> {
|
||||
//// Thrust and drag
|
||||
//// Thrust
|
||||
public static final FlightDataType TYPE_THRUST_FORCE = newType(trans.get("FlightDataType.TYPE_THRUST_FORCE"), "Ft", UnitGroup.UNITS_FORCE, 70);
|
||||
//// Thrust-to-weight ratio
|
||||
public static final FlightDataType TYPE_THRUST_WEIGHT_RATIO = newType(trans.get("FlightDataType.TYPE_THRUST_WEIGHT_RATIO"), "Twr", UnitGroup.UNITS_COEFFICIENT, 71);
|
||||
//// Drag force
|
||||
public static final FlightDataType TYPE_DRAG_FORCE = newType(trans.get("FlightDataType.TYPE_DRAG_FORCE"), "Fd", UnitGroup.UNITS_FORCE, 71);
|
||||
public static final FlightDataType TYPE_DRAG_FORCE = newType(trans.get("FlightDataType.TYPE_DRAG_FORCE"), "Fd", UnitGroup.UNITS_FORCE, 72);
|
||||
//// Drag coefficient
|
||||
public static final FlightDataType TYPE_DRAG_COEFF = newType(trans.get("FlightDataType.TYPE_DRAG_COEFF"), "Cd", UnitGroup.UNITS_COEFFICIENT, 72);
|
||||
public static final FlightDataType TYPE_DRAG_COEFF = newType(trans.get("FlightDataType.TYPE_DRAG_COEFF"), "Cd", UnitGroup.UNITS_COEFFICIENT, 73);
|
||||
//// Axial drag coefficient
|
||||
public static final FlightDataType TYPE_AXIAL_DRAG_COEFF = newType(trans.get("FlightDataType.TYPE_AXIAL_DRAG_COEFF"), "Cda", UnitGroup.UNITS_COEFFICIENT, 73);
|
||||
public static final FlightDataType TYPE_AXIAL_DRAG_COEFF = newType(trans.get("FlightDataType.TYPE_AXIAL_DRAG_COEFF"), "Cda", UnitGroup.UNITS_COEFFICIENT, 74);
|
||||
|
||||
|
||||
//// Component drag coefficients
|
||||
@ -218,6 +220,7 @@ public class FlightDataType implements Comparable<FlightDataType> {
|
||||
TYPE_MACH_NUMBER,
|
||||
TYPE_REYNOLDS_NUMBER,
|
||||
TYPE_THRUST_FORCE,
|
||||
TYPE_THRUST_WEIGHT_RATIO,
|
||||
TYPE_DRAG_FORCE,
|
||||
TYPE_DRAG_COEFF,
|
||||
TYPE_AXIAL_DRAG_COEFF,
|
||||
|
@ -623,6 +623,8 @@ public class RK4SimulationStepper extends AbstractSimulationStepper {
|
||||
}
|
||||
|
||||
data.setValue(FlightDataType.TYPE_THRUST_FORCE, store.thrustForce);
|
||||
double weight = store.rocketMass.getMass() * store.gravity;
|
||||
data.setValue(FlightDataType.TYPE_THRUST_WEIGHT_RATIO, store.thrustForce / weight);
|
||||
data.setValue(FlightDataType.TYPE_DRAG_FORCE, store.dragForce);
|
||||
data.setValue(FlightDataType.TYPE_GRAVITY, store.gravity);
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user