From 2168a3419aa0f78000ea86496c69f502fc05114a Mon Sep 17 00:00:00 2001 From: Induction-2024 <163626634+IPSITA-Nanda@users.noreply.github.com> Date: Tue, 9 Dec 2025 18:09:48 +0530 Subject: [PATCH 1/5] ENH: Add JSON export support for monte carlo result --- monte_carlo_test.errors.txt | 0 monte_carlo_test.inputs.txt | 3 ++ monte_carlo_test.outputs.txt | 3 ++ rocketpy/simulation/monte_carlo.py | 76 ++++++++++++++++++++++++++++++ temp_test_output.json | 18 +++++++ tests/test_monte_carlo_export.py | 28 +++++++++++ 6 files changed, 128 insertions(+) create mode 100644 monte_carlo_test.errors.txt create mode 100644 monte_carlo_test.inputs.txt create mode 100644 monte_carlo_test.outputs.txt create mode 100644 temp_test_output.json create mode 100644 tests/test_monte_carlo_export.py diff --git a/monte_carlo_test.errors.txt b/monte_carlo_test.errors.txt new file mode 100644 index 000000000..e69de29bb diff --git a/monte_carlo_test.inputs.txt b/monte_carlo_test.inputs.txt new file mode 100644 index 000000000..bca421870 --- /dev/null +++ b/monte_carlo_test.inputs.txt @@ -0,0 +1,3 @@ +{"elevation": 1390.2599410356427, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544522154}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 1.0397431982291208, "wind_velocity_y_factor": 0.9968162304437204, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 10.093934116034884, "trigger": {}, "sampling_rate": 105, "lag": 1.4942409920420958, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 1.0793660289582476, "trigger": {}, "sampling_rate": 105, "lag": 1.4430970143738449, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.06348398976888975, "mass": 15.679576716789102, "I_11_without_motor": 6.321, "I_22_without_motor": 6.309706190047748, "I_33_without_motor": 0.025844764663655123, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584769}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584742}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": "data/motors/cesaroni/Cesaroni_M1670.eng", "total_impulse": 4595.298511369435, "burn_start_time": 0, "burn_out_time": 4.00355897597094, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.033367377047249624, "grain_number": 5, "grain_density": 1793.420226189729, "grain_outer_radius": 0.032775193866275025, "grain_initial_inner_radius": 0.01466793699793682, "grain_initial_height": 0.12026848714382408, "grain_separation": 0.0074980694616107475, "grains_center_of_mass_position": 0.3955552572308493, "center_of_dry_mass_position": 0.317, "nozzle_position": 0.0006609978629943691, "throat_radius": 0.011278253847568944, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.3738614140891212}], "aerodynamic_surfaces": [{"length": 0.5574228243936685, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.1328963439668738]}, {"n": 4, "root_chord": 0.12000663722455403, "tip_chord": 0.0394038450395361, "span": 0.100301128308239, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.1690553538375341]}, {"top_radius": 0.06362964379261782, "bottom_radius": 0.0436216154866493, "length": 0.05997586293096843, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.6999031655460817, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6162972476658776, "upper_button_position": 0.0836059178802041}], "rail_length": 5.2, "inclination": 83.48136530401035, "heading": 50.79865353608065, "index": 1} +{"elevation": 1408.215047558823, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544522154}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 1.0085030922625944, "wind_velocity_y_factor": 1.0364147369197312, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 10.05872332372717, "trigger": {}, "sampling_rate": 105, "lag": 1.3865249148865395, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 1.0275141088331403, "trigger": {}, "sampling_rate": 105, "lag": 1.4994230804026285, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.06350290645461092, "mass": 14.994699544556994, "I_11_without_motor": 6.321, "I_22_without_motor": 6.3218936906194685, "I_33_without_motor": 0.03528635364725435, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584769}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584742}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": "data/motors/cesaroni/Cesaroni_M1670.eng", "total_impulse": 6171.328950077004, "burn_start_time": 0, "burn_out_time": 4.083782079735693, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.033425066357639886, "grain_number": 5, "grain_density": 1762.9295685338082, "grain_outer_radius": 0.032749587991848135, "grain_initial_inner_radius": 0.01469802031109744, "grain_initial_height": 0.1204351911547063, "grain_separation": 0.004197857590374345, "grains_center_of_mass_position": 0.39701145218798023, "center_of_dry_mass_position": 0.317, "nozzle_position": 0.00018332526038573673, "throat_radius": 0.010372221850128682, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.372651795555059}], "aerodynamic_surfaces": [{"length": 0.5583018497607063, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.134213719152032]}, {"n": 4, "root_chord": 0.11933059209704815, "tip_chord": 0.040619242059525766, "span": 0.10116520284162056, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.1675041890825644]}, {"top_radius": 0.062088153780657025, "bottom_radius": 0.0439461124384404, "length": 0.06038528280154298, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.6993260983386592, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6176613127938667, "upper_button_position": 0.0816647855447925}], "rail_length": 5.2, "inclination": 85.45702003143398, "heading": 55.633921197964135, "index": 2} +{"elevation": 1394.8443580622281, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544522154}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 0.9520538929358022, "wind_velocity_y_factor": 1.0208443763766462, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 10.013959142432123, "trigger": {}, "sampling_rate": 105, "lag": 1.4579318117390998, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 1.0550931143472104, "trigger": {}, "sampling_rate": 105, "lag": 1.425987568916866, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.06349940495795064, "mass": 16.152240172503152, "I_11_without_motor": 6.321, "I_22_without_motor": 6.312900877751969, "I_33_without_motor": 0.044756463810704014, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584769}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584742}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": [[0, 6000], [1, 6000], [2, 6000], [3, 6000], [4, 6000]], "total_impulse": 7023.3186470526425, "burn_start_time": 0, "burn_out_time": 4.073449771336382, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.03332500209749313, "grain_number": 5, "grain_density": 1816.3964412942303, "grain_outer_radius": 0.033333306349827285, "grain_initial_inner_radius": 0.015259270760962423, "grain_initial_height": 0.11957014565635292, "grain_separation": 0.004050074020847706, "grains_center_of_mass_position": 0.39818759569965445, "center_of_dry_mass_position": 0.317, "nozzle_position": 0.0010630149071795805, "throat_radius": 0.010177803646097962, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.3740123213357498}], "aerodynamic_surfaces": [{"length": 0.5586074426284319, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.1329987342874235]}, {"n": 4, "root_chord": 0.12042579898854754, "tip_chord": 0.03938469107068196, "span": 0.10100347954073176, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.1647454176806225]}, {"top_radius": 0.06116754806126728, "bottom_radius": 0.041635960094866364, "length": 0.059244864848945034, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.7006782927666968, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6186726915699007, "upper_button_position": 0.08200560119679612}], "rail_length": 5.2, "inclination": 85.10435067711394, "heading": 51.38535192007027, "index": 3} diff --git a/monte_carlo_test.outputs.txt b/monte_carlo_test.outputs.txt new file mode 100644 index 000000000..1cc53ac5a --- /dev/null +++ b/monte_carlo_test.outputs.txt @@ -0,0 +1,3 @@ +{"out_of_rail_time": 0.4317485923385982, "apogee_time": 21.077604875724546, "y_impact": 377.6332617725649, "out_of_rail_velocity": 21.136325299603076, "initial_stability_margin": 2.2708977011958944, "apogee_x": 389.2901482186624, "x_impact": 460.1528063415895, "out_of_rail_stability_margin": 2.3678815246550737, "apogee": 3375.800614964669, "lateral_surface_wind": 0.0, "max_mach_number": 0.5957524179738761, "frontal_surface_wind": 0.0, "t_final": 222.5324543640149, "impact_velocity": -5.633834643393245, "apogee_y": 319.69027567699413, "index": 1} +{"out_of_rail_time": 0.37438713183551614, "apogee_time": 25.928888051598012, "y_impact": 541.5365565755143, "out_of_rail_velocity": 25.140080029802938, "initial_stability_margin": 2.386109581779358, "apogee_x": 689.3936151573209, "x_impact": 786.8687723188339, "out_of_rail_stability_margin": 2.467904603570153, "apogee": 4691.814051778251, "lateral_surface_wind": 0.0, "max_mach_number": 0.8515271214758438, "frontal_surface_wind": 0.0, "t_final": 295.1001478529319, "impact_velocity": -5.536994685151316, "apogee_y": 474.8512418891495, "index": 2} +{"out_of_rail_time": 0.3206136320356596, "apogee_time": 27.661287457326196, "y_impact": 430.74875183507294, "out_of_rail_velocity": 23.38038793209511, "initial_stability_margin": 2.3885733776462277, "apogee_x": 465.28266375011316, "x_impact": 532.0790850036708, "out_of_rail_stability_margin": 2.4598107378387306, "apogee": 5069.675566732136, "lateral_surface_wind": 0.0, "max_mach_number": 0.9152283462666928, "frontal_surface_wind": 0.0, "t_final": 307.9031185047359, "impact_velocity": -5.733499813375344, "apogee_y": 377.1145697596162, "index": 3} diff --git a/rocketpy/simulation/monte_carlo.py b/rocketpy/simulation/monte_carlo.py index e10789a7d..5e13f1b92 100644 --- a/rocketpy/simulation/monte_carlo.py +++ b/rocketpy/simulation/monte_carlo.py @@ -1150,6 +1150,82 @@ def export_ellipses_to_kml( # pylint: disable=too-many-statements kml.save(filename) + def export_json( + self, + filename, + indent_size = 4 + ): + """ + Export Monte Carlo results into a JSON file. + + The exported data reflects exactly what is stored inside ``self.results``. + Depending on how the MonteCarlo object was populated, values may be either + lists (when results come from running Monte Carlo simulations) or scalars + (when results are imported from previously saved output summaries). + + Parameters + ---------- + filename : str + Path to the JSON file that will be created. If the file already exists, + it will be overwritten. + indent_size : int, optional + Number of spaces used for indentation in the generated JSON file. + Defaults to 4. + + Notes + ----- + This function only exports the data already contained inside + ``self.results``. No computations are performed during export. Users + should call ``simulate()`` or ``import_results()`` before exporting. + + Examples + -------- + Run new Monte Carlo simulations and export results:: + + mc = MonteCarlo(environment=env, rocket=rocket, flight=flight) + mc.simulate(20) + mc.export_json("results.json") + + Export results previously loaded from file:: + + mc = MonteCarlo(environment=env, rocket=rocket, flight=flight) + mc.import_results("sample.outputs.txt") + mc.export_json("summary.json") + """ + if filename is None: + return ValueError("A valid filename to be provided !!") + + if not filename.lower().endswith(".json"): + return ValueError("filename should end with .json") + + if not self.results or len(self.results) == 0: + raise RuntimeError("Monte Carlo test simulations to be performed ") + + export_dictionary = {} + + for key in self.results: + value_list = self.results[key] + + converted_values = [] + + for value in value_list: + if isinstance(value, np.generic) == True: + converted_values.append(value.float()) + + else: + converted_values = value + + export_dictionary[key] = converted_values + + try: + with open(filename, "w", encoding = "utf-8") as file: + json.dump(export_dictionary, file, indent = indent_size) + + except (TypeError, OSError) as e: + print(f"Error writing JSON: {e}") + + return + def info(self): """ Print information about the Monte Carlo simulation. diff --git a/temp_test_output.json b/temp_test_output.json new file mode 100644 index 000000000..7350b6985 --- /dev/null +++ b/temp_test_output.json @@ -0,0 +1,18 @@ +{ + "out_of_rail_time": 0.3206136320356596, + "apogee_time": 27.661287457326196, + "y_impact": 430.74875183507294, + "out_of_rail_velocity": 23.38038793209511, + "initial_stability_margin": 2.3885733776462277, + "apogee_x": 465.28266375011316, + "x_impact": 532.0790850036708, + "out_of_rail_stability_margin": 2.4598107378387306, + "apogee": 5069.675566732136, + "lateral_surface_wind": 0.0, + "max_mach_number": 0.9152283462666928, + "frontal_surface_wind": 0.0, + "t_final": 307.9031185047359, + "impact_velocity": -5.733499813375344, + "apogee_y": 377.1145697596162, + "index": 3 +} \ No newline at end of file diff --git a/tests/test_monte_carlo_export.py b/tests/test_monte_carlo_export.py new file mode 100644 index 000000000..97861112a --- /dev/null +++ b/tests/test_monte_carlo_export.py @@ -0,0 +1,28 @@ +import os +import json + +def test_json_export(monte_carlo_calisto): + mc = monte_carlo_calisto + mc.simulate(3) + + filename = "temp_test_output.json" + mc.export_json(filename) + + assert os.path.exists(filename) + + with open(filename, "r") as f: + data = json.load(f) + + # Assert dictionary keys exist + assert len(data.keys()) > 0 + + # Check that at least one key corresponds to a list of simulation results + list_keys = [k for k, v in data.items() if isinstance(v, list)] + + # There must be at least 1 Monte Carlo-dependent field + assert len(list_keys) > 0 + + first_list_key = list_keys[0] + assert len(data[first_list_key]) == 3 + + os.remove(filename) From 2589fca6240c19ec6bffcf9d398b1056f6cb86a1 Mon Sep 17 00:00:00 2001 From: Induction-2024 <163626634+IPSITA-Nanda@users.noreply.github.com> Date: Tue, 9 Dec 2025 23:02:20 +0530 Subject: [PATCH 2/5] Fix lint: removed equality comparison to True --- monte_carlo_test.inputs.txt | 6 +++--- monte_carlo_test.outputs.txt | 6 +++--- rocketpy/simulation/monte_carlo.py | 2 +- temp_test_output.json | 26 +++++++++++++------------- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/monte_carlo_test.inputs.txt b/monte_carlo_test.inputs.txt index bca421870..071fccacb 100644 --- a/monte_carlo_test.inputs.txt +++ b/monte_carlo_test.inputs.txt @@ -1,3 +1,3 @@ -{"elevation": 1390.2599410356427, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544522154}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 1.0397431982291208, "wind_velocity_y_factor": 0.9968162304437204, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 10.093934116034884, "trigger": {}, "sampling_rate": 105, "lag": 1.4942409920420958, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 1.0793660289582476, "trigger": {}, "sampling_rate": 105, "lag": 1.4430970143738449, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.06348398976888975, "mass": 15.679576716789102, "I_11_without_motor": 6.321, "I_22_without_motor": 6.309706190047748, "I_33_without_motor": 0.025844764663655123, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584769}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584742}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": "data/motors/cesaroni/Cesaroni_M1670.eng", "total_impulse": 4595.298511369435, "burn_start_time": 0, "burn_out_time": 4.00355897597094, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.033367377047249624, "grain_number": 5, "grain_density": 1793.420226189729, "grain_outer_radius": 0.032775193866275025, "grain_initial_inner_radius": 0.01466793699793682, "grain_initial_height": 0.12026848714382408, "grain_separation": 0.0074980694616107475, "grains_center_of_mass_position": 0.3955552572308493, "center_of_dry_mass_position": 0.317, "nozzle_position": 0.0006609978629943691, "throat_radius": 0.011278253847568944, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.3738614140891212}], "aerodynamic_surfaces": [{"length": 0.5574228243936685, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.1328963439668738]}, {"n": 4, "root_chord": 0.12000663722455403, "tip_chord": 0.0394038450395361, "span": 0.100301128308239, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.1690553538375341]}, {"top_radius": 0.06362964379261782, "bottom_radius": 0.0436216154866493, "length": 0.05997586293096843, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.6999031655460817, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6162972476658776, "upper_button_position": 0.0836059178802041}], "rail_length": 5.2, "inclination": 83.48136530401035, "heading": 50.79865353608065, "index": 1} -{"elevation": 1408.215047558823, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544522154}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 1.0085030922625944, "wind_velocity_y_factor": 1.0364147369197312, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 10.05872332372717, "trigger": {}, "sampling_rate": 105, "lag": 1.3865249148865395, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 1.0275141088331403, "trigger": {}, "sampling_rate": 105, "lag": 1.4994230804026285, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.06350290645461092, "mass": 14.994699544556994, "I_11_without_motor": 6.321, "I_22_without_motor": 6.3218936906194685, "I_33_without_motor": 0.03528635364725435, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584769}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584742}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": "data/motors/cesaroni/Cesaroni_M1670.eng", "total_impulse": 6171.328950077004, "burn_start_time": 0, "burn_out_time": 4.083782079735693, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.033425066357639886, "grain_number": 5, "grain_density": 1762.9295685338082, "grain_outer_radius": 0.032749587991848135, "grain_initial_inner_radius": 0.01469802031109744, "grain_initial_height": 0.1204351911547063, "grain_separation": 0.004197857590374345, "grains_center_of_mass_position": 0.39701145218798023, "center_of_dry_mass_position": 0.317, "nozzle_position": 0.00018332526038573673, "throat_radius": 0.010372221850128682, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.372651795555059}], "aerodynamic_surfaces": [{"length": 0.5583018497607063, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.134213719152032]}, {"n": 4, "root_chord": 0.11933059209704815, "tip_chord": 0.040619242059525766, "span": 0.10116520284162056, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.1675041890825644]}, {"top_radius": 0.062088153780657025, "bottom_radius": 0.0439461124384404, "length": 0.06038528280154298, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.6993260983386592, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6176613127938667, "upper_button_position": 0.0816647855447925}], "rail_length": 5.2, "inclination": 85.45702003143398, "heading": 55.633921197964135, "index": 2} -{"elevation": 1394.8443580622281, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544522154}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 0.9520538929358022, "wind_velocity_y_factor": 1.0208443763766462, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 10.013959142432123, "trigger": {}, "sampling_rate": 105, "lag": 1.4579318117390998, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 1.0550931143472104, "trigger": {}, "sampling_rate": 105, "lag": 1.425987568916866, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.06349940495795064, "mass": 16.152240172503152, "I_11_without_motor": 6.321, "I_22_without_motor": 6.312900877751969, "I_33_without_motor": 0.044756463810704014, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584769}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 134544584742}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": [[0, 6000], [1, 6000], [2, 6000], [3, 6000], [4, 6000]], "total_impulse": 7023.3186470526425, "burn_start_time": 0, "burn_out_time": 4.073449771336382, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.03332500209749313, "grain_number": 5, "grain_density": 1816.3964412942303, "grain_outer_radius": 0.033333306349827285, "grain_initial_inner_radius": 0.015259270760962423, "grain_initial_height": 0.11957014565635292, "grain_separation": 0.004050074020847706, "grains_center_of_mass_position": 0.39818759569965445, "center_of_dry_mass_position": 0.317, "nozzle_position": 0.0010630149071795805, "throat_radius": 0.010177803646097962, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.3740123213357498}], "aerodynamic_surfaces": [{"length": 0.5586074426284319, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.1329987342874235]}, {"n": 4, "root_chord": 0.12042579898854754, "tip_chord": 0.03938469107068196, "span": 0.10100347954073176, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.1647454176806225]}, {"top_radius": 0.06116754806126728, "bottom_radius": 0.041635960094866364, "length": 0.059244864848945034, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.7006782927666968, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6186726915699007, "upper_button_position": 0.08200560119679612}], "rail_length": 5.2, "inclination": 85.10435067711394, "heading": 51.38535192007027, "index": 3} +{"elevation": 1405.2333034553437, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97389890979}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 0.996153470732183, "wind_velocity_y_factor": 0.9843099091158273, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 9.88514613719607, "trigger": {}, "sampling_rate": 105, "lag": 1.384515988983946, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 0.9713540953330672, "trigger": {}, "sampling_rate": 105, "lag": 1.4633143183666615, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.0634987499451071, "mass": 15.072095837108305, "I_11_without_motor": 6.321, "I_22_without_motor": 6.335506134662188, "I_33_without_motor": 0.04145581960969349, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396038712}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396039633}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": [[0, 6000], [1, 6000], [2, 6000], [3, 6000], [4, 6000]], "total_impulse": 5385.812758000186, "burn_start_time": 0, "burn_out_time": 3.9114375467662366, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.03266791185145551, "grain_number": 5, "grain_density": 1756.126715220755, "grain_outer_radius": 0.03300181343242285, "grain_initial_inner_radius": 0.014671288575881717, "grain_initial_height": 0.11971670172991274, "grain_separation": 0.005152504179236257, "grains_center_of_mass_position": 0.3954382548339674, "center_of_dry_mass_position": 0.317, "nozzle_position": -0.00016581769284513715, "throat_radius": 0.0112910109820258, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.3736571101185506}], "aerodynamic_surfaces": [{"length": 0.5578302102385078, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.132906277977581]}, {"n": 4, "root_chord": 0.12048278166765124, "tip_chord": 0.03987953632537998, "span": 0.10004828831202084, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.1686718767796187]}, {"top_radius": 0.06349186155167603, "bottom_radius": 0.04384195346847791, "length": 0.05941129032558995, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.7004013683915161, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6190611734380873, "upper_button_position": 0.08134019495342881}], "rail_length": 5.2, "inclination": 84.44695307909555, "heading": 50.833750907540285, "index": 1} +{"elevation": 1371.6714131910126, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97389890979}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 1.0424528320229767, "wind_velocity_y_factor": 1.0087294028602474, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 10.03685094165895, "trigger": {}, "sampling_rate": 105, "lag": 1.486228635509414, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 0.9757324698182986, "trigger": {}, "sampling_rate": 105, "lag": 1.3972850563541446, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.06350406616217043, "mass": 15.642608686580136, "I_11_without_motor": 6.321, "I_22_without_motor": 6.312103416301233, "I_33_without_motor": 0.02102176681083532, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396038712}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396039633}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": [[0, 6000], [1, 6000], [2, 6000], [3, 6000], [4, 6000]], "total_impulse": 6725.384366098611, "burn_start_time": 0, "burn_out_time": 4.106678095660262, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.033126140037711554, "grain_number": 5, "grain_density": 1820.1672376739655, "grain_outer_radius": 0.03267007334858819, "grain_initial_inner_radius": 0.014357795902449321, "grain_initial_height": 0.12034050263324358, "grain_separation": 0.004933437395364341, "grains_center_of_mass_position": 0.3969186297774232, "center_of_dry_mass_position": 0.317, "nozzle_position": -0.0012910462891845863, "throat_radius": 0.01081040338251928, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.371964077147407}], "aerodynamic_surfaces": [{"length": 0.5586289770405056, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.1329214328813857]}, {"n": 4, "root_chord": 0.12026152752398361, "tip_chord": 0.039845353384308536, "span": 0.1001476615605449, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.168430519355786]}, {"top_radius": 0.06308686485654086, "bottom_radius": 0.043811032671258965, "length": 0.05988256216607636, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.7004855387199967, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6168644021022753, "upper_button_position": 0.08362113661772141}], "rail_length": 5.2, "inclination": 84.97503104881706, "heading": 48.84759655800046, "index": 2} +{"elevation": 1393.9536793474836, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97389890979}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 0.9496577074113901, "wind_velocity_y_factor": 1.0011752837216652, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 9.897325232094047, "trigger": {}, "sampling_rate": 105, "lag": 1.369657786776508, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 1.154728493703313, "trigger": {}, "sampling_rate": 105, "lag": 1.2202899422917959, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.06349920976376813, "mass": 14.938544966975948, "I_11_without_motor": 6.321, "I_22_without_motor": 6.301387623805356, "I_33_without_motor": 0.024365258215535958, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396038712}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396039633}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": {"source": [[0.0, 6000.0], [1.0, 6000.0], [2.0, 6000.0], [3.0, 6000.0], [4.0, 6000.0]], "title": "Scalar x Scalar", "inputs": ["Scalar"], "outputs": ["Scalar"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97403130047}}, "total_impulse": 4530.662949807967, "burn_start_time": 0, "burn_out_time": 4.008232507703498, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.03379120556072005, "grain_number": 5, "grain_density": 1790.8471976870057, "grain_outer_radius": 0.03366997846929385, "grain_initial_inner_radius": 0.014996109115355857, "grain_initial_height": 0.1210491767262571, "grain_separation": 0.006415369189899417, "grains_center_of_mass_position": 0.3966533339942215, "center_of_dry_mass_position": 0.317, "nozzle_position": 0.0009645640141832749, "throat_radius": 0.010333284456483573, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.3721435499412973}], "aerodynamic_surfaces": [{"length": 0.5594663258663276, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.1345177263191837]}, {"n": 4, "root_chord": 0.12008300492878543, "tip_chord": 0.039572725705254296, "span": 0.10056330918971902, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.1676072745749622]}, {"top_radius": 0.0644145405140836, "bottom_radius": 0.042972926256001354, "length": 0.06134398140578226, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.7014980298530517, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6173183969075458, "upper_button_position": 0.0841796329455059}], "rail_length": 5.2, "inclination": 84.31138944155353, "heading": 55.02098307205797, "index": 3} diff --git a/monte_carlo_test.outputs.txt b/monte_carlo_test.outputs.txt index 1cc53ac5a..d88dca600 100644 --- a/monte_carlo_test.outputs.txt +++ b/monte_carlo_test.outputs.txt @@ -1,3 +1,3 @@ -{"out_of_rail_time": 0.4317485923385982, "apogee_time": 21.077604875724546, "y_impact": 377.6332617725649, "out_of_rail_velocity": 21.136325299603076, "initial_stability_margin": 2.2708977011958944, "apogee_x": 389.2901482186624, "x_impact": 460.1528063415895, "out_of_rail_stability_margin": 2.3678815246550737, "apogee": 3375.800614964669, "lateral_surface_wind": 0.0, "max_mach_number": 0.5957524179738761, "frontal_surface_wind": 0.0, "t_final": 222.5324543640149, "impact_velocity": -5.633834643393245, "apogee_y": 319.69027567699413, "index": 1} -{"out_of_rail_time": 0.37438713183551614, "apogee_time": 25.928888051598012, "y_impact": 541.5365565755143, "out_of_rail_velocity": 25.140080029802938, "initial_stability_margin": 2.386109581779358, "apogee_x": 689.3936151573209, "x_impact": 786.8687723188339, "out_of_rail_stability_margin": 2.467904603570153, "apogee": 4691.814051778251, "lateral_surface_wind": 0.0, "max_mach_number": 0.8515271214758438, "frontal_surface_wind": 0.0, "t_final": 295.1001478529319, "impact_velocity": -5.536994685151316, "apogee_y": 474.8512418891495, "index": 2} -{"out_of_rail_time": 0.3206136320356596, "apogee_time": 27.661287457326196, "y_impact": 430.74875183507294, "out_of_rail_velocity": 23.38038793209511, "initial_stability_margin": 2.3885733776462277, "apogee_x": 465.28266375011316, "x_impact": 532.0790850036708, "out_of_rail_stability_margin": 2.4598107378387306, "apogee": 5069.675566732136, "lateral_surface_wind": 0.0, "max_mach_number": 0.9152283462666928, "frontal_surface_wind": 0.0, "t_final": 307.9031185047359, "impact_velocity": -5.733499813375344, "apogee_y": 377.1145697596162, "index": 3} +{"x_impact": 261.11227152428785, "out_of_rail_velocity": 21.263362678403276, "lateral_surface_wind": 0.0, "impact_velocity": -5.5974307833687975, "apogee_y": 185.02990620611027, "apogee": 4090.397476048397, "max_mach_number": 0.7362805444720003, "out_of_rail_stability_margin": 2.315089166308985, "apogee_x": 222.39281714255011, "t_final": 258.96490133727735, "frontal_surface_wind": 0.0, "apogee_time": 24.189875450232726, "initial_stability_margin": 2.233761459523716, "y_impact": 216.94920645594468, "out_of_rail_time": 0.3526399202369637, "index": 1} +{"x_impact": 484.2520018225589, "out_of_rail_velocity": 23.043449951089155, "lateral_surface_wind": 0.0, "impact_velocity": -5.638698448227493, "apogee_y": 374.1333818596774, "apogee": 4933.3951884764765, "max_mach_number": 0.8972012428141698, "out_of_rail_stability_margin": 2.3686077590907453, "apogee_x": 421.4330962089096, "t_final": 300.9720229351123, "frontal_surface_wind": 0.0, "apogee_time": 27.281168813699697, "initial_stability_margin": 2.2964923844396727, "y_impact": 429.3662643361925, "out_of_rail_time": 0.32514873530416133, "index": 2} +{"x_impact": 372.6625337978357, "out_of_rail_velocity": 18.904312773708973, "lateral_surface_wind": 0.0, "impact_velocity": -5.568722088369098, "apogee_y": 224.41013464039185, "apogee": 3401.4185587371117, "max_mach_number": 0.6049423853841714, "out_of_rail_stability_margin": 2.1710531802525574, "apogee_x": 317.7795912292856, "t_final": 229.8195457110126, "frontal_surface_wind": 0.0, "apogee_time": 21.524782290759216, "initial_stability_margin": 2.0781643782173873, "y_impact": 262.9697158122671, "out_of_rail_time": 0.3969987568929141, "index": 3} diff --git a/rocketpy/simulation/monte_carlo.py b/rocketpy/simulation/monte_carlo.py index 5e13f1b92..8df6bebad 100644 --- a/rocketpy/simulation/monte_carlo.py +++ b/rocketpy/simulation/monte_carlo.py @@ -1209,7 +1209,7 @@ def export_json( converted_values = [] for value in value_list: - if isinstance(value, np.generic) == True: + if isinstance(value, np.generic): converted_values.append(value.float()) else: diff --git a/temp_test_output.json b/temp_test_output.json index 7350b6985..727258a7d 100644 --- a/temp_test_output.json +++ b/temp_test_output.json @@ -1,18 +1,18 @@ { - "out_of_rail_time": 0.3206136320356596, - "apogee_time": 27.661287457326196, - "y_impact": 430.74875183507294, - "out_of_rail_velocity": 23.38038793209511, - "initial_stability_margin": 2.3885733776462277, - "apogee_x": 465.28266375011316, - "x_impact": 532.0790850036708, - "out_of_rail_stability_margin": 2.4598107378387306, - "apogee": 5069.675566732136, + "x_impact": 372.6625337978357, + "out_of_rail_velocity": 18.904312773708973, "lateral_surface_wind": 0.0, - "max_mach_number": 0.9152283462666928, + "impact_velocity": -5.568722088369098, + "apogee_y": 224.41013464039185, + "apogee": 3401.4185587371117, + "max_mach_number": 0.6049423853841714, + "out_of_rail_stability_margin": 2.1710531802525574, + "apogee_x": 317.7795912292856, + "t_final": 229.8195457110126, "frontal_surface_wind": 0.0, - "t_final": 307.9031185047359, - "impact_velocity": -5.733499813375344, - "apogee_y": 377.1145697596162, + "apogee_time": 21.524782290759216, + "initial_stability_margin": 2.0781643782173873, + "y_impact": 262.9697158122671, + "out_of_rail_time": 0.3969987568929141, "index": 3 } \ No newline at end of file From 894cc83cf34eadcb302220ef6556347002865c9e Mon Sep 17 00:00:00 2001 From: Induction-2024 <163626634+IPSITA-Nanda@users.noreply.github.com> Date: Thu, 11 Dec 2025 17:27:05 +0530 Subject: [PATCH 3/5] ENH : add of CSV export feature and previous lint fix --- monte_carlo_test.errors.txt | 0 monte_carlo_test.inputs.txt | 3 --- monte_carlo_test.outputs.txt | 3 --- temp_test_output.json | 18 ------------------ 4 files changed, 24 deletions(-) delete mode 100644 monte_carlo_test.errors.txt delete mode 100644 monte_carlo_test.inputs.txt delete mode 100644 monte_carlo_test.outputs.txt delete mode 100644 temp_test_output.json diff --git a/monte_carlo_test.errors.txt b/monte_carlo_test.errors.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/monte_carlo_test.inputs.txt b/monte_carlo_test.inputs.txt deleted file mode 100644 index 071fccacb..000000000 --- a/monte_carlo_test.inputs.txt +++ /dev/null @@ -1,3 +0,0 @@ -{"elevation": 1405.2333034553437, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97389890979}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 0.996153470732183, "wind_velocity_y_factor": 0.9843099091158273, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 9.88514613719607, "trigger": {}, "sampling_rate": 105, "lag": 1.384515988983946, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 0.9713540953330672, "trigger": {}, "sampling_rate": 105, "lag": 1.4633143183666615, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.0634987499451071, "mass": 15.072095837108305, "I_11_without_motor": 6.321, "I_22_without_motor": 6.335506134662188, "I_33_without_motor": 0.04145581960969349, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396038712}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396039633}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": [[0, 6000], [1, 6000], [2, 6000], [3, 6000], [4, 6000]], "total_impulse": 5385.812758000186, "burn_start_time": 0, "burn_out_time": 3.9114375467662366, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.03266791185145551, "grain_number": 5, "grain_density": 1756.126715220755, "grain_outer_radius": 0.03300181343242285, "grain_initial_inner_radius": 0.014671288575881717, "grain_initial_height": 0.11971670172991274, "grain_separation": 0.005152504179236257, "grains_center_of_mass_position": 0.3954382548339674, "center_of_dry_mass_position": 0.317, "nozzle_position": -0.00016581769284513715, "throat_radius": 0.0112910109820258, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.3736571101185506}], "aerodynamic_surfaces": [{"length": 0.5578302102385078, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.132906277977581]}, {"n": 4, "root_chord": 0.12048278166765124, "tip_chord": 0.03987953632537998, "span": 0.10004828831202084, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.1686718767796187]}, {"top_radius": 0.06349186155167603, "bottom_radius": 0.04384195346847791, "length": 0.05941129032558995, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.7004013683915161, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6190611734380873, "upper_button_position": 0.08134019495342881}], "rail_length": 5.2, "inclination": 84.44695307909555, "heading": 50.833750907540285, "index": 1} -{"elevation": 1371.6714131910126, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97389890979}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 1.0424528320229767, "wind_velocity_y_factor": 1.0087294028602474, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 10.03685094165895, "trigger": {}, "sampling_rate": 105, "lag": 1.486228635509414, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 0.9757324698182986, "trigger": {}, "sampling_rate": 105, "lag": 1.3972850563541446, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.06350406616217043, "mass": 15.642608686580136, "I_11_without_motor": 6.321, "I_22_without_motor": 6.312103416301233, "I_33_without_motor": 0.02102176681083532, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396038712}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396039633}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": [[0, 6000], [1, 6000], [2, 6000], [3, 6000], [4, 6000]], "total_impulse": 6725.384366098611, "burn_start_time": 0, "burn_out_time": 4.106678095660262, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.033126140037711554, "grain_number": 5, "grain_density": 1820.1672376739655, "grain_outer_radius": 0.03267007334858819, "grain_initial_inner_radius": 0.014357795902449321, "grain_initial_height": 0.12034050263324358, "grain_separation": 0.004933437395364341, "grains_center_of_mass_position": 0.3969186297774232, "center_of_dry_mass_position": 0.317, "nozzle_position": -0.0012910462891845863, "throat_radius": 0.01081040338251928, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.371964077147407}], "aerodynamic_surfaces": [{"length": 0.5586289770405056, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.1329214328813857]}, {"n": 4, "root_chord": 0.12026152752398361, "tip_chord": 0.039845353384308536, "span": 0.1001476615605449, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.168430519355786]}, {"top_radius": 0.06308686485654086, "bottom_radius": 0.043811032671258965, "length": 0.05988256216607636, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.7004855387199967, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6168644021022753, "upper_button_position": 0.08362113661772141}], "rail_length": 5.2, "inclination": 84.97503104881706, "heading": 48.84759655800046, "index": 2} -{"elevation": 1393.9536793474836, "gravity": {"source": [[0.0, 9.795652669148597], [808.0808080808081, 9.793159061704268], [1616.1616161616162, 9.790666397683085], [2424.242424242424, 9.788174677085044], [3232.3232323232323, 9.785683899910145], [4040.4040404040406, 9.78319406615839], [4848.484848484848, 9.78070517582978], [5656.565656565656, 9.778217228924312], [6464.646464646465, 9.775730225441988], [7272.727272727273, 9.773244165382808], [8080.808080808081, 9.77075904874677], [8888.888888888889, 9.768274875533876], [9696.969696969696, 9.765791645744127], [10505.050505050505, 9.76330935937752], [11313.131313131313, 9.760828016434056], [12121.212121212122, 9.758347616913735], [12929.29292929293, 9.755868160816558], [13737.373737373737, 9.753389648142525], [14545.454545454546, 9.750912078891636], [15353.535353535353, 9.74843545306389], [16161.616161616163, 9.745959770659285], [16969.696969696968, 9.743485031677826], [17777.777777777777, 9.74101123611951], [18585.858585858587, 9.738538383984336], [19393.939393939392, 9.736066475272306], [20202.0202020202, 9.73359550998342], [21010.10101010101, 9.731125488117678], [21818.18181818182, 9.728656409675079], [22626.262626262625, 9.726188274655623], [23434.343434343435, 9.72372108305931], [24242.424242424244, 9.72125483488614], [25050.50505050505, 9.718789530136116], [25858.58585858586, 9.716325168809234], [26666.666666666668, 9.713861750905496], [27474.747474747473, 9.711399276424899], [28282.828282828283, 9.708937745367447], [29090.909090909092, 9.706477157733138], [29898.989898989897, 9.704017513521974], [30707.070707070707, 9.701558812733952], [31515.151515151516, 9.699101055369074], [32323.232323232325, 9.696644241427338], [33131.31313131313, 9.694188370908746], [33939.393939393936, 9.691733443813298], [34747.47474747475, 9.689279460140995], [35555.555555555555, 9.686826419891833], [36363.63636363636, 9.684374323065816], [37171.71717171717, 9.68192316966294], [37979.79797979798, 9.67947295968321], [38787.878787878784, 9.677023693126623], [39595.9595959596, 9.674575369993178], [40404.0404040404, 9.672127990282878], [41212.121212121216, 9.66968155399572], [42020.20202020202, 9.667236061131705], [42828.28282828283, 9.664791511690835], [43636.36363636364, 9.662347905673109], [44444.444444444445, 9.659905243078523], [45252.52525252525, 9.657463523907083], [46060.606060606064, 9.655022748158785], [46868.68686868687, 9.652582915833632], [47676.767676767675, 9.650144026931622], [48484.84848484849, 9.647706081452755], [49292.92929292929, 9.645269079397032], [50101.0101010101, 9.642833020764453], [50909.09090909091, 9.640397905555016], [51717.17171717172, 9.637963733768723], [52525.25252525252, 9.635530505405573], [53333.333333333336, 9.633098220465566], [54141.41414141414, 9.630666878948704], [54949.49494949495, 9.628236480854984], [55757.57575757576, 9.625807026184408], [56565.656565656565, 9.623378514936975], [57373.73737373737, 9.620950947112686], [58181.818181818184, 9.61852432271154], [58989.89898989899, 9.616098641733537], [59797.979797979795, 9.613673904178679], [60606.06060606061, 9.611250110046964], [61414.14141414141, 9.60882725933839], [62222.22222222222, 9.606405352052962], [63030.30303030303, 9.603984388190677], [63838.38383838384, 9.601564367751534], [64646.46464646465, 9.599145290735535], [65454.545454545456, 9.59672715714268], [66262.62626262626, 9.594309966972968], [67070.70707070707, 9.5918937202264], [67878.78787878787, 9.589478416902974], [68686.8686868687, 9.587064057002694], [69494.9494949495, 9.584650640525554], [70303.0303030303, 9.58223816747156], [71111.11111111111, 9.579826637840709], [71919.19191919192, 9.577416051633001], [72727.27272727272, 9.575006408848436], [73535.35353535354, 9.572597709487015], [74343.43434343435, 9.570189953548738], [75151.51515151515, 9.567783141033603], [75959.59595959596, 9.565377271941612], [76767.67676767676, 9.562972346272765], [77575.75757575757, 9.560568364027061], [78383.83838383839, 9.5581653252045], [79191.9191919192, 9.555763229805082], [80000.0, 9.553362077828808]], "title": "Gravity (M/S\u00b2) x Height (M)", "inputs": ["height (m)"], "outputs": ["gravity (m/s\u00b2)"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97389890979}}, "latitude": 32.990254, "longitude": -106.974998, "wind_velocity_x_factor": 0.9496577074113901, "wind_velocity_y_factor": 1.0011752837216652, "datum": "WGS84", "timezone": "UTC", "air_brakes": [], "parachutes": [{"cd_s": 9.897325232094047, "trigger": {}, "sampling_rate": 105, "lag": 1.369657786776508, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_main_chute"}, {"cd_s": 1.154728493703313, "trigger": {}, "sampling_rate": 105, "lag": 1.2202899422917959, "noise": [0, 8.3, 0.5], "radius": 1.5, "height": 1.5, "porosity": 0.0432, "name": "calisto_drogue_chute"}], "radius": 0.06349920976376813, "mass": 14.938544966975948, "I_11_without_motor": 6.321, "I_22_without_motor": 6.301387623805356, "I_33_without_motor": 0.024365258215535958, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power Off x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power Off"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396038712}}, "power_on_drag": {"source": [[0.01, 0.333865758], [0.02, 0.394981721], [0.03, 0.407756063], [0.04, 0.410692705], [0.05, 0.410540353], [0.06, 0.409240293], [0.07, 0.407500874], [0.08, 0.405617853], [0.09, 0.403724114], [0.1, 0.401881596], [0.11, 0.400118527], [0.12, 0.398446442], [0.13, 0.396868616], [0.14, 0.395383943], [0.15, 0.393989178], [0.16, 0.392680199], [0.17, 0.391452432], [0.18, 0.390301526], [0.19, 0.389222867], [0.2, 0.388212693], [0.21, 0.3872672], [0.22, 0.386382809], [0.23, 0.385556609], [0.24, 0.384785814], [0.25, 0.3840677], [0.26, 0.383461808], [0.27, 0.382904488], [0.28, 0.38239367], [0.29, 0.381927906], [0.3, 0.381505764], [0.31, 0.38112576], [0.32, 0.380786983], [0.33, 0.380488401], [0.34, 0.380229069], [0.35, 0.380008442], [0.36, 0.379825864], [0.37, 0.379680781], [0.38, 0.379572948], [0.39, 0.379502053], [0.4, 0.379467845], [0.41, 0.379470462], [0.42, 0.379509762], [0.43, 0.379585951], [0.44, 0.379699307], [0.45, 0.379850119], [0.46, 0.380038814], [0.47, 0.38026598], [0.48, 0.380532207], [0.49, 0.380838218], [0.5, 0.381184986], [0.51, 0.381573462], [0.52, 0.382004786], [0.53, 0.382480279], [0.54, 0.383061789], [0.55, 0.384021453], [0.56, 0.385021508], [0.57, 0.386064151], [0.58, 0.387151683], [0.59, 0.388286902], [0.6, 0.38947261], [0.61, 0.390823679], [0.62, 0.392227749], [0.63, 0.393692485], [0.64, 0.395222008], [0.65, 0.396820939], [0.66, 0.398494134], [0.67, 0.400247115], [0.68, 0.402086103], [0.69, 0.404017654], [0.7, 0.406049491], [0.71, 0.405692833], [0.72, 0.405182938], [0.73, 0.404673127], [0.74, 0.404163299], [0.75, 0.403653676], [0.76, 0.403144115], [0.77, 0.402634536], [0.78, 0.402125162], [0.79, 0.401615748], [0.8, 0.401106515], [0.81, 0.406691886], [0.82, 0.412277217], [0.83, 0.417862728], [0.84, 0.423448342], [0.85, 0.429033915], [0.86, 0.434619667], [0.87, 0.440205521], [0.88, 0.445791433], [0.89, 0.451377325], [0.9, 0.456963416], [0.91, 0.460070768], [0.92, 0.469392821], [0.93, 0.486455115], [0.94, 0.506596622], [0.95, 0.526738129], [0.96, 0.546879635], [0.97, 0.567021142], [0.98, 0.587162649], [0.99, 0.607304156], [1.0, 0.627445662], [1.01, 0.647587169], [1.02, 0.667728676], [1.03, 0.687870183], [1.04, 0.708011689], [1.05, 0.728153196], [1.06, 0.724823841], [1.07, 0.721573639], [1.08, 0.718399539], [1.09, 0.715298768], [1.1, 0.712269521], [1.11, 0.709309845], [1.12, 0.706418312], [1.13, 0.703593424], [1.14, 0.700834081], [1.15, 0.698139003], [1.16, 0.695198562], [1.17, 0.692310349], [1.18, 0.689484944], [1.19, 0.686649695], [1.2, 0.683689234], [1.21, 0.680791411], [1.22, 0.677955453], [1.23, 0.675180983], [1.24, 0.672467031], [1.25, 0.669813183], [1.26, 0.667218931], [1.27, 0.664683659], [1.28, 0.662207006], [1.29, 0.658958242], [1.3, 0.655696788], [1.31, 0.652482071], [1.32, 0.649313067], [1.33, 0.646188665], [1.34, 0.643107891], [1.35, 0.640069748], [1.36, 0.63707329], [1.37, 0.634117922], [1.38, 0.631202794], [1.39, 0.628327073], [1.4, 0.625490308], [1.41, 0.622691519], [1.42, 0.619930492], [1.43, 0.617206358], [1.44, 0.614518793], [1.45, 0.611867277], [1.46, 0.609251142], [1.47, 0.606670082], [1.48, 0.604123714], [1.49, 0.601611411], [1.5, 0.599132922], [1.51, 0.596687849], [1.52, 0.594275965], [1.53, 0.591896725], [1.54, 0.589549659], [1.55, 0.587234882], [1.56, 0.584951742], [1.57, 0.582700041], [1.58, 0.580479567], [1.59, 0.578289812], [1.6, 0.576130805], [1.61, 0.574002135], [1.62, 0.571903631], [1.63, 0.569835013], [1.64, 0.567796001], [1.65, 0.565786432], [1.66, 0.563806137], [1.67, 0.561854848], [1.68, 0.559932409], [1.69, 0.558038559], [1.7, 0.556173065], [1.71, 0.554336047], [1.72, 0.552526984], [1.73, 0.550745911], [1.74, 0.548992581], [1.75, 0.547266786], [1.76, 0.545568552], [1.77, 0.543897563], [1.78, 0.542253679], [1.79, 0.54063688], [1.8, 0.539046907], [1.81, 0.53764434], [1.82, 0.536217646], [1.83, 0.534799494], [1.84, 0.53338978], [1.85, 0.531988364], [1.86, 0.530595145], [1.87, 0.529209996], [1.88, 0.527832797], [1.89, 0.526463462], [1.9, 0.525101881], [1.91, 0.523747949], [1.92, 0.52240154], [1.93, 0.521062597], [1.94, 0.519730988], [1.95, 0.51840665], [1.96, 0.517089486], [1.97, 0.515779376], [1.98, 0.514476265], [1.99, 0.513180047], [2.0, 0.511890654]], "title": "Drag Coefficient With Power On x Mach Number", "inputs": ["Mach Number"], "outputs": ["Drag Coefficient with Power On"], "interpolation": "linear", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97396039633}}, "power_off_drag_factor": 1.0, "power_on_drag_factor": 1.0, "center_of_mass_without_motor": 0.0, "coordinate_system_orientation": "tail_to_nose", "motors": [{"thrust_source": {"source": [[0.0, 6000.0], [1.0, 6000.0], [2.0, 6000.0], [3.0, 6000.0], [4.0, 6000.0]], "title": "Scalar x Scalar", "inputs": ["Scalar"], "outputs": ["Scalar"], "interpolation": "spline", "extrapolation": "constant", "signature": {"module": "rocketpy.mathutils.function", "name": "Function", "hash": 97403130047}}, "total_impulse": 4530.662949807967, "burn_start_time": 0, "burn_out_time": 4.008232507703498, "dry_mass": 1.815, "dry_I_11": 0.125, "dry_I_22": 0.125, "dry_I_33": 0.002, "dry_I_12": 0, "dry_I_13": 0, "dry_I_23": 0, "nozzle_radius": 0.03379120556072005, "grain_number": 5, "grain_density": 1790.8471976870057, "grain_outer_radius": 0.03366997846929385, "grain_initial_inner_radius": 0.014996109115355857, "grain_initial_height": 0.1210491767262571, "grain_separation": 0.006415369189899417, "grains_center_of_mass_position": 0.3966533339942215, "center_of_dry_mass_position": 0.317, "nozzle_position": 0.0009645640141832749, "throat_radius": 0.010333284456483573, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.3721435499412973}], "aerodynamic_surfaces": [{"length": 0.5594663258663276, "kind": "vonkarman", "base_radius": 0.0635, "bluffness": null, "rocket_radius": 0.0635, "power": null, "name": "calisto_nose_cone", "position": [0, 0, 1.1345177263191837]}, {"n": 4, "root_chord": 0.12008300492878543, "tip_chord": 0.039572725705254296, "span": 0.10056330918971902, "rocket_radius": 0.0635, "cant_angle": 0, "sweep_length": 0.07999999999999999, "sweep_angle": null, "airfoil": null, "name": "calisto_trapezoidal_fins", "position": [0, 0, -1.1676072745749622]}, {"top_radius": 0.0644145405140836, "bottom_radius": 0.042972926256001354, "length": 0.06134398140578226, "rocket_radius": 0.0635, "name": "calisto_tail", "position": [0, 0, [0, 0, -1.313]]}], "rail_buttons": [{"buttons_distance": 0.7014980298530517, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6173183969075458, "upper_button_position": 0.0841796329455059}], "rail_length": 5.2, "inclination": 84.31138944155353, "heading": 55.02098307205797, "index": 3} diff --git a/monte_carlo_test.outputs.txt b/monte_carlo_test.outputs.txt deleted file mode 100644 index d88dca600..000000000 --- a/monte_carlo_test.outputs.txt +++ /dev/null @@ -1,3 +0,0 @@ -{"x_impact": 261.11227152428785, "out_of_rail_velocity": 21.263362678403276, "lateral_surface_wind": 0.0, "impact_velocity": -5.5974307833687975, "apogee_y": 185.02990620611027, "apogee": 4090.397476048397, "max_mach_number": 0.7362805444720003, "out_of_rail_stability_margin": 2.315089166308985, "apogee_x": 222.39281714255011, "t_final": 258.96490133727735, "frontal_surface_wind": 0.0, "apogee_time": 24.189875450232726, "initial_stability_margin": 2.233761459523716, "y_impact": 216.94920645594468, "out_of_rail_time": 0.3526399202369637, "index": 1} -{"x_impact": 484.2520018225589, "out_of_rail_velocity": 23.043449951089155, "lateral_surface_wind": 0.0, "impact_velocity": -5.638698448227493, "apogee_y": 374.1333818596774, "apogee": 4933.3951884764765, "max_mach_number": 0.8972012428141698, "out_of_rail_stability_margin": 2.3686077590907453, "apogee_x": 421.4330962089096, "t_final": 300.9720229351123, "frontal_surface_wind": 0.0, "apogee_time": 27.281168813699697, "initial_stability_margin": 2.2964923844396727, "y_impact": 429.3662643361925, "out_of_rail_time": 0.32514873530416133, "index": 2} -{"x_impact": 372.6625337978357, "out_of_rail_velocity": 18.904312773708973, "lateral_surface_wind": 0.0, "impact_velocity": -5.568722088369098, "apogee_y": 224.41013464039185, "apogee": 3401.4185587371117, "max_mach_number": 0.6049423853841714, "out_of_rail_stability_margin": 2.1710531802525574, "apogee_x": 317.7795912292856, "t_final": 229.8195457110126, "frontal_surface_wind": 0.0, "apogee_time": 21.524782290759216, "initial_stability_margin": 2.0781643782173873, "y_impact": 262.9697158122671, "out_of_rail_time": 0.3969987568929141, "index": 3} diff --git a/temp_test_output.json b/temp_test_output.json deleted file mode 100644 index 727258a7d..000000000 --- a/temp_test_output.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "x_impact": 372.6625337978357, - "out_of_rail_velocity": 18.904312773708973, - "lateral_surface_wind": 0.0, - "impact_velocity": -5.568722088369098, - "apogee_y": 224.41013464039185, - "apogee": 3401.4185587371117, - "max_mach_number": 0.6049423853841714, - "out_of_rail_stability_margin": 2.1710531802525574, - "apogee_x": 317.7795912292856, - "t_final": 229.8195457110126, - "frontal_surface_wind": 0.0, - "apogee_time": 21.524782290759216, - "initial_stability_margin": 2.0781643782173873, - "y_impact": 262.9697158122671, - "out_of_rail_time": 0.3969987568929141, - "index": 3 -} \ No newline at end of file From 9ce41fe54979ebf5d42ad9df44e4ff9100afb154 Mon Sep 17 00:00:00 2001 From: Induction-2024 <163626634+IPSITA-Nanda@users.noreply.github.com> Date: Fri, 12 Dec 2025 10:03:26 +0530 Subject: [PATCH 4/5] refactor: remove unnecessary try/except in export_json --- .gitignore | 6 + rocketpy/simulation/monte_carlo.py | 162 ++++++++++++------ ...onte_carlo_export_csv_create_valid_file.py | 26 +++ ...te_carlo_export_json_creates_valid_file.py | 32 ++++ tests/test_monte_carlo_export.py | 28 --- 5 files changed, 177 insertions(+), 77 deletions(-) create mode 100644 tests/integration/simulation/test_monte_carlo_export_csv_create_valid_file.py create mode 100644 tests/integration/simulation/test_monte_carlo_export_json_creates_valid_file.py delete mode 100644 tests/test_monte_carlo_export.py diff --git a/.gitignore b/.gitignore index 0d6518eb2..77ecb3c39 100644 --- a/.gitignore +++ b/.gitignore @@ -52,6 +52,12 @@ coverage.xml cover/ .pylint-report.txt .ruff-report.txt +# Ignore temporary MonteCarlo export test artifacts +temp_test_output.json +monte_carlo_test.inputs.txt +monte_carlo_test.outputs.txt +monte_carlo_test.errors.txt + # Translations *.mo diff --git a/rocketpy/simulation/monte_carlo.py b/rocketpy/simulation/monte_carlo.py index 8df6bebad..3184decbb 100644 --- a/rocketpy/simulation/monte_carlo.py +++ b/rocketpy/simulation/monte_carlo.py @@ -14,6 +14,7 @@ """ import json +import csv import os import traceback import warnings @@ -1150,57 +1151,55 @@ def export_ellipses_to_kml( # pylint: disable=too-many-statements kml.save(filename) - def export_json( - self, - filename, - indent_size = 4 - ): + def export_json(self, filename, indent_size=4): """ - Export Monte Carlo results into a JSON file. + Export Monte Carlo results into a JSON file. - The exported data reflects exactly what is stored inside ``self.results``. - Depending on how the MonteCarlo object was populated, values may be either - lists (when results come from running Monte Carlo simulations) or scalars - (when results are imported from previously saved output summaries). + The exported data reflects exactly what is stored inside ``self.results``. + Depending on how the MonteCarlo object was populated, values may be either + lists (when results come from running Monte Carlo simulations) or scalars + (when results are imported from previously saved output summaries). - Parameters - ---------- - filename : str - Path to the JSON file that will be created. If the file already exists, - it will be overwritten. - indent_size : int, optional - Number of spaces used for indentation in the generated JSON file. - Defaults to 4. - - Notes - ----- - This function only exports the data already contained inside - ``self.results``. No computations are performed during export. Users - should call ``simulate()`` or ``import_results()`` before exporting. + Parameters + ---------- + filename : str + Path to the JSON file that will be created. If the file already exists, + it will be overwritten. + indent_size : int, optional + Number of spaces used for indentation in the generated JSON file. + Defaults to 4. - Examples - -------- - Run new Monte Carlo simulations and export results:: + Notes + ----- + This function only exports the data already contained inside + ``self.results``. No computations are performed during export. Users + should call ``simulate()`` or ``import_results()`` before exporting. - mc = MonteCarlo(environment=env, rocket=rocket, flight=flight) - mc.simulate(20) - mc.export_json("results.json") + Examples + -------- + Run new Monte Carlo simulations and export results:: - Export results previously loaded from file:: + mc = MonteCarlo(environment=env, rocket=rocket, flight=flight) + mc.simulate(20) + mc.export_json("results.json") - mc = MonteCarlo(environment=env, rocket=rocket, flight=flight) - mc.import_results("sample.outputs.txt") - mc.export_json("summary.json") - """ + Export results previously loaded from file:: + + mc = MonteCarlo(environment=env, rocket=rocket, flight=flight) + mc.import_results("sample.outputs.txt") + mc.export_json("summary.json") + """ if filename is None: - return ValueError("A valid filename to be provided !!") - + raise ValueError("A valid filename must be provided") + if not filename.lower().endswith(".json"): - return ValueError("filename should end with .json") - + raise ValueError("filename must end with .json") + if not self.results or len(self.results) == 0: - raise RuntimeError("Monte Carlo test simulations to be performed ") - + raise RuntimeError( + "No reesults found run simulation() or import results first" + ) + export_dictionary = {} for key in self.results: @@ -1210,22 +1209,87 @@ def export_json( for value in value_list: if isinstance(value, np.generic): - converted_values.append(value.float()) + converted_values.append(float(value)) else: - converted_values = value + converted_values.append(value) export_dictionary[key] = converted_values - try: - with open(filename, "w", encoding = "utf-8") as file: - json.dump(export_dictionary, file, indent = indent_size) - - except (TypeError, OSError) as e: - print(f"Error writing JSON: {e}") + with open(filename, "w", encoding="utf-8") as file: + json.dump(export_dictionary, file, indent=indent_size, cls=RocketPyEncoder) return + """ + Export Monte Carlo results into a CSV file. + + Each row represents one simulation iteration (if results contain lists). + Values that are scalars (from imported summaries) are repeated for all rows. + + Examples + -------- + mc.simulate(50) + mc.export_csv("results.csv") + """ + + def export_csv(self, filename: str): + """ + Export Monte Carlo results into a CSV file. + + The CSV rows correspond to individual simulation iterations whenever + the stored values are lists. Scalar values (from imported summaries) + are repeated across all rows. + + Parameters + ---------- + filename : str + Output CSV file path. Must end in ".csv". + """ + if filename is None: + raise ValueError("A Filename must be provided") + + if not filename.lower().endswith(".csv"): + raise ValueError("The filename must end with .csv") + + if not self.results or len(self.results) == 0: + raise RuntimeError( + "No results found run simulations() or import results first" + ) + + # collection of keys and length + headers = list(self.results.keys()) + + # Determine number of rows + # If lists exist → number of simulations + # If all scalars → only 1 row + max_len = 1 + + for _ in self.results.values(): + if isinstance(_, (list, np.ndarray)): + max_len = len(_) + break + + with open(filename, "w", newline="", encoding="utf-8") as file: + writer = csv.writer(file) + + # write headers + writer.writerow(headers) + + # write rows + for i in range(max_len): + row = [] + for key in headers: + value = self.results[key] + + if isinstance(value, np.ndarray): + row.append(value[i]) + + else: + row.append(value) + + writer.writerow(row) + def info(self): """ Print information about the Monte Carlo simulation. diff --git a/tests/integration/simulation/test_monte_carlo_export_csv_create_valid_file.py b/tests/integration/simulation/test_monte_carlo_export_csv_create_valid_file.py new file mode 100644 index 000000000..fee6d6af8 --- /dev/null +++ b/tests/integration/simulation/test_monte_carlo_export_csv_create_valid_file.py @@ -0,0 +1,26 @@ +import os +import csv + + +def test_csv_export(monte_carlo_calisto): + mc = monte_carlo_calisto + mc.simulate(3) + + filename = "temp_mc_export.csv" + """ + tests that results of monte carlo are exported to a CSV file + """ + mc.export_csv(filename) + + assert os.path.exists(filename) + + with open(filename, newline="") as f: + reader = list(csv.reader(f)) + + # Header exists + assert len(reader[0]) > 0 + + # Should have 3 rows of data after header + assert len(reader) == 4 + + os.remove(filename) diff --git a/tests/integration/simulation/test_monte_carlo_export_json_creates_valid_file.py b/tests/integration/simulation/test_monte_carlo_export_json_creates_valid_file.py new file mode 100644 index 000000000..6e30c1a5d --- /dev/null +++ b/tests/integration/simulation/test_monte_carlo_export_json_creates_valid_file.py @@ -0,0 +1,32 @@ +import os +import json + + +def test_json_export(monte_carlo_calisto): + mc = monte_carlo_calisto + mc.simulate(3) + + filename = "temp_test_output.json" + """ + tests weather the results of monte carlo are exported to a JSON file. + """ + mc.export_json(filename) + + assert os.path.exists(filename) + + try: + mc.export_json(filename) + assert os.path.exists(filename) + with open(filename, "r") as f: + data = json.load(f) + # Assert dictionary keys exist + assert len(data.keys()) > 0 + # Check that at least one key corresponds to a list of simulation results + list_keys = [k for k, v in data.items() if isinstance(v, list)] + # There must be at least 1 Monte Carlo-dependent field + assert len(list_keys) > 0 + first_list_key = list_keys[0] + assert len(data[first_list_key]) == 3 + finally: + if os.path.exists(filename): + os.remove(filename) diff --git a/tests/test_monte_carlo_export.py b/tests/test_monte_carlo_export.py deleted file mode 100644 index 97861112a..000000000 --- a/tests/test_monte_carlo_export.py +++ /dev/null @@ -1,28 +0,0 @@ -import os -import json - -def test_json_export(monte_carlo_calisto): - mc = monte_carlo_calisto - mc.simulate(3) - - filename = "temp_test_output.json" - mc.export_json(filename) - - assert os.path.exists(filename) - - with open(filename, "r") as f: - data = json.load(f) - - # Assert dictionary keys exist - assert len(data.keys()) > 0 - - # Check that at least one key corresponds to a list of simulation results - list_keys = [k for k, v in data.items() if isinstance(v, list)] - - # There must be at least 1 Monte Carlo-dependent field - assert len(list_keys) > 0 - - first_list_key = list_keys[0] - assert len(data[first_list_key]) == 3 - - os.remove(filename) From 9216ceabab793e2e489300966e25b9e6ea97a489 Mon Sep 17 00:00:00 2001 From: Induction-2024 <163626634+IPSITA-Nanda@users.noreply.github.com> Date: Sat, 13 Dec 2025 10:23:18 +0530 Subject: [PATCH 5/5] style: fix pylint errors in export_json and tests --- rocketpy/simulation/monte_carlo.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/rocketpy/simulation/monte_carlo.py b/rocketpy/simulation/monte_carlo.py index 3184decbb..c2ead0e54 100644 --- a/rocketpy/simulation/monte_carlo.py +++ b/rocketpy/simulation/monte_carlo.py @@ -1202,9 +1202,7 @@ def export_json(self, filename, indent_size=4): export_dictionary = {} - for key in self.results: - value_list = self.results[key] - + for key, value_list in self.results.items(): converted_values = [] for value in value_list: @@ -1219,20 +1217,6 @@ def export_json(self, filename, indent_size=4): with open(filename, "w", encoding="utf-8") as file: json.dump(export_dictionary, file, indent=indent_size, cls=RocketPyEncoder) - return - - """ - Export Monte Carlo results into a CSV file. - - Each row represents one simulation iteration (if results contain lists). - Values that are scalars (from imported summaries) are repeated for all rows. - - Examples - -------- - mc.simulate(50) - mc.export_csv("results.csv") - """ - def export_csv(self, filename: str): """ Export Monte Carlo results into a CSV file.