import org.jscience.physics.amount.Amount;
import com.billkuker.rocketry.motorsim.Burn;
-import com.billkuker.rocketry.motorsim.CylindricalChamber;
import com.billkuker.rocketry.motorsim.GraphSimplifier;
+import com.billkuker.rocketry.motorsim.ICylindricalChamber;
public class ENGExporter {
public static void export(Burn b, OutputStream os) throws IOException {
- CylindricalChamber cha = (CylindricalChamber) b.getMotor().getChamber();
+ ICylindricalChamber cha = (ICylindricalChamber) b.getMotor().getChamber();
- NumberFormat nf = new DecimalFormat("00.###");
+ NumberFormat nf = new DecimalFormat("0.####");
StringBuffer out = new StringBuffer();
double wt = prop.doubleValue(SI.KILOGRAM);
out.append(nf.format(dia) + " " + nf.format(len) + " 0-0-0 "
- + nf.format(wt) + " " + nf.format(wt) + " MF\n");
+ + nf.format(wt) + " " + nf.format(wt + 0.1) + " MF\n");
GraphSimplifier<Duration, Force> gs = null;
try {