From 4e771046fa2070fb2a70d91d719244e0a05e3cc0 Mon Sep 17 00:00:00 2001 From: Krafpy Date: Thu, 21 Jul 2022 23:53:05 +0200 Subject: [PATCH] Added JNSQ. --- data/jnsq/bodies.yml | 664 +++++++++++++++++++++++++++++++++++++++++++ data/jnsq/config.yml | 68 +++++ data/systems.yml | 3 + 3 files changed, 735 insertions(+) create mode 100644 data/jnsq/bodies.yml create mode 100644 data/jnsq/config.yml diff --git a/data/jnsq/bodies.yml b/data/jnsq/bodies.yml new file mode 100644 index 0000000..797c625 --- /dev/null +++ b/data/jnsq/bodies.yml @@ -0,0 +1,664 @@ +# JNSQ bodies physical and orbital data +# File made by jmking628 (https://github.com/jmking628) + +# Units +# radius: m +# mass: kg +# stdGravParam: m^3/s^2 +# soi: m +# apoapsis: m +# periapsis: m +# eccentricity: None +# inclination: ° (degrees) +# argOfPeriapsis: ° +# ascNodeLongitude: ° +# meanAnomaly: rad, at 0s UT +# sideralPeriod: s + + +# EDIT NOTES FOR CUSTOM SOLAR SYSTEMS + +# - Follow the exact same format (names, indentations) as used in this file +# - Numerical data must follow the units described above +# - Each body has a unique ID, it must be an integer between 0 and N-1, where N is the number of bodies +# - The sun must have the ID 0 +# - The sun does not have an `orbit` attribute +# - The ID given to a body must be representative of its order in the solar system. +# For planets, it represents its order from the sun; for sattelites, its order +# from its attractor body. +# For example : +# Body : Sun | Moho | Eve | Gilly | Kerbin | Mun | Minmus ... +# ID : 0 | 1 | 2 | 3 | 4 | 5 | 6 ... +# - The blocks of data describing the bodies in this file must be ordered according to their ID. +# For example, the sun's data are written first, followed by Moho's data... etc. + + +- !!map + id: 0 + name: Sun + radius: 175_750_000 + mass: 1.25719e+29 + stdGravParam: 8.39056e+18 + soi: .inf + color: 0xffff00 + +- !!map + id: 1 + name: Moho + radius: 650_000 + mass: 1.80034e+22 + stdGravParam: 1.20156e+12 + soi: 26_572_000 + orbit: + semiMajorAxis: 14_522_400_000 + apoapsis: 17_426_880_000 + periapsis: 11_617_920_000 + eccentricity: 0.2 + inclination: 7 + argOfPeriapsis: 15 + ascNodeLongitude: 70 + sideralPeriod: 3_396_156.8 + meanAnomaly0: 0 + orbiting: 0 + color: 0xa88161 + +- !!map + id: 2 + name: Eve + radius: 2_050_000 + mass: 8.64500e+23 + stdGravParam: 5.76974e+13 + soi: 233_567_000 + orbit: + semiMajorAxis: 27_131_000_000 + apoapsis: 27_402_310_000 + periapsis: 26_859_690_000 + eccentricity: 0.01 + inclination: 2.1 + argOfPeriapsis: 0 + ascNodeLongitude: 15 + sideralPeriod: 9_693_648 + meanAnomaly0: 5.7 + orbiting: 0 + color: 0x6c20e4 + +- !!map + id: 3 + name: Gilly + radius: 30_000 + mass: 9.91820e+17 + stdGravParam: 6.61949e+7 + soi: 366_000 + orbit: + semiMajorAxis: 86_920_000 + apoapsis: 134_726_000 + periapsis: 39_114_000 + eccentricity: 0.55 + inclination: 12 + argOfPeriapsis: 10 + ascNodeLongitude: 80 + sideralPeriod: 670_334.4 + meanAnomaly0: 0 + orbiting: 2 + color: 0x6f5248 + +- !!map + id: 4 + name: Kerbin + radius: 1_600_000 + mass: 3.76157e+23 + stdGravParam: 2.51050e+13 + soi: 231_588_000 + orbit: + semiMajorAxis: 37_525_648_000 + apoapsis: 38_276_161_000 + periapsis: 36_775_135_000 + eccentricity: 0.02 + inclination: 0 + argOfPeriapsis: 0 + ascNodeLongitude: 0 + sideralPeriod: 15_768_000 + meanAnomaly0: 0 + orbiting: 0 + color: 0x8acac2 + +- !!map + id: 5 + name: Mun + radius: 400_000 + mass: 3.40892e+21 + stdGravParam: 2.27514e+11 + soi: 13_860_000 + orbit: + semiMajorAxis: 90_960_000 + apoapsis: 91_415_000 + periapsis: 90_505_000 + eccentricity: 0.005 + inclination: 0.5 + argOfPeriapsis: 165 + ascNodeLongitude: 45 + sideralPeriod: 1_087_862.4 + meanAnomaly0: 0 + orbiting: 4 + color: 0x6b6a76 + +- !!map + id: 6 + name: Minmus + radius: 160_000 + mass: 1.88079e+20 + stdGravParam: 1.25525e+10 + soi: 7_028_000 + orbit: + semiMajorAxis: 146_970_000 + apoapsis: 151_379_000 + periapsis: 142_561_000 + eccentricity: 0.03 + inclination: 6 + argOfPeriapsis: 315 + ascNodeLongitude: 75 + sideralPeriod: 2_234_304 + meanAnomaly0: 30 + orbiting: 4 + color: 0x5b4c68 + +- !!map + id: 7 + name: Duna + radius: 800_000 + mass: 3.19734e+22 + stdGravParam: 2.13393e+12 + soi: 131_664_000 + orbit: + semiMajorAxis: 57_189_100_000 + apoapsis: 60_105_744_000 + periapsis: 54_272_456_000 + eccentricity: 0.051 + inclination: 0.06 + argOfPeriapsis: 345 + ascNodeLongitude: 135.5 + sideralPeriod: 29_665_872 + meanAnomaly0: 0.9 + orbiting: 0 + color: 0xa23e28 + +- !!map + id: 8 + name: Ike + radius: 210_000 + mass: 3.88794e+20 + stdGravParam: 2.59484e+10 + soi: 6_286_000 + orbit: + semiMajorAxis: 36_680_000 + apoapsis: 37_780_000 + periapsis: 35_580_000 + eccentricity: 0.03 + inclination: 0.2 + argOfPeriapsis: 345 + ascNodeLongitude: 90 + sideralPeriod: 955_497.6 + meanAnomaly0: 180 + orbiting: 7 + color: 0x5d5d5f + +- !!map + id: 9 + name: Edna + radius: 260_000 + mass: 7.94632e+20 + stdGravParam: 5.30344e+10 + soi: 49_409_000 + orbit: + semiMajorAxis: 94_080_000_000 + apoapsis: 100_665_600_000 + periapsis: 87_494_400_000 + eccentricity: 0.07 + inclination: 3 + argOfPeriapsis: 310 + ascNodeLongitude: 30 + sideralPeriod: 62_594_229.6 + meanAnomaly0: 0 + orbiting: 0 + color: 0x8c5926 + +- !!map + id: 10 + name: Dak + radius: 20_000 + mass: 4.70196e+17 + stdGravParam: 3.13813e+7 + soi: 244_000 + orbit: + semiMajorAxis: 4_770_000 + apoapsis: 4_818_000 + periapsis: 4_722_000 + eccentricity: 0.01 + inclination: 10 + argOfPeriapsis: 90 + ascNodeLongitude: 120 + sideralPeriod: 284_234.4 + meanAnomaly0: 0 + orbiting: 9 + color: 0x808080 + +- !!map + id: 11 + name: Dres + radius: 360_000 + mass: 2.28515e+21 + stdGravParam: 1.52513e+11 + soi: 90_298_000 + orbit: + semiMajorAxis: 112_687_000_000 + apoapsis: 129_026_615_000 + periapsis: 96_347_385_000 + eccentricity: 0.145 + inclination: 5 + argOfPeriapsis: 90 + ascNodeLongitude: 280 + sideralPeriod: 82_053_518.4 + meanAnomaly0: 3.9 + orbiting: 0 + color: 0x5a4432 + +- !!map + id: 12 + name: Jool + radius: 14_000_000 + mass: 2.99515e+25 + stdGravParam: 1.99899e+15 + soi: 6_745_648_000 + orbit: + semiMajorAxis: 189_765_000_000 + apoapsis: 199_253_250_000 + periapsis: 180_276_750_000 + eccentricity: 0.05 + inclination: 1.304 + argOfPeriapsis: 30 + ascNodeLongitude: 52 + sideralPeriod: 179_313_696 + meanAnomaly0: 0.6 + orbiting: 0 + color: 0x548412 + +- !!map + id: 13 + name: Laythe + radius: 1_100_000 + mass: 1.03120e+23 + stdGravParam: 6.88231e+12 + soi: 9_067_000 + orbit: + semiMajorAxis: 87_640_000 + apoapsis: 88_516_000 + periapsis: 86_764_000 + eccentricity: 0.01 + inclination: 0.2 + argOfPeriapsis: 120 + ascNodeLongitude: 120 + sideralPeriod: 115_300.8 + meanAnomaly0: 180 + orbiting: 12 + color: 0x2c306a + +- !!map + id: 14 + name: Vall + radius: 550_000 + mass: 8.00068e+21 + stdGravParam: 5.33972e+11 + soi: 5_962_000 + orbit: + semiMajorAxis: 160_230_000 + apoapsis: 165_037_000 + periapsis: 155_423_000 + eccentricity: 0.03 + inclination: 0.3 + argOfPeriapsis: 270 + ascNodeLongitude: 90 + sideralPeriod: 285029.28 + meanAnomaly0: 180 + orbiting: 12 + color: 0x476c7c + +- !!map + id: 15 + name: Tylo + radius: 900_000 + mass: 3.80859e+22 + stdGravParam: 2.54188e+12 + soi: 20_348_000 + orbit: + semiMajorAxis: 292_950_000 + apoapsis: 295_880_000 + periapsis: 290_021_000 + eccentricity: 0.01 + inclination: 0.1 + argOfPeriapsis: 285 + ascNodeLongitude: 150 + sideralPeriod: 704_635.2 + meanAnomaly0: 270 + orbiting: 12 + color: 0x937575 + +- !!map + id: 16 + name: Bop + radius: 190_000 + mass: 2.65220e+20 + stdGravParam: 1.77010e+10 + soi: 5_553_000 + orbit: + semiMajorAxis: 582_970_000 + apoapsis: 719_968_000 + periapsis: 445_972_000 + eccentricity: 0.235 + inclination: 15 + argOfPeriapsis: 25 + ascNodeLongitude: 10 + sideralPeriod: 1_978_084.8 + meanAnomaly0: 270 + orbiting: 12 + color: 0x7f6d51 + +- !!map + id: 17 + name: Pol + radius: 130_000 + mass: 7.44967e+19 + stdGravParam: 4.97197e+9 + soi: 4_238_000 + orbit: + semiMajorAxis: 739_460_000 + apoapsis: 865_797_000 + periapsis: 613_123_000 + eccentricity: 0.17085 + inclination: 4.25 + argOfPeriapsis: 15 + ascNodeLongitude: 2 + sideralPeriod: 2_825_841.6 + meanAnomaly0: 1.8 + orbiting: 12 + color: 0x9ba078 + +- !!map + id: 18 + name: Lindor + radius: 8_000_000 + mass: 8.83969e+24 + stdGravParam: 5.89968e+14 + soi: 7_845_120_000 + orbit: + semiMajorAxis: 359_571_000_000 + apoapsis: 370_358_130_000 + periapsis: 348_783_870_000 + eccentricity: 0.03 + inclination: 1.7 + argOfPeriapsis: 75 + ascNodeLongitude: 80 + sideralPeriod: 467_694_648 + meanAnomaly0: 3.3 + orbiting: 0 + color: 0x4d8dcc + +- !!map + id: 19 + name: Krel + radius: 150_000 + mass: 9.91820e+19 + stdGravParam: 6.61949e+9 + soi: 614_000 + orbit: + semiMajorAxis: 58_600_000 + apoapsis: 59_772_000 + periapsis: 57_428_000 + eccentricity: 0.02 + inclination: 1.5 + argOfPeriapsis: 180 + ascNodeLongitude: 60 + sideralPeriod: 116_039.52 + meanAnomaly0: 3.14 + orbiting: 18 + color: 0x2c306a + +- !!map + id: 20 + name: Aden + radius: 300_000 + mass: 9.25699e+20 + stdGravParam: 6.17819e+10 + soi: 2_741_000 + orbit: + semiMajorAxis: 107_140_000 + apoapsis: 108_211_000 + periapsis: 106_069_000 + eccentricity: 0.01 + inclination: 0.25 + argOfPeriapsis: 30 + ascNodeLongitude: 120 + sideralPeriod: 286_873.92 + meanAnomaly0: 0 + orbiting: 18 + color: 0xb39980 + +- !!map + id: 21 + name: Huygen + radius: 670_000 + mass: 9.89396e+21 + stdGravParam: 6.60331e+11 + soi: 12_376_000 + orbit: + semiMajorAxis: 187_500_000 + apoapsis: 192_188_000 + periapsis: 182_813_000 + eccentricity: 0.025 + inclination: 0.75 + argOfPeriapsis: 60 + ascNodeLongitude: 150 + sideralPeriod: 664_156.8 + meanAnomaly0: 90 + orbiting: 18 + color: 0xcc7f33 + +- !!map + id: 22 + name: Riga + radius: 750_000 + mass: 1.48773e+22 + stdGravParam: 9.92923e+11 + soi: 24_040_000 + orbit: + semiMajorAxis: 309_380_000 + apoapsis: 318_661_000 + periapsis: 300_099_000 + eccentricity: 0.03 + inclination: 0.5 + argOfPeriapsis: 105 + ascNodeLongitude: 90 + meanAnomaly: 0.9 + sideralPeriod: 1_407_672 + meanAnomaly0: 180 + orbiting: 18 + color: 0x7f99b3 + +- !!map + id: 23 + name: Talos + radius: 500_000 + mass: 4.04075e+21 + stdGravParam: 2.69683e+11 + soi: 26_558_000 + orbit: + semiMajorAxis: 575_680_000 + apoapsis: 598_707_000 + periapsis: 552_653_000 + eccentricity: 0.04 + inclination: 1 + argOfPeriapsis: 285 + ascNodeLongitude: 180 + sideralPeriod: 3_573_028.8 + meanAnomaly0: 90 + orbiting: 12 + color: 0xb37f99 + +- !!map + id: 24 + name: Eeloo + radius: 600_000 + mass: 7.93456e+21 + stdGravParam: 5.29559e+11 + soi: 621_195_000 + orbit: + semiMajorAxis: 471_171_300_000 + apoapsis: 593_675_838_000 + periapsis: 348_666_762_000 + eccentricity: 0.26 + inclination: 6.15 + argOfPeriapsis: 260 + ascNodeLongitude: 50 + sideralPeriod: 701_534_088 + meanAnomaly0: 3.54 + orbiting: 0 + color: 0x686a6a + +- !!map + id: 25 + name: Celes + radius: 200_000 + mass: 2.35098e+20 + stdGravParam: 1.56906e+10 + soi: 7_782_000 + orbit: + semiMajorAxis: 31_800_000 + apoapsis: 33_390_000 + periapsis: 30_210_000 + eccentricity: 0.05 + inclination: 10 + argOfPeriapsis: 270 + ascNodeLongitude: 100 + sideralPeriod: 1_548_331.2 + meanAnomaly0: 0 + orbiting: 24 + color: 0xb3997f + +- !!map + id: 26 + name: Tam + radius: 10_000 + mass: 5.14277e+16 + stdGravParam: 3.43233e+6 + soi: 544_000 + orbit: + semiMajorAxis: 64_670_000 + apoapsis: 66_287_000 + periapsis: 63_053_000 + eccentricity: 0.025 + inclination: 9.5 + argOfPeriapsis: 210 + ascNodeLongitude: 105 + sideralPeriod: 4_490_208 + meanAnomaly0: 180 + orbiting: 24 + color: 0x664d33 + +- !!map + id: 27 + name: Hamek + radius: 450_000 + mass: 2.97546e+21 + stdGravParam: 1.98585e+11 + soi: 469_439_000 + orbit: + semiMajorAxis: 527_129_000_000 + apoapsis: 579_841_900_000 + periapsis: 474_416_100_000 + eccentricity: 0.1 + inclination: 4 + argOfPeriapsis: 175 + ascNodeLongitude: 165 + sideralPeriod: 830_153_664 + meanAnomaly0: 4.7 + orbiting: 0 + color: 0x8c5973 + +- !!map + id: 28 + name: Nara + radius: 3_600_000 + mass: 1.90430e+24 + stdGravParam: 1.27094e+14 + soi: 20_213_317_000 + orbit: + semiMajorAxis: 1_712_000_000_000 + apoapsis: 2_311_200_000_000 + periapsis: 1_112_800_000_000 + eccentricity: 0.35 + inclination: 20 + argOfPeriapsis: 150 + ascNodeLongitude: 90 + sideralPeriod: 4_858_909_200 + meanAnomaly0: 2.5 + orbiting: 0 + color: 0x4d7f7f + +- !!map + id: 29 + name: Amos + radius: 320_000 + mass: 9.02777e+20 + stdGravParam: 6.02521e+10 + soi: 2_616_000 + orbit: + semiMajorAxis: 55_880_000 + apoapsis: 56_439_000 + periapsis: 55_321_000 + eccentricity: 0.01 + inclination: 0.5 + argOfPeriapsis: 345 + ascNodeLongitude: 180 + sideralPeriod: 232_809.12 + meanAnomaly0: 180 + orbiting: 28 + color: 0x99b27f + +- !!map + id: 30 + name: Enon + radius: 700_000 + mass: 1.07998e+22 + stdGravParam: 7.20789e+11 + soi: 15_914_000 + orbit: + semiMajorAxis: 125_980_000 + apoapsis: 127_870_000 + periapsis: 124_090_000 + eccentricity: 0.015 + inclination: 0.2 + argOfPeriapsis: 0 + ascNodeLongitude: 270 + sideralPeriod: 788_097.6 + meanAnomaly0: 180 + orbiting: 28 + color: 0x7f99b2 + +- !!map + id: 31 + name: Prax + radius: 110_000 + mass: 3.55586e+19 + stdGravParam: 2.37321e+9 + soi: 9_653_000 + orbit: + semiMajorAxis: 751_900_000 + apoapsis: 1_052_660_000 + periapsis: 451_140_000 + eccentricity: 0.4 + inclination: 17 + argOfPeriapsis: 100 + ascNodeLongitude: 95 + sideralPeriod: 11_490_768 + meanAnomaly0: 0 + orbiting: 28 + color: 0xb2997f \ No newline at end of file diff --git a/data/jnsq/config.yml b/data/jnsq/config.yml new file mode 100644 index 0000000..deb3f11 --- /dev/null +++ b/data/jnsq/config.yml @@ -0,0 +1,68 @@ +# Configuration file for the application + +rendering: + scale: 1.0e-9 # scale of the objects compared to real values + fov: 75 # field of view of the camera + nearPlane: 0.0000001 # near plane distance + farPlane: 1000 # far plane distance + +solarSystem: + planetFarSize: 0.05 # size of planet sprites + satFarSize: 0.04 # size of satellites sprites + satDispRadii: 10 # minimum display distance of satellites (in radii of the scaled semi major axis) + spriteDispSOIMul: 18 # minimum display distance of sprites (in multiple of the SOI of the body to which they are attached) + mouseFocusDst: 25 # minimum distance to between body on screen and mouse to set focus (in pixels) + soiOpacity: 0.3 # the opacity of SOI spheres + +orbit: + satSampPoints: 1000 # sample points for satellites' orbits + planetSampPoints: 10000 # sample points for planets' orbits + orbitLineWidth: 1.5 # width of the rendered orbit lines + arcLineWidth: 2.25 # width of the rendered trajectory arc lines + +camera: + startDist: 100 # distance from sun of start + maxDist: 1500 # maximum distance that can be zoomed out + minDistRadii: 1.5 # minimum distance to a body, in radii of the focused body + dampingFactor: 0.5 # camera motion damping + rotateSpeed: 0.5 # camera rotation speed + +time: + hoursPerDay: 12 # number of hours in a day (Kerbal day) + daysPerYear: 365 # number of days per year (Kerbal year) + +flybySequence: + radiusSamples: 10 # number of samples radius samples to test when evaluating a sequence feasability + initVelMaxScale: 3 # upper bound of ejection velocity range, as factor of direct hohmann transfert to the next body + initVelSamples: 20 # number of samples for start body ejection between direct hohmann transfert and initVelMaxScale + maxPropositions: 15 # maximum number of sequences propositions after sequence generation + maxEvalStatuses: 100000 # maximum number status considered when evaluating a sequence before timeout + maxEvalSequences: 100000 # maximum number of sequences to evaluate + splitLimit: 2500 # maximum input chunk size per worker in the worker pool, exceeded if all workers are already used + +trajectorySearch: + splitLimit: 1000 # maximum input chunk size per worker in the worker pool, exceeded if all workers are already used + minCrossProba: 0.9 # The minimum crossover probability (CR) of the DE algorithm + maxCrossProba: 0.99 # The maximum crossover probability (CR) of the DE algorithm + crossProbaIncr: 8 # The exponential speed factor by which CR increases from its minium to maximum + diffWeight: 0.3 # differential weight (F) of the DE algorithm + depDVScaleMin: 1.01 # the minimum ejection velocity, in terms of scale of the minimum velocity required to escape the body + depDVScaleMax: 3 # the maximum ejection velocity + dsmOffsetMin: 0.01 # the minimum offset of a DSM on an interplanetary leg + dsmOffsetMax: 0.99 # the maximum offset of a DSM + minLegDuration: 21600 # the minimum duration of a leg (s) + fbRadiusMaxScale: 4 # the maximum periapsis height of a flyby orbit, in terms of times radius of the body + popSizeDimScale: 750 # the population size is equal to this value times the dimension of the search space (number of compnents agent vector) + maxGenerations: 300 # Maximum number of evolution iterations + +editor: + defaultOrigin: 3 # default origin body on start (index of Kerbin in the selector) + defaultDest: 0 # default destination body on start (index of Moho in the selector) + defaultAltitude: 150 # default altitude from the default body (in km above surface) + +workers: + progressStep: 250 # number of inputs processed per chunk before progress callback + +trajectoryDraw: + samplePoints: 2500 # number sample points for each tarjectory arc draw + spritesSize: 0.08 # size of the sprites for maneuvers, encounters, escapes \ No newline at end of file diff --git a/data/systems.yml b/data/systems.yml index 31a35d8..5859127 100644 --- a/data/systems.yml +++ b/data/systems.yml @@ -3,6 +3,9 @@ - name: Stock folderName: stock +- name: JNSQ + folderName: jnsq + # Template: # - name: New Solar System # folderName: new-solar-system \ No newline at end of file