private static double densityRatio = 0.96;\r
\r
public class Interval{\r
- Amount<Duration> time;\r
+ public Amount<Duration> time;\r
+ public Amount<Duration> dt;\r
public Amount<Length> regression;\r
public Amount<Pressure> chamberPressure;\r
Amount<Mass> chamberProduct;\r
- Amount<Force> thrust;\r
+ public Amount<Force> thrust;\r
\r
public String toString(){\r
- return time + " " + regression + " " + chamberPressure + " " + chamberProduct;\r
+ return time + " " + dt + " " + regression + " " + chamberPressure + " " + chamberProduct;\r
}\r
}\r
\r
\r
Interval initial = new Interval();\r
initial.time = Amount.valueOf(0, SI.SECOND);\r
+ initial.dt = Amount.valueOf(0, SI.SECOND);\r
initial.regression = Amount.valueOf(0, SI.MILLIMETER);\r
initial.chamberPressure = atmosphereicPressure;\r
initial.chamberProduct = Amount.valueOf(0, SI.KILOGRAM);\r
log.debug("Burn Rate: " + burnRate);\r
\r
Amount<Duration> dt = regStep.divide(burnRate).to(Duration.UNIT);\r
+ next.dt = dt;\r
\r
data.put(data.lastKey().plus(dt), next);\r
\r
break;\r
}\r
}\r
- \r
+\r
}\r
\r
@SuppressWarnings("unchecked")\r