Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into enh/parallel_monte…
Browse files Browse the repository at this point in the history
…carlo
  • Loading branch information
phmbressan committed Dec 16, 2024
2 parents 00d9d02 + 2218f0f commit ebf6bd0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"elevation": 113, "gravity": "'Function from R1 to R1 : (height (m)) \u2192 (gravity (m/s\u00b2))'", "latitude": 39.3897, "longitude": -8.288964, "wind_velocity_x_factor": 1.0, "wind_velocity_y_factor": 1.0, "datum": "SIRGAS2000", "timezone": "UTC", "ensemble_member": 12, "radius": 0.0635026504073287, "mass": 15.682085969389227, "I_11_without_motor": 6.321, "I_22_without_motor": 6.338988882158036, "I_33_without_motor": 0.03130204348386302, "I_12_without_motor": 0, "I_13_without_motor": 0, "I_23_without_motor": 0, "power_off_drag": "'Function from R1 to R1 : (Mach Number) \u2192 (Drag Coefficient with Power Off)'", "power_on_drag": "'Function from R1 to R1 : (Mach Number) \u2192 (Drag Coefficient with Power On)'", "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", "parachutes": [{"cd_s": 9.964579481480238, "trigger": 800, "sampling_rate": 105, "lag": 1.5400928421750208, "noise": [0, 8.3, 0.5], "name": "Main"}, {"cd_s": 1.053581347292585, "trigger": "apogee", "sampling_rate": 105, "lag": 1.547076677223584, "noise": [0, 8.3, 0.5], "name": "Drogue"}], "motors": [{"thrust_source": [[0, 0], [0.055, 100.0], [0.092, 1500.0], [0.1, 2000.0], [0.15, 2200.0], [0.2, 1800.0], [0.5, 1950.0], [1.0, 2034.0], [1.5, 2000.0], [2.0, 1900.0], [2.5, 1760.0], [2.9, 1700.0], [3.0, 1650.0], [3.3, 530.0], [3.4, 350.0], [3.9, 0.0]], "total_impulse": 6856.354770975974, "burn_start_time": 0, "burn_out_time": 3.9, "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.032730650070270366, "grain_number": 5, "grain_density": 1759.0002074492309, "grain_outer_radius": 0.03242230462181787, "grain_initial_inner_radius": 0.014932033668244029, "grain_initial_height": 0.11986670781368569, "grain_separation": 0.0043804774372666125, "grains_center_of_mass_position": 0.39749334004739806, "center_of_dry_mass_position": 0.317, "nozzle_position": 0.00012776739944301812, "throat_radius": 0.011558987272317063, "interpolate": "linear", "coordinate_system_orientation": "nozzle_to_combustion_chamber", "position": -1.2554668494646906}], "aerodynamic_surfaces": [{"length": 0.5585738309196118, "kind": "vonKarman", "base_radius": 0.0635, "bluffness": 0, "rocket_radius": 0.0635, "name": "Nose Cone", "position": [0, 0, 1.133607250248703]}, {"n": 4, "root_chord": 0.11954751546671595, "tip_chord": 0.05966602935963838, "span": 0.10964031934715668, "rocket_radius": 0.0635, "cant_angle": 0.5, "sweep_length": 0.06, "sweep_angle": null, "airfoil": ["../../../data/airfoils/NACA0012-radians.txt", "radians"], "name": "Fins", "position": [0, 0, -1.0514983708842365]}, {"top_radius": 0.06343918078680816, "bottom_radius": 0.04325007199856578, "length": 0.060394317313238605, "rocket_radius": 0.0635, "name": "Tail", "position": [0, 0, [0, 0, -1.194656]]}], "rail_buttons": [{"buttons_distance": 0.6974746622933771, "angular_position": 45, "name": "Rail Buttons", "lower_button_position": -0.6188258915052254, "upper_button_position": 0.07864877078815169}], "rail_length": 5, "inclination": 84.44167248190685, "heading": 54.43860091183173}
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
<Placemark id="3">
<name>Impact Ellipse 1</name>
<visibility>1</visibility>
<styleUrl>#8</styleUrl>
<MultiGeometry id="2">
<Polygon id="4">
<styleUrl>#748</styleUrl>
<MultiGeometry id="742">
<Polygon id="744">
<outerBoundaryIs>
<LinearRing id="6">
<coordinates>-8.272673559175164,39.407604088495695,0.0 -8.272605622844912,39.40751975431822,0.0 -8.272513649181514,39.407444859136,0.0 -8.27239800120189,39.4073796984698,0.0 -8.272259135332408,39.4073245294095,0.0 -8.272097599607347,39.407279569600476,0.0 -8.271914031506126,39.40724499638595,0.0 -8.271709155437922,39.40722094610861,0.0 -8.271483779883543,39.407207513574086,0.0 -8.271238794205855,39.40720475167856,0.0 -8.270975165141321,39.40721267120179,0.0 -8.270693932986457,39.40723124076652,0.0 -8.27039620749427,39.40726038696422,0.0 -8.270083163496803,39.4072999946467,0.0 -8.269756036271044,39.40734990738251,0.0 -8.269416116666449,39.40740992807618,0.0 -8.269064746013266,39.40747981974774,0.0 -8.26870331083171,39.40755930646979,0.0 -8.268333237362828,39.40764807445786,0.0 -8.267955985942592,39.407745773310175,0.0 -8.267573045241372,39.40785201739178,0.0 -8.267185926391507,39.40796638735735,0.0 -8.266796157026059,39.40808843180697,0.0 -8.266405275252286,39.40821766906817,0.0 -8.266014823583557,39.40835358909707,0.0 -8.26562634285362,39.40849565549143,0.0 -8.26524136613722,39.40864330760737,0.0 -8.26486141270104,39.40879596277153,0.0 -8.264487982008797,39.40895301857995,0.0 -8.264122547804162,39.40911385527463,0.0 -8.263766552294829,39.40927783818832,0.0 -8.263421400460693,39.40944432024796,0.0 -8.263088454508578,39.4096126445269,0.0 -8.262769028495454,39.40978214683596,0.0 -8.262464383141316,39.40995215834286,0.0 -8.262175720852259,39.41012200821007,0.0 -8.261904180973403,39.410291026240245,0.0 -8.261650835290405,39.41045854551943,0.0 -8.261416683797384,39.410623905047046,0.0 -8.26120265074796,39.410786452342585,0.0 -8.261009581005055,39.41094554601891,0.0 -8.260838236703886,39.41110055831164,0.0 -8.260689294241374,39.411250877555034,0.0 -8.260563341603882,39.41139591059443,0.0 -8.260460876043897,39.41153508512575,0.0 -8.260382302114833,39.41166785195294,0.0 -8.260327930071783,39.41179368715449,0.0 -8.260297974644573,39.41191209415024,0.0 -8.260292554187982,39.41202260566069,0.0 -8.26031169021252,39.412124785550816,0.0 -8.26035530729768,39.41221823055127,0.0 -8.260423233387995,39.41230257185004,0.0 -8.260515200470781,39.41237747654845,0.0 -8.260630845632905,39.41244264897564,0.0 -8.260769712492422,39.41249783185624,0.0 -8.260931252999448,39.412542807326965,0.0 -8.261114829599146,39.41257739779754,0.0 -8.261319717748318,39.412601466653165,0.0 -8.261545108775627,39.412614918795235,0.0 -8.261790113074188,39.412617701018334,0.0 -8.26205376361388,39.41260980222211,0.0 -8.262335019759508,39.41259125345696,0.0 -8.26263277137972,39.4125621278034,0.0 -8.262945843230414,39.412522540085625,0.0 -8.263272999595342,39.412472646420184,0.0 -8.263612949165507,39.41241264360185,0.0 -8.263964350138085,39.41234276832866,0.0 -8.264325815514708,39.412263296269415,0.0 -8.264695918578129,39.41217454097735,0.0 -8.265073198525657,39.412076852653996,0.0 -8.26545616623703,39.41197061676828,0.0 -8.26584331015394,39.41185625253625,0.0 -8.266233102248007,39.41173421126742,0.0 -8.266624004053524,39.41160497458409,0.0 -8.267014472741213,39.41146905252103,0.0 -8.267402967208923,39.411326981512545,0.0 -8.26778795416526,39.4111793222753,0.0 -8.268167914182053,39.41102665759496,0.0 -8.2685413476918,39.410869590025555,0.0 -8.268906780906397,39.41070873951056,0.0 -8.269262771633763,39.41054474093519,0.0 -8.269607914969422,39.410378241619505,0.0 -8.269940848840568,39.41020989876226,0.0 -8.270260259380764,39.41004037684566,0.0 -8.270564886114029,39.40987034501118,0.0 -8.270853526927928,39.40970047441697,0.0 -8.271125042816019,39.409531435587205,0.0 -8.271378362370994,39.40936389576388,0.0 -8.271612486010786,39.40919851627159,0.0 -8.27182648992104,39.40903594990567,0.0 -8.272019529698374,39.40887683835401,0.0 -8.27219084368015,39.4087218096629,0.0 -8.272339755947597,39.40857147575669,0.0 -8.272465678990548,39.4084264300213,0.0 -8.27256811602324,39.40828724496102,0.0 -8.272646662942153,39.40815446993794,0.0 -8.272701009918158,39.40802862900285,0.0 -8.272730942616748,39.40791021882631,0.0 -8.272736343041595,39.407799706738,0.0 -8.2727171899981,39.40769752888203,0.0</coordinates>
Expand All @@ -57,9 +57,9 @@
<Placemark id="12">
<name>Impact Ellipse 2</name>
<visibility>1</visibility>
<styleUrl>#17</styleUrl>
<MultiGeometry id="11">
<Polygon id="13">
<styleUrl>#757</styleUrl>
<MultiGeometry id="751">
<Polygon id="753">
<outerBoundaryIs>
<LinearRing id="15">
<coordinates>-8.278832073815918,39.405296530455324,0.0 -8.278696190921133,39.405127869222355,0.0 -8.278512237019259,39.4049780883741,0.0 -8.278280938247741,39.404847778802065,0.0 -8.278003207503625,39.40473745450053,0.0 -8.277680140839708,39.40464755054231,0.0 -8.2773130131393,39.40457842136696,0.0 -8.276903273086639,39.404530339387755,0.0 -8.276452537452753,39.404503493923045,0.0 -8.275962584719323,39.404497990456065,0.0 -8.275435348065594,39.40451385022586,0.0 -8.274872907745955,39.40455101015111,0.0 -8.274277482888117,39.40460932308685,0.0 -8.273651422744186,39.404688558412815,0.0 -8.272997197428978,39.40478840295135,0.0 -8.272317388181985,39.40490846221078,0.0 -8.271614677191268,39.40504826194941,0.0 -8.270891837019246,39.40520725005382,0.0 -8.270151719671976,39.405384798723844,0.0 -8.269397245354826,39.40558020695581,0.0 -8.268631390958799,39.40579270331369,0.0 -8.267857178322737,39.40602144897759,0.0 -8.26707766231757,39.406265541057245,0.0 -8.266295918799472,39.40652401615743,0.0 -8.265515032479348,39.40679585418126,0.0 -8.264738084756344,39.40707998235628,0.0 -8.263968141563325,39.40737527946736,0.0 -8.263208241272158,39.40768058028003,0.0 -8.262461382706467,39.40799468013638,0.0 -8.261730513309104,39.4083163397058,0.0 -8.26101851751098,39.40864428987161,0.0 -8.260328205347186,39.408977236734636,0.0 -8.259662301365282,39.40931386671371,0.0 -8.25902343386958,39.40965285172335,0.0 -8.25841412454394,39.40999285440824,0.0 -8.257836778494068,39.41033253341381,0.0 -8.257293674748723,39.410670548672314,0.0 -8.256786957257432,39.41100556668389,0.0 -8.256318626420356,39.41133626577134,0.0 -8.255890531183882,39.41166134128865,0.0 -8.255504361733308,39.4119795107623,0.0 -8.25516164281158,39.41228951894554,0.0 -8.254863727690648,39.412590142765616,0.0 -8.254611792819432,39.41288019614449,0.0 -8.254406833169645,39.413158534674345,0.0 -8.254249658298056,39.413424060129266,0.0 -8.2541408891409,39.4136757247955,0.0 -8.254080955553249,39.41391253560331,0.0 -8.254070094603223,39.41413355804392,0.0 -8.254108349627902,39.41433791985645,0.0 -8.254195570054817,39.414524814470184,0.0 -8.25433141198985,39.41469350418836,0.0 -8.25451533956928,39.41484332310135,0.0 -8.254746627070784,39.414973679717306,0.0 -8.255024361775048,39.41508405930009,0.0 -8.255347447566827,39.41517402590503,0.0 -8.255714609261144,39.41524322410461,0.0 -8.256124397637667,39.415291380397,0.0 -8.256575195163265,39.41531830429187,0.0 -8.25706522238019,39.41532388906914,0.0 -8.257592544934546,39.415308112207406,0.0 -8.258155081217245,39.41527103548048,0.0 -8.258750610587178,39.41521280472127,0.0 -8.259376782144017,39.41513364925405,0.0 -8.260031124015903,39.415033880997065,0.0 -8.260711053125174,39.41491389323897,0.0 -8.261413885393473,39.41477415909384,0.0 -8.262136846345753,39.414615229640674,0.0 -8.262877082071187,39.414437731754624,0.0 -8.263631670497508,39.41424236563851,0.0 -8.264397632934145,39.41402990206416,0.0 -8.265171945838391,39.41380117933444,0.0 -8.265951552758029,39.41355709997796,0.0 -8.266733376403105,39.41329862718925,0.0 -8.267514330799065,39.413026781028755,0.0 -8.26829133347317,39.412742634397276,0.0 -8.26906131762594,39.412447308800964,0.0 -8.269821244239548,39.41214196992357,0.0 -8.270568114075251,39.41182782302327,0.0 -8.271298979512464,39.411506108172624,0.0 -8.272010956182724,39.411178095360086,0.0 -8.272701234352601,39.41084507947282,0.0 -8.273367090010645,39.41050837518057,0.0 -8.27400589561463,39.41016931174076,0.0 -8.274615130456773,39.4098292277456,0.0 -8.275192390606014,39.40948946583198,0.0 -8.275735398388298,39.409151367375124,0.0 -8.276242011367495,39.40881626718703,0.0 -8.276710230791664,39.40848548824083,0.0 -8.27713820947146,39.40816033644199,0.0 -8.277524259059758,39.407842095467004,0.0 -8.277866856703913,39.407532021690244,0.0 -8.27816465104459,39.40723133921894,0.0 -8.278416467537644,39.406941235056074,0.0 -8.278621313078263,39.406662854410364,0.0 -8.278778379909244,39.40639729617192,0.0 -8.27888704879822,39.40614560857149,0.0 -8.278946891471403,39.40590878504053,0.0 -8.27895767229445,39.40568776028846,0.0 -8.278919349193934,39.405483406612575,0.0</coordinates>
Expand All @@ -71,9 +71,9 @@
<Placemark id="21">
<name>Impact Ellipse 3</name>
<visibility>1</visibility>
<styleUrl>#26</styleUrl>
<MultiGeometry id="20">
<Polygon id="22">
<styleUrl>#766</styleUrl>
<MultiGeometry id="760">
<Polygon id="762">
<outerBoundaryIs>
<LinearRing id="24">
<coordinates>-8.284990180928805,39.402988647804065,0.0 -8.284786341240867,39.40273566663824,0.0 -8.284510400530957,39.40251100964017,0.0 -8.284163448160529,39.402315562922055,0.0 -8.283746853541425,39.402150097197094,0.0 -8.283262260729089,39.4020152647477,0.0 -8.282711581935084,39.40191159686285,0.0 -8.282096989984494,39.40183950175443,0.0 -8.281420909747915,39.401799262960665,0.0 -8.280686008581748,39.401791038242784,0.0 -8.279895185814354,39.40181485897877,0.0 -8.279051561319346,39.40187063005657,0.0 -8.278158463220898,39.401958130266934,0.0 -8.277219414779282,39.402077013193704,0.0 -8.27623812050808,39.402226808598364,0.0 -8.275218451577517,39.40240692429246,0.0 -8.274164430561164,39.40261664849076,0.0 -8.273080215585795,39.402855152635325,0.0 -8.271970083946576,39.403121494679176,0.0 -8.270838415251866,39.403414622816456,0.0 -8.269689674163702,39.403733379644095,0.0 -8.268528392801741,39.404076506738285,0.0 -8.267359152879697,39.40444264962793,0.0 -8.266186567644429,39.404830363144846,0.0 -8.265015263688612,39.40523811712986,0.0 -8.263849862708508,39.405664302472196,0.0 -8.26269496327849,39.40610723745817,0.0 -8.26155512271412,39.40656517440427,0.0 -8.260434839095073,39.407036306548534,0.0 -8.259338533518825,39.40751877517305,0.0 -8.258270532654954,39.40801067692957,0.0 -8.257235051668946,39.40851007133958,0.0 -8.256236177582858,39.40901498843942,0.0 -8.2552778531386,39.40952343654023,0.0 -8.25436386122761,39.4100334100728,0.0 -8.253497809948568,39.41054289748609,0.0 -8.252683118352243,39.41104988916885,0.0 -8.251923002930093,39.41155238536331,0.0 -8.251220464900117,39.41204840403979,0.0 -8.250578278340516,39.41253598870167,0.0 -8.249998979218317,39.41301321609001,0.0 -8.249484855356634,39.41347820375773,0.0 -8.249037937380539,39.413929117483804,0.0 -8.248659990677677,39.414364178498325,0.0 -8.248352508405748,39.41478167049013,0.0 -8.248116705574873,39.41517994636969,0.0 -8.247953514228541,39.41555743476049,0.0 -8.247863579742605,39.415912646193746,0.0 -8.247847258257206,39.41624417898177,0.0 -8.247904615252187,39.4165507247471,0.0 -8.248035425271828,39.416831073585634,0.0 -8.24823917280032,39.41708411884319,0.0 -8.248515054284725,39.4173088614869,0.0 -8.248861981297614,39.41750441405388,0.0 -8.249278584827046,39.41767000416164,0.0 -8.249763220677057,39.41780497756615,0.0 -8.250313975957352,39.41790880075552,0.0 -8.250928676636619,39.4179810630686,0.0 -8.25160489612954,39.418021478330246,0.0 -8.252339964883562,39.41802988599624,0.0 -8.253130980927365,39.418006251803405,0.0 -8.253974821339249,39.41795066792186,0.0 -8.2548681545899,39.4178633526087,0.0 -8.25580745371056,39.417744649364096,0.0 -8.256789010234288,39.41759502559291,0.0 -8.257808948854974,39.41741507077682,0.0 -8.258863242745878,39.4172054941639,0.0 -8.259947729476835,39.41696712198462,0.0 -8.26105812746692,39.41670089420474,0.0 -8.262190052907268,39.416407860828116,0.0 -8.263339037086807,39.41608917776344,0.0 -8.264500544052185,39.41574610227115,0.0 -8.265669988531785,39.41537998800862,0.0 -8.26684275405276,39.41499227969253,0.0 -8.26801421117921,39.41458450740002,0.0 -8.269179735799291,39.41415828053063,0.0 -8.270334727388747,39.41371528145293,0.0 -8.27147462717861,39.41325725886119,0.0 -8.272594936155183,39.41278602086806,0.0 -8.273691232821086,39.41230342786075,0.0 -8.274759190647265,39.41181138514911,0.0 -8.275794595146964,39.41131183543456,0.0 -8.27679336050436,39.410806751130075,0.0 -8.277751545692263,39.41029812656137,0.0 -8.278665370015384,39.40978797008069,0.0 -8.279531228018012,39.40927829612428,0.0 -8.280345703697458,39.408771117245266,0.0 -8.281105583967403,39.40826843615362,0.0 -8.281807871318339,39.40777223779496,0.0 -8.282449795625427,39.40728448149961,0.0 -8.283028825057512,39.406807093233276,0.0 -8.283542676044659,39.406341957980175,0.0 -8.283989322265187,39.40589091228883,0.0 -8.2843670026172,39.40545573701033,0.0 -8.284674228143508,39.405038150257845,0.0 -8.284909787883024,39.40463980061534,0.0 -8.285072753625949,39.40426226062263,0.0 -8.285162483554338,39.40390702056226,0.0 -8.285178624754039,39.4035754825734,0.0 -8.285121114588422,39.40326895511555,0.0</coordinates>
Expand Down
13 changes: 11 additions & 2 deletions docs/notebooks/monte_carlo_analysis/monte_carlo_class_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,18 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 78,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The autoreload extension is already loaded. To reload it, use:\n",
" %reload_ext autoreload\n"
]
}
],
"source": [
"# We import these lines for debugging purposes, only works on Jupyter Notebook\n",
"%load_ext autoreload\n",
Expand Down

0 comments on commit ebf6bd0

Please sign in to comment.