- Rocket total mass is split into 'dryMass' and 'propellantMass' -- each mass type has a corresponding calculation method in MassCalculator - Calculating Inertias and Center-of-Mass FOR MOTORS assume: - time-invariant x-coordinate - time-decreasing density - mass correctly tracks propellant usage, as measured by thrustCurves - elimated MassCalcType enum: was not actually solving a problem. - simply use motorTime: 0 for launch Double.MAX_VALUE for burnout - NO_MOTORS is represented by a configuration without attached motors -- try: "rocket.setSelectedConfiguration( rocket.getEmptyConfiguration())" - 'dry mass' vs 'total mass': 90% of the time, a caller wanted 'total mass' - total_mass = dry_mass + propellant_mass - mass @ simulation time wasn't represented by the enum, had existing overloads anyway - get vs calculate methods: -- gets revalidate the cache, then retreive specific information -- calculate simple calculate the desired information, and ignore the cache. --- I'm particularly confident about cache reliability: particularly as it doesn't account for changing time during simulation. - reduced / simplified debugging messages
OpenRocket - an Open Source model rocket simulator -------------------------------------------------- Copyright (C) 2007-2013 Sampo Niskanen and others For license information see the file LICENSE.TXT. For more information see http://openrocket.sourceforge.net/ To start the software run the class net.sf.openrocket.startup.Startup or from the JAR file run $ java -jar OpenRocket-<VERSION>.jar Contributions have been made by: -------------------------------- Sampo Niskanen, main developer Doug Pedrick, support for RockSim designs, printing Kevin Ruland, Android version Bill Kuker, 3D visualization Richard Graham, geodetic computations Jason Blood, freeform fin set import Boris du Reau, internationalization Translations contributed by: Tripoli France Tripoli Spain Stefan Lobas / ERIG Mauro Biasutti Sky Dart Team Vladimir Beran Polish Rocketry Society / Łukasz & Alex Kazanski