flukt 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (787) hide show
  1. flukt-0.1.0/.clang-format +29 -0
  2. flukt-0.1.0/.gitattributes +11 -0
  3. flukt-0.1.0/.github/workflows/ci.yml +235 -0
  4. flukt-0.1.0/.github/workflows/release.yml +115 -0
  5. flukt-0.1.0/.gitignore +20 -0
  6. flukt-0.1.0/CHANGELOG.md +15 -0
  7. flukt-0.1.0/CMakeLists.txt +191 -0
  8. flukt-0.1.0/CMakePresets.json +86 -0
  9. flukt-0.1.0/CONTRIBUTING.md +43 -0
  10. flukt-0.1.0/LICENSE +21 -0
  11. flukt-0.1.0/PKG-INFO +195 -0
  12. flukt-0.1.0/README.md +162 -0
  13. flukt-0.1.0/SECURITY.md +18 -0
  14. flukt-0.1.0/apps/CMakeLists.txt +49 -0
  15. flukt-0.1.0/apps/embedded.hpp +23 -0
  16. flukt-0.1.0/apps/flukt_cli.cpp +1623 -0
  17. flukt-0.1.0/bench/CMakeLists.txt +4 -0
  18. flukt-0.1.0/bench/rocket_benchmark.cpp +272 -0
  19. flukt-0.1.0/bindings/c/CMakeLists.txt +12 -0
  20. flukt-0.1.0/bindings/c/flukt_c.cpp +842 -0
  21. flukt-0.1.0/bindings/fmi/CMakeLists.txt +13 -0
  22. flukt-0.1.0/bindings/fmi/flukt_fmu.cpp +683 -0
  23. flukt-0.1.0/bindings/fmi/fmi3_unsupported.inc +247 -0
  24. flukt-0.1.0/bindings/python/CMakeLists.txt +77 -0
  25. flukt-0.1.0/bindings/python/flukt/__init__.py +129 -0
  26. flukt-0.1.0/bindings/python/flukt/__main__.py +31 -0
  27. flukt-0.1.0/bindings/python/module.cpp +1380 -0
  28. flukt-0.1.0/bindings/wasm/CMakeLists.txt +66 -0
  29. flukt-0.1.0/bindings/wasm/demo/demo.html +426 -0
  30. flukt-0.1.0/bindings/wasm/flukt_wasm.cpp +738 -0
  31. flukt-0.1.0/cmake/EmbedFiles.cmake +87 -0
  32. flukt-0.1.0/cmake/FluktOptions.cmake +26 -0
  33. flukt-0.1.0/cmake/FluktPlugin.cmake +13 -0
  34. flukt-0.1.0/cmake/GenerateRevision.cmake +34 -0
  35. flukt-0.1.0/cmake/MakeDemo.cmake +40 -0
  36. flukt-0.1.0/cmake/fluktConfig.cmake.in +13 -0
  37. flukt-0.1.0/cmake/flukt_version.hpp.in +3 -0
  38. flukt-0.1.0/docs/aircraft.md +146 -0
  39. flukt-0.1.0/docs/analysis.md +175 -0
  40. flukt-0.1.0/docs/batch_runs_and_optimisation.md +109 -0
  41. flukt-0.1.0/docs/c_and_javascript.md +124 -0
  42. flukt-0.1.0/docs/conventions.md +103 -0
  43. flukt-0.1.0/docs/cpp.md +132 -0
  44. flukt-0.1.0/docs/design/cpp20.md +42 -0
  45. flukt-0.1.0/docs/design/groups.md +248 -0
  46. flukt-0.1.0/docs/design/vehicle_files.md +300 -0
  47. flukt-0.1.0/docs/fmu.md +43 -0
  48. flukt-0.1.0/docs/frames_and_time.md +169 -0
  49. flukt-0.1.0/docs/groups.md +300 -0
  50. flukt-0.1.0/docs/guidance_and_control.md +125 -0
  51. flukt-0.1.0/docs/lua.md +108 -0
  52. flukt-0.1.0/docs/orbits.md +312 -0
  53. flukt-0.1.0/docs/plugins.md +69 -0
  54. flukt-0.1.0/docs/reference.md +1199 -0
  55. flukt-0.1.0/docs/results.md +132 -0
  56. flukt-0.1.0/docs/sensing.md +177 -0
  57. flukt-0.1.0/docs/sensors.md +167 -0
  58. flukt-0.1.0/docs/simplifications.md +169 -0
  59. flukt-0.1.0/docs/spacecraft.md +122 -0
  60. flukt-0.1.0/docs/turbulence.md +135 -0
  61. flukt-0.1.0/docs/units.md +56 -0
  62. flukt-0.1.0/docs/user_guide.md +509 -0
  63. flukt-0.1.0/docs/validation.md +271 -0
  64. flukt-0.1.0/docs/vehicle_physics.md +192 -0
  65. flukt-0.1.0/docs/vehicles.md +276 -0
  66. flukt-0.1.0/docs/writing_configurations.md +139 -0
  67. flukt-0.1.0/examples/README.md +84 -0
  68. flukt-0.1.0/examples/airport_radar.jsonc +63 -0
  69. flukt-0.1.0/examples/airship.jsonc +126 -0
  70. flukt-0.1.0/examples/camera_drone.jsonc +55 -0
  71. flukt-0.1.0/examples/camera_drone.py +93 -0
  72. flukt-0.1.0/examples/camera_drone_group.jsonc +53 -0
  73. flukt-0.1.0/examples/chase/chase.jsonc +41 -0
  74. flukt-0.1.0/examples/chase/chase.lua +46 -0
  75. flukt-0.1.0/examples/chase/drone.jsonc +51 -0
  76. flukt-0.1.0/examples/compare_with_astropy.py +70 -0
  77. flukt-0.1.0/examples/controlled_rocket.jsonc +73 -0
  78. flukt-0.1.0/examples/cubesat_detumble.jsonc +75 -0
  79. flukt-0.1.0/examples/data/gem_t1_8x8.gfc +58 -0
  80. flukt-0.1.0/examples/data/small_motor.csv +9 -0
  81. flukt-0.1.0/examples/data/small_rocket_cd.csv +9 -0
  82. flukt-0.1.0/examples/earth_orientation.jsonc +47 -0
  83. flukt-0.1.0/examples/f16.jsonc +67 -0
  84. flukt-0.1.0/examples/f16_circle.jsonc +44 -0
  85. flukt-0.1.0/examples/f16_landing.jsonc +106 -0
  86. flukt-0.1.0/examples/f16_turbulence.jsonc +45 -0
  87. flukt-0.1.0/examples/first_stage_impact.py +77 -0
  88. flukt-0.1.0/examples/five_phase_rocket.jsonc +68 -0
  89. flukt-0.1.0/examples/flat_earth_rocket.jsonc +56 -0
  90. flukt-0.1.0/examples/launch_to_orbit.jsonc +82 -0
  91. flukt-0.1.0/examples/light_aircraft.jsonc +171 -0
  92. flukt-0.1.0/examples/lua/drone.lua +36 -0
  93. flukt-0.1.0/examples/lua/recovery.lua +58 -0
  94. flukt-0.1.0/examples/lua_recovery.jsonc +54 -0
  95. flukt-0.1.0/examples/lunar_orbit.jsonc +46 -0
  96. flukt-0.1.0/examples/mars_entry.jsonc +52 -0
  97. flukt-0.1.0/examples/monte_carlo_rocket.jsonc +60 -0
  98. flukt-0.1.0/examples/optimize_launch_to_orbit.py +152 -0
  99. flukt-0.1.0/examples/plot_trajectory.py +57 -0
  100. flukt-0.1.0/examples/plugins/airbrake/CMakeLists.txt +22 -0
  101. flukt-0.1.0/examples/plugins/airbrake/airbrake_plugin.c +238 -0
  102. flukt-0.1.0/examples/plugins/airbrake/airbrake_rocket.jsonc +59 -0
  103. flukt-0.1.0/examples/rendezvous/approach.lua +45 -0
  104. flukt-0.1.0/examples/rendezvous/chaser.jsonc +50 -0
  105. flukt-0.1.0/examples/rendezvous/radar_approach.jsonc +70 -0
  106. flukt-0.1.0/examples/rendezvous/rendezvous.jsonc +43 -0
  107. flukt-0.1.0/examples/rendezvous/station.jsonc +21 -0
  108. flukt-0.1.0/examples/rendezvous/tracked.lua +95 -0
  109. flukt-0.1.0/examples/rocket_sensors.jsonc +46 -0
  110. flukt-0.1.0/examples/round_earth_rocket.jsonc +57 -0
  111. flukt-0.1.0/examples/satellite_decay.jsonc +51 -0
  112. flukt-0.1.0/examples/satellite_orbit.jsonc +60 -0
  113. flukt-0.1.0/examples/six_dof_rocket.jsonc +44 -0
  114. flukt-0.1.0/examples/stages/first_stage.jsonc +28 -0
  115. flukt-0.1.0/examples/stages/stages.jsonc +33 -0
  116. flukt-0.1.0/examples/vehicles/example_first_stage/vehicle.jsonc +44 -0
  117. flukt-0.1.0/examples/vehicles/example_launcher/checks/ascent.jsonc +38 -0
  118. flukt-0.1.0/examples/vehicles/example_launcher/checks/ascent_reference.csv +33 -0
  119. flukt-0.1.0/examples/vehicles/example_launcher/data/drag_coefficient.csv +8 -0
  120. flukt-0.1.0/examples/vehicles/example_launcher/vehicle.jsonc +108 -0
  121. flukt-0.1.0/examples/vehicles/example_rocket/checks/ballistic.jsonc +34 -0
  122. flukt-0.1.0/examples/vehicles/example_rocket/checks/ballistic_reference.csv +59 -0
  123. flukt-0.1.0/examples/vehicles/example_rocket/data/drag_coefficient.csv +9 -0
  124. flukt-0.1.0/examples/vehicles/example_rocket/data/motor.csv +9 -0
  125. flukt-0.1.0/examples/vehicles/example_rocket/vehicle.jsonc +124 -0
  126. flukt-0.1.0/examples/vehicles/example_satellite/vehicle.jsonc +41 -0
  127. flukt-0.1.0/examples/vehicles/f16/checks/level_flight.jsonc +33 -0
  128. flukt-0.1.0/examples/vehicles/f16/checks/level_flight_reference.csv +26 -0
  129. flukt-0.1.0/examples/vehicles/f16/data/f16_aero.jsonc +382 -0
  130. flukt-0.1.0/examples/vehicles/f16/data/f16_control.jsonc +208 -0
  131. flukt-0.1.0/examples/vehicles/f16/data/f16_gnc.jsonc +235 -0
  132. flukt-0.1.0/examples/vehicles/f16/data/f16_inertia.jsonc +47 -0
  133. flukt-0.1.0/examples/vehicles/f16/data/f16_prop.jsonc +98 -0
  134. flukt-0.1.0/examples/vehicles/f16/vehicle.jsonc +179 -0
  135. flukt-0.1.0/examples/weather_balloon.jsonc +83 -0
  136. flukt-0.1.0/include/flukt/core/block.hpp +131 -0
  137. flukt-0.1.0/include/flukt/core/definition.hpp +101 -0
  138. flukt-0.1.0/include/flukt/core/error.hpp +69 -0
  139. flukt-0.1.0/include/flukt/core/expression.hpp +155 -0
  140. flukt-0.1.0/include/flukt/core/schedule.hpp +70 -0
  141. flukt-0.1.0/include/flukt/core/units.hpp +87 -0
  142. flukt-0.1.0/include/flukt/core/variables.hpp +120 -0
  143. flukt-0.1.0/include/flukt/flukt.h +287 -0
  144. flukt-0.1.0/include/flukt/flukt.hpp +28 -0
  145. flukt-0.1.0/include/flukt/flukt_plugin.h +185 -0
  146. flukt-0.1.0/include/flukt/frames/bodies.hpp +46 -0
  147. flukt-0.1.0/include/flukt/frames/earth.hpp +51 -0
  148. flukt-0.1.0/include/flukt/frames/ephemeris.hpp +91 -0
  149. flukt-0.1.0/include/flukt/frames/jpl.hpp +83 -0
  150. flukt-0.1.0/include/flukt/frames/orientation.hpp +202 -0
  151. flukt-0.1.0/include/flukt/integrators/runge_kutta.hpp +186 -0
  152. flukt-0.1.0/include/flukt/io/downloads.hpp +24 -0
  153. flukt-0.1.0/include/flukt/io/files.hpp +60 -0
  154. flukt-0.1.0/include/flukt/io/fmu.hpp +56 -0
  155. flukt-0.1.0/include/flukt/io/json.hpp +37 -0
  156. flukt-0.1.0/include/flukt/io/output.hpp +75 -0
  157. flukt-0.1.0/include/flukt/io/sha256.hpp +11 -0
  158. flukt-0.1.0/include/flukt/io/tables.hpp +96 -0
  159. flukt-0.1.0/include/flukt/math/mat3.hpp +150 -0
  160. flukt-0.1.0/include/flukt/math/matrix.hpp +59 -0
  161. flukt-0.1.0/include/flukt/math/quat.hpp +175 -0
  162. flukt-0.1.0/include/flukt/math/random.hpp +66 -0
  163. flukt-0.1.0/include/flukt/math/roots.hpp +93 -0
  164. flukt-0.1.0/include/flukt/math/table.hpp +224 -0
  165. flukt-0.1.0/include/flukt/math/vec3.hpp +108 -0
  166. flukt-0.1.0/include/flukt/models/geomag.hpp +32 -0
  167. flukt-0.1.0/include/flukt/models/nrlmsise00.hpp +40 -0
  168. flukt-0.1.0/include/flukt/models/physics.hpp +86 -0
  169. flukt-0.1.0/include/flukt/models/plugins.hpp +45 -0
  170. flukt-0.1.0/include/flukt/models/registry.hpp +343 -0
  171. flukt-0.1.0/include/flukt/models/sgp4.hpp +90 -0
  172. flukt-0.1.0/include/flukt/models/space_weather.hpp +61 -0
  173. flukt-0.1.0/include/flukt/models/terrain.hpp +68 -0
  174. flukt-0.1.0/include/flukt/models/turbulence.hpp +46 -0
  175. flukt-0.1.0/include/flukt/script/lua.hpp +149 -0
  176. flukt-0.1.0/include/flukt/sim/action.hpp +68 -0
  177. flukt-0.1.0/include/flukt/sim/analysis.hpp +95 -0
  178. flukt-0.1.0/include/flukt/sim/batch.hpp +124 -0
  179. flukt-0.1.0/include/flukt/sim/callbacks.hpp +29 -0
  180. flukt-0.1.0/include/flukt/sim/config.hpp +127 -0
  181. flukt-0.1.0/include/flukt/sim/frames.hpp +82 -0
  182. flukt-0.1.0/include/flukt/sim/group.hpp +395 -0
  183. flukt-0.1.0/include/flukt/sim/model.hpp +254 -0
  184. flukt-0.1.0/include/flukt/sim/reference.hpp +63 -0
  185. flukt-0.1.0/include/flukt/sim/simulation.hpp +404 -0
  186. flukt-0.1.0/include/flukt/sim/summary.hpp +67 -0
  187. flukt-0.1.0/include/flukt/sim/vehicle.hpp +59 -0
  188. flukt-0.1.0/include/flukt/time/time.hpp +104 -0
  189. flukt-0.1.0/include/flukt/version.hpp +14 -0
  190. flukt-0.1.0/pyproject.toml +73 -0
  191. flukt-0.1.0/schema/flukt-group.schema.json +708 -0
  192. flukt-0.1.0/schema/flukt-vehicle.schema.json +2455 -0
  193. flukt-0.1.0/schema/flukt.schema.json +3580 -0
  194. flukt-0.1.0/src/core/definition.cpp +809 -0
  195. flukt-0.1.0/src/core/error.cpp +70 -0
  196. flukt-0.1.0/src/core/expression.cpp +1073 -0
  197. flukt-0.1.0/src/core/schedule.cpp +544 -0
  198. flukt-0.1.0/src/core/units.cpp +520 -0
  199. flukt-0.1.0/src/core/variables.cpp +233 -0
  200. flukt-0.1.0/src/frames/body_data.cpp +159 -0
  201. flukt-0.1.0/src/frames/earth.cpp +81 -0
  202. flukt-0.1.0/src/frames/eop_files.cpp +208 -0
  203. flukt-0.1.0/src/frames/ephemeris.cpp +238 -0
  204. flukt-0.1.0/src/frames/jpl.cpp +389 -0
  205. flukt-0.1.0/src/frames/orientation.cpp +605 -0
  206. flukt-0.1.0/src/integrators/runge_kutta.cpp +1039 -0
  207. flukt-0.1.0/src/io/downloads.cpp +39 -0
  208. flukt-0.1.0/src/io/files.cpp +98 -0
  209. flukt-0.1.0/src/io/fmu.cpp +570 -0
  210. flukt-0.1.0/src/io/json.cpp +108 -0
  211. flukt-0.1.0/src/io/output.cpp +297 -0
  212. flukt-0.1.0/src/io/sha256.cpp +101 -0
  213. flukt-0.1.0/src/io/tables.cpp +1022 -0
  214. flukt-0.1.0/src/math/matrix.cpp +425 -0
  215. flukt-0.1.0/src/math/table.cpp +81 -0
  216. flukt-0.1.0/src/models/aircraft.cpp +169 -0
  217. flukt-0.1.0/src/models/builtin.cpp +576 -0
  218. flukt-0.1.0/src/models/builtin6dof.cpp +309 -0
  219. flukt-0.1.0/src/models/control.cpp +259 -0
  220. flukt-0.1.0/src/models/entry.cpp +188 -0
  221. flukt-0.1.0/src/models/fluid.cpp +250 -0
  222. flukt-0.1.0/src/models/geomag.cpp +143 -0
  223. flukt-0.1.0/src/models/geomag_data.cpp +812 -0
  224. flukt-0.1.0/src/models/geomag_data.hpp +25 -0
  225. flukt-0.1.0/src/models/ground.cpp +300 -0
  226. flukt-0.1.0/src/models/harmonic_sum.cpp +108 -0
  227. flukt-0.1.0/src/models/harmonic_sum.hpp +40 -0
  228. flukt-0.1.0/src/models/magnetic.cpp +225 -0
  229. flukt-0.1.0/src/models/nrlmsise00.cpp +891 -0
  230. flukt-0.1.0/src/models/nrlmsise00_data.cpp +769 -0
  231. flukt-0.1.0/src/models/nrlmsise00_data.hpp +24 -0
  232. flukt-0.1.0/src/models/orbital.cpp +825 -0
  233. flukt-0.1.0/src/models/parachute.cpp +243 -0
  234. flukt-0.1.0/src/models/physics.cpp +546 -0
  235. flukt-0.1.0/src/models/plates.cpp +396 -0
  236. flukt-0.1.0/src/models/plugins.cpp +855 -0
  237. flukt-0.1.0/src/models/propeller.cpp +143 -0
  238. flukt-0.1.0/src/models/registry.cpp +175 -0
  239. flukt-0.1.0/src/models/sensors.cpp +627 -0
  240. flukt-0.1.0/src/models/sgp4.cpp +904 -0
  241. flukt-0.1.0/src/models/space_weather.cpp +224 -0
  242. flukt-0.1.0/src/models/terrain.cpp +86 -0
  243. flukt-0.1.0/src/models/thermosphere.cpp +376 -0
  244. flukt-0.1.0/src/models/tides.cpp +792 -0
  245. flukt-0.1.0/src/models/tides_data.cpp +183 -0
  246. flukt-0.1.0/src/models/tides_data.hpp +29 -0
  247. flukt-0.1.0/src/models/tle.cpp +174 -0
  248. flukt-0.1.0/src/models/turbulence.cpp +637 -0
  249. flukt-0.1.0/src/models/wheels.cpp +127 -0
  250. flukt-0.1.0/src/script/lua.cpp +628 -0
  251. flukt-0.1.0/src/sim/action.cpp +52 -0
  252. flukt-0.1.0/src/sim/analysis_internal.hpp +136 -0
  253. flukt-0.1.0/src/sim/batch.cpp +419 -0
  254. flukt-0.1.0/src/sim/builder.cpp +4023 -0
  255. flukt-0.1.0/src/sim/builtin_blocks.cpp +1183 -0
  256. flukt-0.1.0/src/sim/builtin_blocks.hpp +135 -0
  257. flukt-0.1.0/src/sim/config.cpp +600 -0
  258. flukt-0.1.0/src/sim/frames.cpp +26 -0
  259. flukt-0.1.0/src/sim/group.cpp +2902 -0
  260. flukt-0.1.0/src/sim/initial_state.cpp +534 -0
  261. flukt-0.1.0/src/sim/initial_state.hpp +44 -0
  262. flukt-0.1.0/src/sim/linearize.cpp +612 -0
  263. flukt-0.1.0/src/sim/mass.cpp +343 -0
  264. flukt-0.1.0/src/sim/mass.hpp +127 -0
  265. flukt-0.1.0/src/sim/provenance.cpp +73 -0
  266. flukt-0.1.0/src/sim/provenance.hpp +48 -0
  267. flukt-0.1.0/src/sim/rates.cpp +82 -0
  268. flukt-0.1.0/src/sim/rates.hpp +62 -0
  269. flukt-0.1.0/src/sim/reference.cpp +1373 -0
  270. flukt-0.1.0/src/sim/sensitivities.cpp +686 -0
  271. flukt-0.1.0/src/sim/simulation.cpp +1719 -0
  272. flukt-0.1.0/src/sim/snapshot.cpp +382 -0
  273. flukt-0.1.0/src/sim/summary.cpp +344 -0
  274. flukt-0.1.0/src/sim/vehicle.cpp +1476 -0
  275. flukt-0.1.0/src/time/time.cpp +390 -0
  276. flukt-0.1.0/src/version.cpp +16 -0
  277. flukt-0.1.0/tests/CMakeLists.txt +73 -0
  278. flukt-0.1.0/tests/c/test_c_api.c +360 -0
  279. flukt-0.1.0/tests/cmake/check_package.cmake +33 -0
  280. flukt-0.1.0/tests/cmake/consumer/CMakeLists.txt +19 -0
  281. flukt-0.1.0/tests/cmake/consumer/consumer.cpp +28 -0
  282. flukt-0.1.0/tests/data/eop/README.md +8 -0
  283. flukt-0.1.0/tests/data/eop/eop_20_c04_extract.txt +23 -0
  284. flukt-0.1.0/tests/data/eop/finals2000A_extract.all +31 -0
  285. flukt-0.1.0/tests/data/f16/F16_aero.dml +4077 -0
  286. flukt-0.1.0/tests/data/f16/F16_control.dml +1187 -0
  287. flukt-0.1.0/tests/data/f16/F16_gnc.dml +1410 -0
  288. flukt-0.1.0/tests/data/f16/F16_inertia.dml +164 -0
  289. flukt-0.1.0/tests/data/f16/F16_prop.dml +930 -0
  290. flukt-0.1.0/tests/data/f16/README.md +19 -0
  291. flukt-0.1.0/tests/data/f16/f16_aero_checks.json +1669 -0
  292. flukt-0.1.0/tests/data/f16/f16_prop_checks.json +362 -0
  293. flukt-0.1.0/tests/data/frames/ephemeris_reference.json +276 -0
  294. flukt-0.1.0/tests/data/frames/iau_reference.json +400 -0
  295. flukt-0.1.0/tests/data/frames/make_ephemeris_reference.py +43 -0
  296. flukt-0.1.0/tests/data/frames/make_iau_reference.py +59 -0
  297. flukt-0.1.0/tests/data/frames/make_reference.py +168 -0
  298. flukt-0.1.0/tests/data/frames/reference.json +623 -0
  299. flukt-0.1.0/tests/data/geomag/WMM2025_TestValues.txt +118 -0
  300. flukt-0.1.0/tests/data/jpl/README.md +16 -0
  301. flukt-0.1.0/tests/data/jpl/de440s_extract.bsp +0 -0
  302. flukt-0.1.0/tests/data/jpl/jpl_reference.json +6959 -0
  303. flukt-0.1.0/tests/data/jpl/make_extracts.py +254 -0
  304. flukt-0.1.0/tests/data/jpl/moon_pa_de440_extract.bpc +0 -0
  305. flukt-0.1.0/tests/data/nesc/README.md +32 -0
  306. flukt-0.1.0/tests/data/nesc/atmos_01.csv +34 -0
  307. flukt-0.1.0/tests/data/nesc/atmos_02.csv +34 -0
  308. flukt-0.1.0/tests/data/nesc/atmos_03.csv +34 -0
  309. flukt-0.1.0/tests/data/nesc/atmos_04.csv +34 -0
  310. flukt-0.1.0/tests/data/nesc/atmos_05.csv +34 -0
  311. flukt-0.1.0/tests/data/nesc/atmos_06.csv +34 -0
  312. flukt-0.1.0/tests/data/nesc/atmos_07.csv +34 -0
  313. flukt-0.1.0/tests/data/nesc/atmos_08.csv +34 -0
  314. flukt-0.1.0/tests/data/nesc/atmos_09.csv +34 -0
  315. flukt-0.1.0/tests/data/nesc/atmos_10.csv +34 -0
  316. flukt-0.1.0/tests/data/nesc/atmos_11.csv +364 -0
  317. flukt-0.1.0/tests/data/nesc/atmos_12.csv +364 -0
  318. flukt-0.1.0/tests/data/nesc/atmos_13p1.csv +44 -0
  319. flukt-0.1.0/tests/data/nesc/atmos_13p2.csv +44 -0
  320. flukt-0.1.0/tests/data/nesc/atmos_13p3.csv +64 -0
  321. flukt-0.1.0/tests/data/nesc/atmos_13p4.csv +124 -0
  322. flukt-0.1.0/tests/data/nesc/atmos_15.csv +364 -0
  323. flukt-0.1.0/tests/data/nesc/atmos_16.csv +364 -0
  324. flukt-0.1.0/tests/data/nesc/make_envelopes.py +65 -0
  325. flukt-0.1.0/tests/data/nesc/make_f16_envelopes.py +73 -0
  326. flukt-0.1.0/tests/data/nesc_orbital/README.md +18 -0
  327. flukt-0.1.0/tests/data/nesc_orbital/gem_t1_8x8.gfc +58 -0
  328. flukt-0.1.0/tests/data/nesc_orbital/harmonics_reference.json +173 -0
  329. flukt-0.1.0/tests/data/nesc_orbital/make_envelopes.py +115 -0
  330. flukt-0.1.0/tests/data/nesc_orbital/make_harmonics_reference.py +86 -0
  331. flukt-0.1.0/tests/data/nesc_orbital/orbit_02.csv +27 -0
  332. flukt-0.1.0/tests/data/nesc_orbital/orbit_03_a.csv +27 -0
  333. flukt-0.1.0/tests/data/nesc_orbital/orbit_03_b.csv +27 -0
  334. flukt-0.1.0/tests/data/nesc_orbital/orbit_04.csv +27 -0
  335. flukt-0.1.0/tests/data/nesc_orbital/orbit_05_a.csv +27 -0
  336. flukt-0.1.0/tests/data/nesc_orbital/orbit_05_b.csv +27 -0
  337. flukt-0.1.0/tests/data/nesc_orbital/orbit_05_c.csv +27 -0
  338. flukt-0.1.0/tests/data/nesc_orbital/orbit_06_c.csv +27 -0
  339. flukt-0.1.0/tests/data/nesc_orbital/orbit_06_d.csv +27 -0
  340. flukt-0.1.0/tests/data/nesc_orbital/orbit_07_a.csv +27 -0
  341. flukt-0.1.0/tests/data/nesc_orbital/orbit_07_b.csv +27 -0
  342. flukt-0.1.0/tests/data/nesc_orbital/orbit_08_a.csv +27 -0
  343. flukt-0.1.0/tests/data/nesc_orbital/orbit_08_b.csv +27 -0
  344. flukt-0.1.0/tests/data/nesc_orbital/orbit_09_a.csv +27 -0
  345. flukt-0.1.0/tests/data/nesc_orbital/orbit_09_b.csv +27 -0
  346. flukt-0.1.0/tests/data/nesc_orbital/orbit_09_c.csv +27 -0
  347. flukt-0.1.0/tests/data/nesc_orbital/orbit_09_d.csv +27 -0
  348. flukt-0.1.0/tests/data/nesc_orbital/orbit_10_a.csv +27 -0
  349. flukt-0.1.0/tests/data/nesc_orbital/orbit_10_b.csv +27 -0
  350. flukt-0.1.0/tests/data/nesc_orbital/orbit_10_c.csv +27 -0
  351. flukt-0.1.0/tests/data/nesc_orbital/orbit_10_d.csv +27 -0
  352. flukt-0.1.0/tests/data/nrlmsise00/README.md +10 -0
  353. flukt-0.1.0/tests/data/nrlmsise00/make_reference.py +81 -0
  354. flukt-0.1.0/tests/data/nrlmsise00/reference.json +303 -0
  355. flukt-0.1.0/tests/data/orekit/README.md +16 -0
  356. flukt-0.1.0/tests/data/orekit/eigen6s_20x20.gfc +243 -0
  357. flukt-0.1.0/tests/data/orekit/fes2004_20x20.dat +3696 -0
  358. flukt-0.1.0/tests/data/orekit/make_plates.py +131 -0
  359. flukt-0.1.0/tests/data/orekit/make_reference.py +347 -0
  360. flukt-0.1.0/tests/data/orekit/make_stm.py +102 -0
  361. flukt-0.1.0/tests/data/orekit/orekit_plates.json +202 -0
  362. flukt-0.1.0/tests/data/orekit/orekit_reference.json +6980 -0
  363. flukt-0.1.0/tests/data/orekit/orekit_stm.json +137 -0
  364. flukt-0.1.0/tests/data/rocketpy/README.md +48 -0
  365. flukt-0.1.0/tests/data/rocketpy/make_rocketpy_reference.py +299 -0
  366. flukt-0.1.0/tests/data/rocketpy/rocketpy_flight.csv +388 -0
  367. flukt-0.1.0/tests/data/rocketpy/rocketpy_rocket.jsonc +164 -0
  368. flukt-0.1.0/tests/data/rocketpy/rocketpy_values.jsonc +1223 -0
  369. flukt-0.1.0/tests/data/sgp4/README.md +12 -0
  370. flukt-0.1.0/tests/data/sgp4/SGP4-VER.TLE +110 -0
  371. flukt-0.1.0/tests/data/sgp4/tcppver.out +700 -0
  372. flukt-0.1.0/tests/data/space_weather/README.md +7 -0
  373. flukt-0.1.0/tests/data/space_weather/sw_2024_may.csv +35 -0
  374. flukt-0.1.0/tests/python/test_aircraft_physics.py +118 -0
  375. flukt-0.1.0/tests/python/test_analysis.py +161 -0
  376. flukt-0.1.0/tests/python/test_batch.py +189 -0
  377. flukt-0.1.0/tests/python/test_cli.py +263 -0
  378. flukt-0.1.0/tests/python/test_control.py +132 -0
  379. flukt-0.1.0/tests/python/test_daveml.py +118 -0
  380. flukt-0.1.0/tests/python/test_flukt.py +196 -0
  381. flukt-0.1.0/tests/python/test_fmu.py +154 -0
  382. flukt-0.1.0/tests/python/test_formats.py +162 -0
  383. flukt-0.1.0/tests/python/test_frames.py +86 -0
  384. flukt-0.1.0/tests/python/test_groups.py +208 -0
  385. flukt-0.1.0/tests/python/test_lua.py +90 -0
  386. flukt-0.1.0/tests/python/test_plugins.py +91 -0
  387. flukt-0.1.0/tests/python/test_schema.py +98 -0
  388. flukt-0.1.0/tests/python/test_spacecraft.py +92 -0
  389. flukt-0.1.0/tests/python/test_units.py +129 -0
  390. flukt-0.1.0/tests/unit/main.cpp +2 -0
  391. flukt-0.1.0/tests/unit/test_6dof.cpp +265 -0
  392. flukt-0.1.0/tests/unit/test_accelerations.cpp +333 -0
  393. flukt-0.1.0/tests/unit/test_aircraft.cpp +344 -0
  394. flukt-0.1.0/tests/unit/test_batch.cpp +272 -0
  395. flukt-0.1.0/tests/unit/test_control.cpp +237 -0
  396. flukt-0.1.0/tests/unit/test_conventions.cpp +203 -0
  397. flukt-0.1.0/tests/unit/test_cpp_api.cpp +111 -0
  398. flukt-0.1.0/tests/unit/test_devices.cpp +181 -0
  399. flukt-0.1.0/tests/unit/test_environment.cpp +325 -0
  400. flukt-0.1.0/tests/unit/test_error_places.cpp +155 -0
  401. flukt-0.1.0/tests/unit/test_examples.cpp +574 -0
  402. flukt-0.1.0/tests/unit/test_expression.cpp +201 -0
  403. flukt-0.1.0/tests/unit/test_frames_time.cpp +533 -0
  404. flukt-0.1.0/tests/unit/test_ground.cpp +245 -0
  405. flukt-0.1.0/tests/unit/test_group.cpp +638 -0
  406. flukt-0.1.0/tests/unit/test_integrators.cpp +335 -0
  407. flukt-0.1.0/tests/unit/test_jpl.cpp +276 -0
  408. flukt-0.1.0/tests/unit/test_linearize.cpp +332 -0
  409. flukt-0.1.0/tests/unit/test_lua.cpp +354 -0
  410. flukt-0.1.0/tests/unit/test_magnetic.cpp +176 -0
  411. flukt-0.1.0/tests/unit/test_math.cpp +86 -0
  412. flukt-0.1.0/tests/unit/test_matrix.cpp +159 -0
  413. flukt-0.1.0/tests/unit/test_nrlmsise00.cpp +399 -0
  414. flukt-0.1.0/tests/unit/test_orbits.cpp +291 -0
  415. flukt-0.1.0/tests/unit/test_patterns.cpp +46 -0
  416. flukt-0.1.0/tests/unit/test_phases.cpp +354 -0
  417. flukt-0.1.0/tests/unit/test_physics.cpp +155 -0
  418. flukt-0.1.0/tests/unit/test_plugins.cpp +199 -0
  419. flukt-0.1.0/tests/unit/test_reference.cpp +127 -0
  420. flukt-0.1.0/tests/unit/test_schedule.cpp +176 -0
  421. flukt-0.1.0/tests/unit/test_sensing.cpp +391 -0
  422. flukt-0.1.0/tests/unit/test_sensitivities.cpp +326 -0
  423. flukt-0.1.0/tests/unit/test_sensors.cpp +303 -0
  424. flukt-0.1.0/tests/unit/test_sgp4.cpp +324 -0
  425. flukt-0.1.0/tests/unit/test_simulation.cpp +266 -0
  426. flukt-0.1.0/tests/unit/test_snapshot.cpp +142 -0
  427. flukt-0.1.0/tests/unit/test_spacecraft.cpp +220 -0
  428. flukt-0.1.0/tests/unit/test_summary.cpp +307 -0
  429. flukt-0.1.0/tests/unit/test_table.cpp +219 -0
  430. flukt-0.1.0/tests/unit/test_tables.cpp +237 -0
  431. flukt-0.1.0/tests/unit/test_tides.cpp +183 -0
  432. flukt-0.1.0/tests/unit/test_traceability.cpp +189 -0
  433. flukt-0.1.0/tests/unit/test_turbulence.cpp +408 -0
  434. flukt-0.1.0/tests/unit/test_units.cpp +346 -0
  435. flukt-0.1.0/tests/unit/test_variable_mass.cpp +331 -0
  436. flukt-0.1.0/tests/unit/test_variables.cpp +66 -0
  437. flukt-0.1.0/tests/unit/test_vehicles.cpp +823 -0
  438. flukt-0.1.0/tests/unit/test_version.cpp +16 -0
  439. flukt-0.1.0/tests/validation/reference_rocket.hpp +213 -0
  440. flukt-0.1.0/tests/validation/test_f16_models.cpp +74 -0
  441. flukt-0.1.0/tests/validation/test_nesc.cpp +296 -0
  442. flukt-0.1.0/tests/validation/test_nesc_f16.cpp +317 -0
  443. flukt-0.1.0/tests/validation/test_nesc_orbital.cpp +314 -0
  444. flukt-0.1.0/tests/validation/test_orekit.cpp +354 -0
  445. flukt-0.1.0/tests/validation/test_reference_rocket.cpp +59 -0
  446. flukt-0.1.0/tests/validation/test_rocketpy.cpp +230 -0
  447. flukt-0.1.0/tests/wasm/test_flukt.mjs +418 -0
  448. flukt-0.1.0/third_party/.clang-format +4 -0
  449. flukt-0.1.0/third_party/CMakeLists.txt +60 -0
  450. flukt-0.1.0/third_party/README.md +28 -0
  451. flukt-0.1.0/third_party/doctest/LICENSE.txt +21 -0
  452. flukt-0.1.0/third_party/doctest/include/doctest/doctest.h +9148 -0
  453. flukt-0.1.0/third_party/erfa/LICENSE +53 -0
  454. flukt-0.1.0/third_party/erfa/src/a2af.c +132 -0
  455. flukt-0.1.0/third_party/erfa/src/a2tf.c +128 -0
  456. flukt-0.1.0/third_party/erfa/src/ab.c +140 -0
  457. flukt-0.1.0/third_party/erfa/src/ae2hd.c +152 -0
  458. flukt-0.1.0/third_party/erfa/src/af2a.c +121 -0
  459. flukt-0.1.0/third_party/erfa/src/anp.c +96 -0
  460. flukt-0.1.0/third_party/erfa/src/anpm.c +96 -0
  461. flukt-0.1.0/third_party/erfa/src/apcg.c +183 -0
  462. flukt-0.1.0/third_party/erfa/src/apcg13.c +186 -0
  463. flukt-0.1.0/third_party/erfa/src/apci.c +192 -0
  464. flukt-0.1.0/third_party/erfa/src/apci13.c +204 -0
  465. flukt-0.1.0/third_party/erfa/src/apco.c +286 -0
  466. flukt-0.1.0/third_party/erfa/src/apco13.c +290 -0
  467. flukt-0.1.0/third_party/erfa/src/apcs.c +236 -0
  468. flukt-0.1.0/third_party/erfa/src/apcs13.c +193 -0
  469. flukt-0.1.0/third_party/erfa/src/aper.c +164 -0
  470. flukt-0.1.0/third_party/erfa/src/aper13.c +183 -0
  471. flukt-0.1.0/third_party/erfa/src/apio.c +232 -0
  472. flukt-0.1.0/third_party/erfa/src/apio13.c +262 -0
  473. flukt-0.1.0/third_party/erfa/src/atcc13.c +146 -0
  474. flukt-0.1.0/third_party/erfa/src/atccq.c +145 -0
  475. flukt-0.1.0/third_party/erfa/src/atci13.c +161 -0
  476. flukt-0.1.0/third_party/erfa/src/atciq.c +154 -0
  477. flukt-0.1.0/third_party/erfa/src/atciqn.c +193 -0
  478. flukt-0.1.0/third_party/erfa/src/atciqz.c +155 -0
  479. flukt-0.1.0/third_party/erfa/src/atco13.c +246 -0
  480. flukt-0.1.0/third_party/erfa/src/atic13.c +154 -0
  481. flukt-0.1.0/third_party/erfa/src/aticq.c +201 -0
  482. flukt-0.1.0/third_party/erfa/src/aticqn.c +239 -0
  483. flukt-0.1.0/third_party/erfa/src/atio13.c +225 -0
  484. flukt-0.1.0/third_party/erfa/src/atioq.c +250 -0
  485. flukt-0.1.0/third_party/erfa/src/atoc13.c +237 -0
  486. flukt-0.1.0/third_party/erfa/src/atoi13.c +232 -0
  487. flukt-0.1.0/third_party/erfa/src/atoiq.c +264 -0
  488. flukt-0.1.0/third_party/erfa/src/bi00.c +129 -0
  489. flukt-0.1.0/third_party/erfa/src/bp00.c +184 -0
  490. flukt-0.1.0/third_party/erfa/src/bp06.c +155 -0
  491. flukt-0.1.0/third_party/erfa/src/bpn2xy.c +111 -0
  492. flukt-0.1.0/third_party/erfa/src/c2i00a.c +150 -0
  493. flukt-0.1.0/third_party/erfa/src/c2i00b.c +150 -0
  494. flukt-0.1.0/third_party/erfa/src/c2i06a.c +147 -0
  495. flukt-0.1.0/third_party/erfa/src/c2ibpn.c +153 -0
  496. flukt-0.1.0/third_party/erfa/src/c2ixy.c +142 -0
  497. flukt-0.1.0/third_party/erfa/src/c2ixys.c +134 -0
  498. flukt-0.1.0/third_party/erfa/src/c2s.c +107 -0
  499. flukt-0.1.0/third_party/erfa/src/c2t00a.c +165 -0
  500. flukt-0.1.0/third_party/erfa/src/c2t00b.c +161 -0
  501. flukt-0.1.0/third_party/erfa/src/c2t06a.c +163 -0
  502. flukt-0.1.0/third_party/erfa/src/c2tcio.c +133 -0
  503. flukt-0.1.0/third_party/erfa/src/c2teqx.c +133 -0
  504. flukt-0.1.0/third_party/erfa/src/c2tpe.c +178 -0
  505. flukt-0.1.0/third_party/erfa/src/c2txy.c +170 -0
  506. flukt-0.1.0/third_party/erfa/src/cal2jd.c +153 -0
  507. flukt-0.1.0/third_party/erfa/src/cp.c +91 -0
  508. flukt-0.1.0/third_party/erfa/src/cpv.c +93 -0
  509. flukt-0.1.0/third_party/erfa/src/cr.c +94 -0
  510. flukt-0.1.0/third_party/erfa/src/d2dtf.c +250 -0
  511. flukt-0.1.0/third_party/erfa/src/d2tf.c +172 -0
  512. flukt-0.1.0/third_party/erfa/src/dat.c +314 -0
  513. flukt-0.1.0/third_party/erfa/src/dtdb.c +1227 -0
  514. flukt-0.1.0/third_party/erfa/src/dtf2d.c +217 -0
  515. flukt-0.1.0/third_party/erfa/src/eceq06.c +145 -0
  516. flukt-0.1.0/third_party/erfa/src/ecm06.c +148 -0
  517. flukt-0.1.0/third_party/erfa/src/ee00.c +141 -0
  518. flukt-0.1.0/third_party/erfa/src/ee00a.c +148 -0
  519. flukt-0.1.0/third_party/erfa/src/ee00b.c +154 -0
  520. flukt-0.1.0/third_party/erfa/src/ee06a.c +135 -0
  521. flukt-0.1.0/third_party/erfa/src/eect00.c +296 -0
  522. flukt-0.1.0/third_party/erfa/src/eform.c +160 -0
  523. flukt-0.1.0/third_party/erfa/src/eo06a.c +144 -0
  524. flukt-0.1.0/third_party/erfa/src/eors.c +121 -0
  525. flukt-0.1.0/third_party/erfa/src/epb.c +119 -0
  526. flukt-0.1.0/third_party/erfa/src/epb2jd.c +103 -0
  527. flukt-0.1.0/third_party/erfa/src/epj.c +121 -0
  528. flukt-0.1.0/third_party/erfa/src/epj2jd.c +103 -0
  529. flukt-0.1.0/third_party/erfa/src/epv00.c +2603 -0
  530. flukt-0.1.0/third_party/erfa/src/eqec06.c +146 -0
  531. flukt-0.1.0/third_party/erfa/src/eqeq94.c +146 -0
  532. flukt-0.1.0/third_party/erfa/src/era00.c +150 -0
  533. flukt-0.1.0/third_party/erfa/src/erfa.h +589 -0
  534. flukt-0.1.0/third_party/erfa/src/erfadatextra.c +93 -0
  535. flukt-0.1.0/third_party/erfa/src/erfadatextra.h +26 -0
  536. flukt-0.1.0/third_party/erfa/src/erfaextra.h +81 -0
  537. flukt-0.1.0/third_party/erfa/src/erfam.h +180 -0
  538. flukt-0.1.0/third_party/erfa/src/erfaversion.c +42 -0
  539. flukt-0.1.0/third_party/erfa/src/fad03.c +117 -0
  540. flukt-0.1.0/third_party/erfa/src/fae03.c +116 -0
  541. flukt-0.1.0/third_party/erfa/src/faf03.c +119 -0
  542. flukt-0.1.0/third_party/erfa/src/faju03.c +116 -0
  543. flukt-0.1.0/third_party/erfa/src/fal03.c +117 -0
  544. flukt-0.1.0/third_party/erfa/src/falp03.c +117 -0
  545. flukt-0.1.0/third_party/erfa/src/fama03.c +116 -0
  546. flukt-0.1.0/third_party/erfa/src/fame03.c +116 -0
  547. flukt-0.1.0/third_party/erfa/src/fane03.c +113 -0
  548. flukt-0.1.0/third_party/erfa/src/faom03.c +118 -0
  549. flukt-0.1.0/third_party/erfa/src/fapa03.c +116 -0
  550. flukt-0.1.0/third_party/erfa/src/fasa03.c +116 -0
  551. flukt-0.1.0/third_party/erfa/src/faur03.c +113 -0
  552. flukt-0.1.0/third_party/erfa/src/fave03.c +116 -0
  553. flukt-0.1.0/third_party/erfa/src/fk425.c +283 -0
  554. flukt-0.1.0/third_party/erfa/src/fk45z.c +213 -0
  555. flukt-0.1.0/third_party/erfa/src/fk524.c +295 -0
  556. flukt-0.1.0/third_party/erfa/src/fk52h.c +154 -0
  557. flukt-0.1.0/third_party/erfa/src/fk54z.c +154 -0
  558. flukt-0.1.0/third_party/erfa/src/fk5hip.c +138 -0
  559. flukt-0.1.0/third_party/erfa/src/fk5hz.c +172 -0
  560. flukt-0.1.0/third_party/erfa/src/fw2m.c +150 -0
  561. flukt-0.1.0/third_party/erfa/src/fw2xy.c +132 -0
  562. flukt-0.1.0/third_party/erfa/src/g2icrs.c +173 -0
  563. flukt-0.1.0/third_party/erfa/src/gc2gd.c +148 -0
  564. flukt-0.1.0/third_party/erfa/src/gc2gde.c +213 -0
  565. flukt-0.1.0/third_party/erfa/src/gd2gc.c +147 -0
  566. flukt-0.1.0/third_party/erfa/src/gd2gce.c +151 -0
  567. flukt-0.1.0/third_party/erfa/src/gmst00.c +159 -0
  568. flukt-0.1.0/third_party/erfa/src/gmst06.c +150 -0
  569. flukt-0.1.0/third_party/erfa/src/gmst82.c +164 -0
  570. flukt-0.1.0/third_party/erfa/src/gst00a.c +151 -0
  571. flukt-0.1.0/third_party/erfa/src/gst00b.c +159 -0
  572. flukt-0.1.0/third_party/erfa/src/gst06.c +153 -0
  573. flukt-0.1.0/third_party/erfa/src/gst06a.c +144 -0
  574. flukt-0.1.0/third_party/erfa/src/gst94.c +144 -0
  575. flukt-0.1.0/third_party/erfa/src/h2fk5.c +159 -0
  576. flukt-0.1.0/third_party/erfa/src/hd2ae.c +153 -0
  577. flukt-0.1.0/third_party/erfa/src/hd2pa.c +126 -0
  578. flukt-0.1.0/third_party/erfa/src/hfk5z.c +187 -0
  579. flukt-0.1.0/third_party/erfa/src/icrs2g.c +172 -0
  580. flukt-0.1.0/third_party/erfa/src/ir.c +94 -0
  581. flukt-0.1.0/third_party/erfa/src/jd2cal.c +212 -0
  582. flukt-0.1.0/third_party/erfa/src/jdcalf.c +187 -0
  583. flukt-0.1.0/third_party/erfa/src/ld.c +164 -0
  584. flukt-0.1.0/third_party/erfa/src/ldn.c +186 -0
  585. flukt-0.1.0/third_party/erfa/src/ldsun.c +117 -0
  586. flukt-0.1.0/third_party/erfa/src/lteceq.c +142 -0
  587. flukt-0.1.0/third_party/erfa/src/ltecm.c +162 -0
  588. flukt-0.1.0/third_party/erfa/src/lteqec.c +142 -0
  589. flukt-0.1.0/third_party/erfa/src/ltp.c +144 -0
  590. flukt-0.1.0/third_party/erfa/src/ltpb.c +138 -0
  591. flukt-0.1.0/third_party/erfa/src/ltpecl.c +182 -0
  592. flukt-0.1.0/third_party/erfa/src/ltpequ.c +182 -0
  593. flukt-0.1.0/third_party/erfa/src/moon98.c +615 -0
  594. flukt-0.1.0/third_party/erfa/src/num00a.c +132 -0
  595. flukt-0.1.0/third_party/erfa/src/num00b.c +132 -0
  596. flukt-0.1.0/third_party/erfa/src/num06a.c +136 -0
  597. flukt-0.1.0/third_party/erfa/src/numat.c +120 -0
  598. flukt-0.1.0/third_party/erfa/src/nut00a.c +2059 -0
  599. flukt-0.1.0/third_party/erfa/src/nut00b.c +384 -0
  600. flukt-0.1.0/third_party/erfa/src/nut06a.c +165 -0
  601. flukt-0.1.0/third_party/erfa/src/nut80.c +337 -0
  602. flukt-0.1.0/third_party/erfa/src/nutm80.c +128 -0
  603. flukt-0.1.0/third_party/erfa/src/obl06.c +132 -0
  604. flukt-0.1.0/third_party/erfa/src/obl80.c +132 -0
  605. flukt-0.1.0/third_party/erfa/src/p06e.c +340 -0
  606. flukt-0.1.0/third_party/erfa/src/p2pv.c +94 -0
  607. flukt-0.1.0/third_party/erfa/src/p2s.c +102 -0
  608. flukt-0.1.0/third_party/erfa/src/pap.c +152 -0
  609. flukt-0.1.0/third_party/erfa/src/pas.c +109 -0
  610. flukt-0.1.0/third_party/erfa/src/pb06.c +163 -0
  611. flukt-0.1.0/third_party/erfa/src/pdp.c +97 -0
  612. flukt-0.1.0/third_party/erfa/src/pfw06.c +177 -0
  613. flukt-0.1.0/third_party/erfa/src/plan94.c +530 -0
  614. flukt-0.1.0/third_party/erfa/src/pm.c +89 -0
  615. flukt-0.1.0/third_party/erfa/src/pmat00.c +129 -0
  616. flukt-0.1.0/third_party/erfa/src/pmat06.c +137 -0
  617. flukt-0.1.0/third_party/erfa/src/pmat76.c +153 -0
  618. flukt-0.1.0/third_party/erfa/src/pmp.c +96 -0
  619. flukt-0.1.0/third_party/erfa/src/pmpx.c +156 -0
  620. flukt-0.1.0/third_party/erfa/src/pmsafe.c +208 -0
  621. flukt-0.1.0/third_party/erfa/src/pn.c +120 -0
  622. flukt-0.1.0/third_party/erfa/src/pn00.c +188 -0
  623. flukt-0.1.0/third_party/erfa/src/pn00a.c +174 -0
  624. flukt-0.1.0/third_party/erfa/src/pn00b.c +174 -0
  625. flukt-0.1.0/third_party/erfa/src/pn06.c +199 -0
  626. flukt-0.1.0/third_party/erfa/src/pn06a.c +164 -0
  627. flukt-0.1.0/third_party/erfa/src/pnm00a.c +132 -0
  628. flukt-0.1.0/third_party/erfa/src/pnm00b.c +132 -0
  629. flukt-0.1.0/third_party/erfa/src/pnm06a.c +136 -0
  630. flukt-0.1.0/third_party/erfa/src/pnm80.c +137 -0
  631. flukt-0.1.0/third_party/erfa/src/pom00.c +126 -0
  632. flukt-0.1.0/third_party/erfa/src/ppp.c +96 -0
  633. flukt-0.1.0/third_party/erfa/src/ppsp.c +105 -0
  634. flukt-0.1.0/third_party/erfa/src/pr00.c +154 -0
  635. flukt-0.1.0/third_party/erfa/src/prec76.c +160 -0
  636. flukt-0.1.0/third_party/erfa/src/pv2p.c +92 -0
  637. flukt-0.1.0/third_party/erfa/src/pv2s.c +155 -0
  638. flukt-0.1.0/third_party/erfa/src/pvdpv.c +113 -0
  639. flukt-0.1.0/third_party/erfa/src/pvm.c +97 -0
  640. flukt-0.1.0/third_party/erfa/src/pvmpv.c +98 -0
  641. flukt-0.1.0/third_party/erfa/src/pvppv.c +98 -0
  642. flukt-0.1.0/third_party/erfa/src/pvstar.c +219 -0
  643. flukt-0.1.0/third_party/erfa/src/pvtob.c +165 -0
  644. flukt-0.1.0/third_party/erfa/src/pvu.c +104 -0
  645. flukt-0.1.0/third_party/erfa/src/pvup.c +99 -0
  646. flukt-0.1.0/third_party/erfa/src/pvxpv.c +118 -0
  647. flukt-0.1.0/third_party/erfa/src/pxp.c +105 -0
  648. flukt-0.1.0/third_party/erfa/src/refco.c +269 -0
  649. flukt-0.1.0/third_party/erfa/src/rm2v.c +122 -0
  650. flukt-0.1.0/third_party/erfa/src/rv2m.c +129 -0
  651. flukt-0.1.0/third_party/erfa/src/rx.c +121 -0
  652. flukt-0.1.0/third_party/erfa/src/rxp.c +110 -0
  653. flukt-0.1.0/third_party/erfa/src/rxpv.c +103 -0
  654. flukt-0.1.0/third_party/erfa/src/rxr.c +110 -0
  655. flukt-0.1.0/third_party/erfa/src/ry.c +121 -0
  656. flukt-0.1.0/third_party/erfa/src/rz.c +121 -0
  657. flukt-0.1.0/third_party/erfa/src/s00.c +385 -0
  658. flukt-0.1.0/third_party/erfa/src/s00a.c +156 -0
  659. flukt-0.1.0/third_party/erfa/src/s00b.c +156 -0
  660. flukt-0.1.0/third_party/erfa/src/s06.c +382 -0
  661. flukt-0.1.0/third_party/erfa/src/s06a.c +158 -0
  662. flukt-0.1.0/third_party/erfa/src/s2c.c +96 -0
  663. flukt-0.1.0/third_party/erfa/src/s2p.c +99 -0
  664. flukt-0.1.0/third_party/erfa/src/s2pv.c +114 -0
  665. flukt-0.1.0/third_party/erfa/src/s2xpv.c +98 -0
  666. flukt-0.1.0/third_party/erfa/src/sepp.c +118 -0
  667. flukt-0.1.0/third_party/erfa/src/seps.c +106 -0
  668. flukt-0.1.0/third_party/erfa/src/sp00.c +132 -0
  669. flukt-0.1.0/third_party/erfa/src/starpm.c +219 -0
  670. flukt-0.1.0/third_party/erfa/src/starpv.c +278 -0
  671. flukt-0.1.0/third_party/erfa/src/sxp.c +95 -0
  672. flukt-0.1.0/third_party/erfa/src/sxpv.c +96 -0
  673. flukt-0.1.0/third_party/erfa/src/taitt.c +124 -0
  674. flukt-0.1.0/third_party/erfa/src/taiut1.c +125 -0
  675. flukt-0.1.0/third_party/erfa/src/taiutc.c +172 -0
  676. flukt-0.1.0/third_party/erfa/src/tcbtdb.c +146 -0
  677. flukt-0.1.0/third_party/erfa/src/tcgtt.c +123 -0
  678. flukt-0.1.0/third_party/erfa/src/tdbtcb.c +151 -0
  679. flukt-0.1.0/third_party/erfa/src/tdbtt.c +135 -0
  680. flukt-0.1.0/third_party/erfa/src/tf2a.c +121 -0
  681. flukt-0.1.0/third_party/erfa/src/tf2d.c +121 -0
  682. flukt-0.1.0/third_party/erfa/src/tpors.c +183 -0
  683. flukt-0.1.0/third_party/erfa/src/tporv.c +180 -0
  684. flukt-0.1.0/third_party/erfa/src/tpsts.c +131 -0
  685. flukt-0.1.0/third_party/erfa/src/tpstv.c +155 -0
  686. flukt-0.1.0/third_party/erfa/src/tpxes.c +164 -0
  687. flukt-0.1.0/third_party/erfa/src/tpxev.c +184 -0
  688. flukt-0.1.0/third_party/erfa/src/tr.c +104 -0
  689. flukt-0.1.0/third_party/erfa/src/trxp.c +104 -0
  690. flukt-0.1.0/third_party/erfa/src/trxpv.c +110 -0
  691. flukt-0.1.0/third_party/erfa/src/tttai.c +124 -0
  692. flukt-0.1.0/third_party/erfa/src/tttcg.c +126 -0
  693. flukt-0.1.0/third_party/erfa/src/tttdb.c +135 -0
  694. flukt-0.1.0/third_party/erfa/src/ttut1.c +124 -0
  695. flukt-0.1.0/third_party/erfa/src/ut1tai.c +125 -0
  696. flukt-0.1.0/third_party/erfa/src/ut1tt.c +124 -0
  697. flukt-0.1.0/third_party/erfa/src/ut1utc.c +207 -0
  698. flukt-0.1.0/third_party/erfa/src/utctai.c +191 -0
  699. flukt-0.1.0/third_party/erfa/src/utcut1.c +160 -0
  700. flukt-0.1.0/third_party/erfa/src/xy06.c +2770 -0
  701. flukt-0.1.0/third_party/erfa/src/xys00a.c +144 -0
  702. flukt-0.1.0/third_party/erfa/src/xys00b.c +144 -0
  703. flukt-0.1.0/third_party/erfa/src/xys06a.c +144 -0
  704. flukt-0.1.0/third_party/erfa/src/zp.c +88 -0
  705. flukt-0.1.0/third_party/erfa/src/zpv.c +90 -0
  706. flukt-0.1.0/third_party/erfa/src/zr.c +94 -0
  707. flukt-0.1.0/third_party/fmi/LICENSE.txt +28 -0
  708. flukt-0.1.0/third_party/fmi/headers/fmi2FunctionTypes.h +271 -0
  709. flukt-0.1.0/third_party/fmi/headers/fmi2Functions.h +317 -0
  710. flukt-0.1.0/third_party/fmi/headers/fmi2TypesPlatform.h +108 -0
  711. flukt-0.1.0/third_party/fmi/headers/fmi3FunctionTypes.h +638 -0
  712. flukt-0.1.0/third_party/fmi/headers/fmi3Functions.h +343 -0
  713. flukt-0.1.0/third_party/fmi/headers/fmi3PlatformTypes.h +94 -0
  714. flukt-0.1.0/third_party/geomag/WMM2025.COF +93 -0
  715. flukt-0.1.0/third_party/geomag/igrf14coeffs.txt +199 -0
  716. flukt-0.1.0/third_party/geomag/make_coefficients.py +86 -0
  717. flukt-0.1.0/third_party/json/LICENSE.MIT +21 -0
  718. flukt-0.1.0/third_party/json/include/nlohmann/json.hpp +25526 -0
  719. flukt-0.1.0/third_party/lua/LICENSE +20 -0
  720. flukt-0.1.0/third_party/lua/src/lapi.c +1479 -0
  721. flukt-0.1.0/third_party/lua/src/lapi.h +65 -0
  722. flukt-0.1.0/third_party/lua/src/lauxlib.c +1215 -0
  723. flukt-0.1.0/third_party/lua/src/lauxlib.h +271 -0
  724. flukt-0.1.0/third_party/lua/src/lbaselib.c +552 -0
  725. flukt-0.1.0/third_party/lua/src/lcode.c +1970 -0
  726. flukt-0.1.0/third_party/lua/src/lcode.h +105 -0
  727. flukt-0.1.0/third_party/lua/src/lcorolib.c +225 -0
  728. flukt-0.1.0/third_party/lua/src/lctype.c +64 -0
  729. flukt-0.1.0/third_party/lua/src/lctype.h +101 -0
  730. flukt-0.1.0/third_party/lua/src/ldblib.c +477 -0
  731. flukt-0.1.0/third_party/lua/src/ldebug.c +979 -0
  732. flukt-0.1.0/third_party/lua/src/ldebug.h +65 -0
  733. flukt-0.1.0/third_party/lua/src/ldo.c +1192 -0
  734. flukt-0.1.0/third_party/lua/src/ldo.h +99 -0
  735. flukt-0.1.0/third_party/lua/src/ldump.c +307 -0
  736. flukt-0.1.0/third_party/lua/src/lfunc.c +314 -0
  737. flukt-0.1.0/third_party/lua/src/lfunc.h +65 -0
  738. flukt-0.1.0/third_party/lua/src/lgc.c +1804 -0
  739. flukt-0.1.0/third_party/lua/src/lgc.h +268 -0
  740. flukt-0.1.0/third_party/lua/src/linit.c +63 -0
  741. flukt-0.1.0/third_party/lua/src/liolib.c +841 -0
  742. flukt-0.1.0/third_party/lua/src/ljumptab.h +114 -0
  743. flukt-0.1.0/third_party/lua/src/llex.c +604 -0
  744. flukt-0.1.0/third_party/lua/src/llex.h +93 -0
  745. flukt-0.1.0/third_party/lua/src/llimits.h +357 -0
  746. flukt-0.1.0/third_party/lua/src/lmathlib.c +765 -0
  747. flukt-0.1.0/third_party/lua/src/lmem.c +215 -0
  748. flukt-0.1.0/third_party/lua/src/lmem.h +96 -0
  749. flukt-0.1.0/third_party/lua/src/loadlib.c +748 -0
  750. flukt-0.1.0/third_party/lua/src/lobject.c +718 -0
  751. flukt-0.1.0/third_party/lua/src/lobject.h +865 -0
  752. flukt-0.1.0/third_party/lua/src/lopcodes.c +131 -0
  753. flukt-0.1.0/third_party/lua/src/lopcodes.h +444 -0
  754. flukt-0.1.0/third_party/lua/src/lopnames.h +105 -0
  755. flukt-0.1.0/third_party/lua/src/loslib.c +432 -0
  756. flukt-0.1.0/third_party/lua/src/lparser.c +2193 -0
  757. flukt-0.1.0/third_party/lua/src/lparser.h +197 -0
  758. flukt-0.1.0/third_party/lua/src/lprefix.h +45 -0
  759. flukt-0.1.0/third_party/lua/src/lstate.c +425 -0
  760. flukt-0.1.0/third_party/lua/src/lstate.h +451 -0
  761. flukt-0.1.0/third_party/lua/src/lstring.c +353 -0
  762. flukt-0.1.0/third_party/lua/src/lstring.h +73 -0
  763. flukt-0.1.0/third_party/lua/src/lstrlib.c +1900 -0
  764. flukt-0.1.0/third_party/lua/src/ltable.c +1355 -0
  765. flukt-0.1.0/third_party/lua/src/ltable.h +184 -0
  766. flukt-0.1.0/third_party/lua/src/ltablib.c +429 -0
  767. flukt-0.1.0/third_party/lua/src/ltm.c +364 -0
  768. flukt-0.1.0/third_party/lua/src/ltm.h +105 -0
  769. flukt-0.1.0/third_party/lua/src/lua.h +547 -0
  770. flukt-0.1.0/third_party/lua/src/lua.hpp +10 -0
  771. flukt-0.1.0/third_party/lua/src/luaconf.h +756 -0
  772. flukt-0.1.0/third_party/lua/src/lualib.h +65 -0
  773. flukt-0.1.0/third_party/lua/src/lundump.c +421 -0
  774. flukt-0.1.0/third_party/lua/src/lundump.h +40 -0
  775. flukt-0.1.0/third_party/lua/src/lutf8lib.c +294 -0
  776. flukt-0.1.0/third_party/lua/src/lvm.c +1978 -0
  777. flukt-0.1.0/third_party/lua/src/lvm.h +136 -0
  778. flukt-0.1.0/third_party/lua/src/lzio.c +89 -0
  779. flukt-0.1.0/third_party/lua/src/lzio.h +67 -0
  780. flukt-0.1.0/third_party/naif/gm_de440.tpc +302 -0
  781. flukt-0.1.0/third_party/naif/make_body_data.py +119 -0
  782. flukt-0.1.0/third_party/naif/pck00011.tpc +4318 -0
  783. flukt-0.1.0/third_party/nrlmsise00/make_coefficients.py +87 -0
  784. flukt-0.1.0/third_party/nrlmsise00/nrlmsise00_driver.for +114 -0
  785. flukt-0.1.0/third_party/nrlmsise00/nrlmsise00_output.txt +157 -0
  786. flukt-0.1.0/third_party/nrlmsise00/nrlmsise00_sub.for +2435 -0
  787. flukt-0.1.0/tools/daveml_to_flukt.py +419 -0
@@ -0,0 +1,29 @@
1
+ ---
2
+ BasedOnStyle: LLVM
3
+ Language: Cpp
4
+ Standard: c++20
5
+ IndentWidth: 4
6
+ AccessModifierOffset: -4
7
+ ColumnLimit: 100
8
+ PointerAlignment: Left
9
+ DerivePointerAlignment: false
10
+ AllowShortFunctionsOnASingleLine: Inline
11
+ AllowShortIfStatementsOnASingleLine: Never
12
+ AllowShortLoopsOnASingleLine: false
13
+ AllowShortLambdasOnASingleLine: Inline
14
+ AlwaysBreakTemplateDeclarations: Yes
15
+ BreakBeforeBraces: Attach
16
+ NamespaceIndentation: None
17
+ FixNamespaceComments: true
18
+ IncludeBlocks: Regroup
19
+ IncludeCategories:
20
+ - Regex: '^"'
21
+ Priority: 1
22
+ - Regex: '^<flukt/'
23
+ Priority: 2
24
+ - Regex: '^<(nlohmann|doctest|pybind11)/'
25
+ Priority: 3
26
+ - Regex: '^<'
27
+ Priority: 4
28
+ SortIncludes: CaseSensitive
29
+ SpaceAfterTemplateKeyword: true
@@ -0,0 +1,11 @@
1
+ # Keep line endings as LF in the repository and in working copies on every platform.
2
+ * text=auto eol=lf
3
+
4
+ *.bat text eol=crlf
5
+ *.cmd text eol=crlf
6
+
7
+ *.png binary
8
+ *.jpg binary
9
+ *.pdf binary
10
+ *.bsp binary
11
+ *.bpc binary
@@ -0,0 +1,235 @@
1
+ name: CI
2
+
3
+ # Every push and pull request runs every job: Linux GCC (with the Python module), Linux Clang
4
+ # (also without Lua and ERFA), the sanitizers, the oldest compilers Flukt supports, Windows,
5
+ # macOS, WebAssembly and the Python wheels. Compiled objects are cached between runs. A run
6
+ # started by hand can be limited to one job. Releases are made by release.yml. The documentation
7
+ # is built into the program and tested, so only changes to the top-level notes skip the checks.
8
+
9
+ on:
10
+ push:
11
+ branches: [main]
12
+ paths-ignore: ["README.md", "CHANGELOG.md", "CONTRIBUTING.md", "SECURITY.md", "LICENSE", ".gitignore"]
13
+ pull_request:
14
+ paths-ignore: ["README.md", "CHANGELOG.md", "CONTRIBUTING.md", "SECURITY.md", "LICENSE", ".gitignore"]
15
+ workflow_dispatch:
16
+ inputs:
17
+ only:
18
+ description: "Run every job, or only one (to check a fix on one platform)"
19
+ type: choice
20
+ default: all
21
+ options: [all, linux, sanitizers, oldest, wheels, windows, emscripten, macos]
22
+
23
+ # A newer run replaces an older one on the same branch; a run of a single job, started by hand,
24
+ # has its own group, so that it does not stop the checks of a push.
25
+ concurrency:
26
+ group: ci-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' && inputs.only != 'all' && inputs.only || 'all' }}
27
+ cancel-in-progress: true
28
+
29
+ permissions:
30
+ contents: read
31
+
32
+ env:
33
+ CCACHE_DIR: ${{ github.workspace }}/.ccache
34
+ CCACHE_MAXSIZE: 500M
35
+ CCACHE_BASEDIR: ${{ github.workspace }}
36
+
37
+ jobs:
38
+ linux:
39
+ name: Linux ${{ matrix.compiler }}
40
+ if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'linux' }}
41
+ runs-on: ubuntu-24.04
42
+ strategy:
43
+ fail-fast: false
44
+ matrix:
45
+ compiler: [gcc, clang]
46
+ steps:
47
+ - uses: actions/checkout@v5
48
+ - uses: actions/setup-python@v6
49
+ if: matrix.compiler == 'gcc'
50
+ with:
51
+ python-version: "3.13"
52
+ - name: Install tools
53
+ run: |
54
+ sudo apt-get update && sudo apt-get install -y ninja-build ccache
55
+ if [ "${{ matrix.compiler }}" = gcc ]; then
56
+ python -m pip install numpy pytest scipy jsonschema pandas pyarrow pint fmpy ppigrf sgp4 skyfield pymsis
57
+ fi
58
+ - uses: actions/cache@v4
59
+ with:
60
+ path: .ccache
61
+ key: ccache-linux-${{ matrix.compiler }}-${{ github.sha }}
62
+ restore-keys: ccache-linux-${{ matrix.compiler }}-
63
+ - name: Configure
64
+ # GCC also builds the Python module, whose tests run with the others.
65
+ run: >
66
+ cmake --preset ${{ matrix.compiler }} -DFLUKT_WARNINGS_AS_ERRORS=ON
67
+ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
68
+ ${{ matrix.compiler == 'gcc' && '-DFLUKT_BUILD_PYTHON=ON -DPython_EXECUTABLE="$(which python)"' || '' }}
69
+ - name: Build
70
+ run: cmake --build --preset ${{ matrix.compiler }}
71
+ - name: Test
72
+ run: ctest --preset ${{ matrix.compiler }}
73
+ - name: Install, and build a project with find_package(flukt) and a plugin
74
+ if: matrix.compiler == 'gcc'
75
+ run: cmake -DBUILD_DIR=build/gcc -DWORK_DIR="$RUNNER_TEMP/flukt-package" -P tests/cmake/check_package.cmake
76
+ - name: Build and test without Lua and ERFA
77
+ if: matrix.compiler == 'clang'
78
+ run: |
79
+ cmake --preset clang -B build/clang-minimal -DFLUKT_WARNINGS_AS_ERRORS=ON -DFLUKT_WITH_LUA=OFF -DFLUKT_WITH_ERFA=OFF -DFLUKT_BUILD_BENCHMARKS=OFF -DFLUKT_BUILD_CLI=OFF -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
80
+ cmake --build build/clang-minimal
81
+ ./build/clang-minimal/tests/flukt_tests
82
+ - name: Compiler cache
83
+ run: ccache --show-stats
84
+
85
+ sanitizers:
86
+ name: Linux sanitizers
87
+ if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'sanitizers' }}
88
+ runs-on: ubuntu-24.04
89
+ steps:
90
+ - uses: actions/checkout@v5
91
+ - name: Install tools
92
+ run: sudo apt-get update && sudo apt-get install -y ninja-build ccache
93
+ - uses: actions/cache@v4
94
+ with:
95
+ path: .ccache
96
+ key: ccache-linux-sanitize-${{ github.sha }}
97
+ restore-keys: ccache-linux-sanitize-
98
+ - name: Configure
99
+ run: cmake --preset sanitize -DFLUKT_WARNINGS_AS_ERRORS=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
100
+ - name: Build
101
+ run: cmake --build --preset sanitize
102
+ - name: Test
103
+ run: ctest --preset sanitize
104
+ - name: Compiler cache
105
+ run: ccache --show-stats
106
+
107
+ # The oldest compilers Flukt supports (docs/design/cpp20.md): GCC 11 and Clang 14, the
108
+ # defaults of Ubuntu 22.04. Warnings are not errors here: old compilers raise false alarms.
109
+ oldest:
110
+ name: Linux ${{ matrix.compiler }} (oldest supported)
111
+ if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'oldest' }}
112
+ runs-on: ubuntu-22.04
113
+ strategy:
114
+ fail-fast: false
115
+ matrix:
116
+ include:
117
+ - compiler: gcc-11
118
+ preset: gcc
119
+ cc: gcc-11
120
+ cxx: g++-11
121
+ package: g++-11
122
+ - compiler: clang-14
123
+ preset: clang
124
+ cc: clang-14
125
+ cxx: clang++-14
126
+ package: clang-14
127
+ steps:
128
+ - uses: actions/checkout@v5
129
+ - name: Install tools
130
+ run: sudo apt-get update && sudo apt-get install -y ninja-build ccache ${{ matrix.package }}
131
+ - uses: actions/cache@v4
132
+ with:
133
+ path: .ccache
134
+ key: ccache-oldest-${{ matrix.compiler }}-${{ github.sha }}
135
+ restore-keys: ccache-oldest-${{ matrix.compiler }}-
136
+ - name: Configure
137
+ run: >
138
+ cmake --preset ${{ matrix.preset }} -B build/oldest
139
+ -DCMAKE_C_COMPILER=${{ matrix.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
140
+ -DFLUKT_BUILD_BENCHMARKS=OFF
141
+ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
142
+ - name: Build
143
+ run: cmake --build build/oldest
144
+ - name: Test
145
+ run: ctest --test-dir build/oldest --output-on-failure
146
+ - name: Compiler cache
147
+ run: ccache --show-stats
148
+
149
+ wheels:
150
+ name: Python wheels (${{ matrix.os }})
151
+ if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'wheels' }}
152
+ strategy:
153
+ fail-fast: false
154
+ matrix:
155
+ os: [ubuntu-24.04, ubuntu-24.04-arm, windows-latest, macos-latest]
156
+ runs-on: ${{ matrix.os }}
157
+ steps:
158
+ - uses: actions/checkout@v5
159
+ - uses: actions/setup-python@v6
160
+ with:
161
+ python-version: "3.13"
162
+ - name: Build and test the wheels
163
+ # One Python version here; a release builds them all (release.yml).
164
+ env:
165
+ CIBW_BUILD: cp313-*
166
+ run: |
167
+ python -m pip install "cibuildwheel>=3,<4"
168
+ python -m cibuildwheel --output-dir wheelhouse
169
+ - name: Keep the wheels
170
+ uses: actions/upload-artifact@v4
171
+ with:
172
+ name: wheels-${{ matrix.os }}
173
+ path: wheelhouse/*.whl
174
+
175
+ windows:
176
+ name: Windows MSVC
177
+ if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'windows' }}
178
+ runs-on: windows-latest
179
+ steps:
180
+ - uses: actions/checkout@v5
181
+ - name: Configure
182
+ run: cmake --preset msvc -DFLUKT_WARNINGS_AS_ERRORS=ON
183
+ - name: Build
184
+ run: cmake --build --preset msvc
185
+ - name: Test
186
+ run: ctest --preset msvc
187
+
188
+ emscripten:
189
+ name: WebAssembly (Emscripten)
190
+ if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'emscripten' }}
191
+ runs-on: ubuntu-24.04
192
+ steps:
193
+ - uses: actions/checkout@v5
194
+ - name: Install Ninja
195
+ run: sudo apt-get update && sudo apt-get install -y ninja-build
196
+ - name: Install Emscripten
197
+ uses: mymindstorm/setup-emsdk@v14
198
+ with:
199
+ version: 4.0.10
200
+ - name: Configure
201
+ run: cmake --preset emscripten -DFLUKT_WARNINGS_AS_ERRORS=ON
202
+ - name: Build
203
+ run: cmake --build --preset emscripten
204
+ - name: Test
205
+ run: ctest --preset emscripten --output-on-failure
206
+ - name: Keep the JavaScript module and the browser demonstration
207
+ uses: actions/upload-artifact@v4
208
+ with:
209
+ name: flukt-web
210
+ path: |
211
+ build/emscripten/web/flukt.js
212
+ build/emscripten/web/flukt.wasm
213
+ build/emscripten/web/flukt.d.ts
214
+ build/emscripten/web/flukt-single.js
215
+ build/emscripten/web/flukt-demo.html
216
+
217
+ macos:
218
+ name: macOS Clang
219
+ if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'macos' }}
220
+ runs-on: macos-latest
221
+ steps:
222
+ - uses: actions/checkout@v5
223
+ - name: Install tools
224
+ run: brew install ninja ccache
225
+ - uses: actions/cache@v4
226
+ with:
227
+ path: .ccache
228
+ key: ccache-macos-clang-${{ github.sha }}
229
+ restore-keys: ccache-macos-clang-
230
+ - name: Configure
231
+ run: cmake --preset clang -DFLUKT_WARNINGS_AS_ERRORS=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
232
+ - name: Build
233
+ run: cmake --build --preset clang
234
+ - name: Test
235
+ run: ctest --preset clang
@@ -0,0 +1,115 @@
1
+ name: Release
2
+
3
+ # Builds the wheels for every supported Python version on Linux (x86-64 and ARM), Windows and
4
+ # macOS (Apple silicon), tests them, builds the source distribution, and publishes them on the
5
+ # Python Package Index through its trusted publishing: no password or token is stored here.
6
+ #
7
+ # - Started by hand, it publishes on TestPyPI (or on PyPI, if chosen), to try a release first.
8
+ # - A tag such as v0.1.0 publishes on PyPI. The tag must match the version in CMakeLists.txt.
9
+ #
10
+ # Before the first release, PyPI and TestPyPI must each list this repository, this workflow
11
+ # (release.yml) and its environment ("pypi" or "testpypi") as a trusted publisher of the project
12
+ # "flukt", and the repository should have those two environments.
13
+
14
+ on:
15
+ push:
16
+ tags: ["v*"]
17
+ workflow_dispatch:
18
+ inputs:
19
+ target:
20
+ description: "Where to publish"
21
+ type: choice
22
+ default: testpypi
23
+ options: [testpypi, pypi]
24
+
25
+ permissions:
26
+ contents: read
27
+
28
+ jobs:
29
+ version:
30
+ name: The tag matches the version
31
+ if: github.event_name == 'push'
32
+ runs-on: ubuntu-24.04
33
+ steps:
34
+ - uses: actions/checkout@v5
35
+ - run: |
36
+ version=$(sed -n 's/.*VERSION \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p' CMakeLists.txt | head -1)
37
+ if [ "v$version" != "${GITHUB_REF_NAME}" ]; then
38
+ echo "The tag ${GITHUB_REF_NAME} does not match the version $version in CMakeLists.txt"
39
+ exit 1
40
+ fi
41
+
42
+ wheels:
43
+ name: Wheels (${{ matrix.os }})
44
+ needs: version
45
+ if: ${{ !cancelled() && !failure() }}
46
+ strategy:
47
+ fail-fast: false
48
+ matrix:
49
+ os: [ubuntu-24.04, ubuntu-24.04-arm, windows-latest, macos-latest]
50
+ runs-on: ${{ matrix.os }}
51
+ steps:
52
+ - uses: actions/checkout@v5
53
+ - uses: actions/setup-python@v6
54
+ with:
55
+ python-version: "3.13"
56
+ - name: Build and test the wheels
57
+ env:
58
+ CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
59
+ run: |
60
+ python -m pip install "cibuildwheel>=3,<4"
61
+ python -m cibuildwheel --output-dir wheelhouse
62
+ - uses: actions/upload-artifact@v4
63
+ with:
64
+ name: wheels-${{ matrix.os }}
65
+ path: wheelhouse/*.whl
66
+
67
+ sdist:
68
+ name: Source distribution
69
+ needs: version
70
+ if: ${{ !cancelled() && !failure() }}
71
+ runs-on: ubuntu-24.04
72
+ steps:
73
+ - uses: actions/checkout@v5
74
+ - uses: actions/setup-python@v6
75
+ with:
76
+ python-version: "3.13"
77
+ - run: |
78
+ python -m pip install build
79
+ python -m build --sdist
80
+ - uses: actions/upload-artifact@v4
81
+ with:
82
+ name: sdist
83
+ path: dist/*.tar.gz
84
+
85
+ testpypi:
86
+ name: Publish on TestPyPI
87
+ needs: [wheels, sdist]
88
+ if: ${{ !cancelled() && !failure() && github.event_name == 'workflow_dispatch' && inputs.target == 'testpypi' }}
89
+ runs-on: ubuntu-24.04
90
+ environment: testpypi
91
+ permissions:
92
+ id-token: write
93
+ steps:
94
+ - uses: actions/download-artifact@v4
95
+ with:
96
+ path: dist
97
+ merge-multiple: true
98
+ - uses: pypa/gh-action-pypi-publish@release/v1
99
+ with:
100
+ repository-url: https://test.pypi.org/legacy/
101
+
102
+ pypi:
103
+ name: Publish on PyPI
104
+ needs: [wheels, sdist]
105
+ if: ${{ !cancelled() && !failure() && (github.event_name == 'push' || inputs.target == 'pypi') }}
106
+ runs-on: ubuntu-24.04
107
+ environment: pypi
108
+ permissions:
109
+ id-token: write
110
+ steps:
111
+ - uses: actions/download-artifact@v4
112
+ with:
113
+ path: dist
114
+ merge-multiple: true
115
+ - uses: pypa/gh-action-pypi-publish@release/v1
flukt-0.1.0/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ # Build output
2
+ /build/
3
+ /out/
4
+ /dist/
5
+ *.egg-info/
6
+
7
+ # Local CMake settings, such as compiler paths on one machine
8
+ CMakeUserPresets.json
9
+
10
+ # Editors and IDEs
11
+ /.vs/
12
+ /.vscode/
13
+ /.idea/
14
+ *.swp
15
+
16
+ # Python
17
+ __pycache__/
18
+ *.pyc
19
+ /.venv/
20
+ /.pytest_cache/
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+
3
+ Every change that a user of Flukt may notice: in the configuration format, the command-line program, the Python, C, C++ and JavaScript interfaces, and the results. Versions before 1.0 may change the format and the interfaces; each such change is listed here, with what to do about it.
4
+
5
+ ## 0.1.0 (2026-12-02)
6
+
7
+ The first public release.
8
+
9
+ - **Flight of one rigid body**: rockets, aircraft, balloons and airships, satellites and probes; 3-DOF and 6-DOF motion, rails and holds; phases, events, controllers and actuators; trim; the changing mass of a vehicle that burns propellant (`docs/user_guide.md`).
10
+ - **The world**: a flat Earth, the round and rotating Earth (WGS-84, IAU 2006/2000A orientation, time scales with leap seconds), the Moon, Mars and other bodies; gravity fields, third bodies, tides; the US 1976 and NRLMSISE-00 atmospheres, wind, turbulence and gusts; the Earth's magnetic field; sunlight; terrain (`docs/orbits.md`, `docs/frames_and_time.md`, `docs/spacecraft.md`, `docs/vehicle_physics.md`).
11
+ - **Configurations in JSON**, with units where wanted, expressions, tables and Lua; vehicle files apart from the scenarios that fly them; groups of vehicles flown together, which can sense each other (`docs/vehicles.md`, `docs/groups.md`, `docs/sensing.md`).
12
+ - **Studies**: batches and Monte Carlo studies on all cores, linear models and sensitivities, saving and restoring runs; results in JSON, CSV, Parquet and MAT (`docs/batch_runs_and_optimisation.md`, `docs/analysis.md`, `docs/results.md`).
13
+ - **Interfaces**: the command-line program `flukt`, Python, C, C++, JavaScript (WebAssembly), plugins in C or C++, and FMUs for Simulink and other tools.
14
+ - **For people and AI agents writing configurations**: `flukt guide`, the documentation and examples in the program (`flukt docs`, `flukt examples`), `flukt reference <name>`, `--json` on every command, a summary of every run, and warnings of what is allowed but probably not meant (`docs/writing_configurations.md`).
15
+ - **Checked** against NASA's check cases, Orekit, RocketPy, Astropy, JPL's ephemerides and published data (`docs/validation.md`); every simplification is listed in `docs/simplifications.md`.
@@ -0,0 +1,191 @@
1
+ cmake_minimum_required(VERSION 3.25)
2
+
3
+ project(flukt
4
+ VERSION 0.1.0
5
+ DESCRIPTION "Flukt, a simulation framework for flying rigid bodies"
6
+ LANGUAGES C CXX)
7
+
8
+ option(FLUKT_BUILD_TESTS "Build the tests" ${PROJECT_IS_TOP_LEVEL})
9
+ option(FLUKT_BUILD_BENCHMARKS "Build the benchmarks" ${PROJECT_IS_TOP_LEVEL})
10
+ option(FLUKT_BUILD_CLI "Build the command-line program" ${PROJECT_IS_TOP_LEVEL})
11
+ option(FLUKT_BUILD_PYTHON "Build the Python module (downloads pybind11)" OFF)
12
+ option(FLUKT_BUILD_FMU "Build the library inside FMUs (flukt fmu)" ON)
13
+ if(EMSCRIPTEN)
14
+ set(FLUKT_C_API_DEFAULT OFF)
15
+ else()
16
+ set(FLUKT_C_API_DEFAULT ${PROJECT_IS_TOP_LEVEL})
17
+ endif()
18
+ option(FLUKT_BUILD_C_API "Build the plain C interface as a shared library (flukt_c)" ${FLUKT_C_API_DEFAULT})
19
+ option(FLUKT_WITH_LUA "Build with Lua scripting" ON)
20
+ option(FLUKT_WITH_ERFA "Build with ERFA for Earth orientation and time scales" ON)
21
+ option(FLUKT_WARNINGS_AS_ERRORS "Treat compiler warnings as errors" OFF)
22
+ option(FLUKT_SANITIZE "Build with the address and undefined-behaviour sanitizers (GCC and Clang)" OFF)
23
+ option(FLUKT_INSTALL "Install the library, its headers, the programs and the CMake package" ${PROJECT_IS_TOP_LEVEL})
24
+ option(FLUKT_BOUNDS_CHECKS "Check every index into spans, vectors and strings (the standard library's own checks); on with FLUKT_SANITIZE" OFF)
25
+
26
+ include(GNUInstallDirs)
27
+
28
+ set(CMAKE_CXX_STANDARD 20)
29
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
30
+ set(CMAKE_CXX_EXTENSIONS OFF)
31
+ set(CMAKE_C_STANDARD 99)
32
+ set(CMAKE_C_STANDARD_REQUIRED ON)
33
+ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
34
+
35
+ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
36
+ set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
37
+ endif()
38
+
39
+ # Options that must apply to every target, third-party code included.
40
+ if(EMSCRIPTEN)
41
+ # Setup errors are C++ exceptions; WebAssembly exceptions cost nothing when none is thrown.
42
+ add_compile_options(-fwasm-exceptions)
43
+ add_link_options(-fwasm-exceptions)
44
+ endif()
45
+ if(FLUKT_SANITIZE)
46
+ if(MSVC)
47
+ message(FATAL_ERROR "FLUKT_SANITIZE is only supported with GCC and Clang")
48
+ endif()
49
+ add_compile_options(-fsanitize=address,undefined -fno-sanitize-recover=all -fno-omit-frame-pointer)
50
+ add_link_options(-fsanitize=address,undefined)
51
+ endif()
52
+ if(FLUKT_SANITIZE OR FLUKT_BOUNDS_CHECKS)
53
+ # libstdc++ (GCC), libc++ (Clang, Apple) and Microsoft's library each check indices into
54
+ # std::span, std::vector and others with these; none changes the binary interface.
55
+ add_compile_definitions(_GLIBCXX_ASSERTIONS
56
+ _LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE
57
+ _MSVC_STL_HARDENING=1)
58
+ endif()
59
+
60
+ include(cmake/FluktOptions.cmake)
61
+
62
+ add_subdirectory(third_party)
63
+
64
+ # Version and Git revision headers.
65
+ set(FLUKT_GENERATED_DIR "${PROJECT_BINARY_DIR}/generated")
66
+ configure_file(cmake/flukt_version.hpp.in "${FLUKT_GENERATED_DIR}/flukt_version.hpp" @ONLY)
67
+ add_custom_target(flukt_revision
68
+ COMMAND "${CMAKE_COMMAND}"
69
+ "-DSOURCE_DIR=${PROJECT_SOURCE_DIR}"
70
+ "-DOUTPUT=${FLUKT_GENERATED_DIR}/flukt_revision.hpp"
71
+ -P "${PROJECT_SOURCE_DIR}/cmake/GenerateRevision.cmake"
72
+ BYPRODUCTS "${FLUKT_GENERATED_DIR}/flukt_revision.hpp"
73
+ COMMENT "Reading the Git revision"
74
+ VERBATIM)
75
+
76
+ # The library.
77
+ file(GLOB_RECURSE FLUKT_SOURCES CONFIGURE_DEPENDS "${PROJECT_SOURCE_DIR}/src/*.cpp")
78
+ file(GLOB_RECURSE FLUKT_HEADERS CONFIGURE_DEPENDS
79
+ "${PROJECT_SOURCE_DIR}/include/flukt/*.hpp"
80
+ "${PROJECT_SOURCE_DIR}/src/*.hpp")
81
+ add_library(flukt STATIC ${FLUKT_SOURCES} ${FLUKT_HEADERS})
82
+ add_library(flukt::flukt ALIAS flukt)
83
+ # Programs that use Flukt's C++ headers need C++20 too.
84
+ target_compile_features(flukt PUBLIC cxx_std_20)
85
+ add_dependencies(flukt flukt_revision)
86
+ target_include_directories(flukt
87
+ PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
88
+ "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
89
+ PRIVATE "${PROJECT_SOURCE_DIR}/src" "${FLUKT_GENERATED_DIR}")
90
+ target_link_libraries(flukt PUBLIC flukt_json)
91
+ # Plugins are loaded with dlopen, which older C libraries keep in libdl.
92
+ if(CMAKE_DL_LIBS)
93
+ target_link_libraries(flukt PRIVATE ${CMAKE_DL_LIBS})
94
+ endif()
95
+ if(NOT EMSCRIPTEN)
96
+ find_package(Threads REQUIRED)
97
+ target_link_libraries(flukt PUBLIC Threads::Threads)
98
+ endif()
99
+ if(FLUKT_WITH_LUA)
100
+ target_link_libraries(flukt PRIVATE flukt_lua)
101
+ target_compile_definitions(flukt PUBLIC FLUKT_WITH_LUA=1)
102
+ endif()
103
+ if(FLUKT_WITH_ERFA)
104
+ target_link_libraries(flukt PRIVATE flukt_erfa)
105
+ target_compile_definitions(flukt PUBLIC FLUKT_WITH_ERFA=1)
106
+ endif()
107
+ set_target_properties(flukt PROPERTIES POSITION_INDEPENDENT_CODE ON)
108
+ flukt_target_options(flukt)
109
+
110
+ # What a plugin needs: only the header flukt_plugin.h (plugins.md).
111
+ add_library(flukt_plugin INTERFACE)
112
+ add_library(flukt::plugin ALIAS flukt_plugin)
113
+ set_target_properties(flukt_plugin PROPERTIES EXPORT_NAME plugin)
114
+ target_include_directories(flukt_plugin INTERFACE
115
+ "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
116
+ "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
117
+ include(cmake/FluktPlugin.cmake)
118
+
119
+ if(FLUKT_BUILD_C_API)
120
+ add_subdirectory(bindings/c)
121
+ endif()
122
+ if(FLUKT_BUILD_FMU AND NOT EMSCRIPTEN)
123
+ add_subdirectory(bindings/fmi)
124
+ endif()
125
+ if(FLUKT_BUILD_TESTS)
126
+ enable_testing()
127
+ add_subdirectory(tests)
128
+ endif()
129
+ if(FLUKT_BUILD_BENCHMARKS)
130
+ add_subdirectory(bench)
131
+ endif()
132
+ if(FLUKT_BUILD_CLI)
133
+ add_subdirectory(apps)
134
+ endif()
135
+ if(FLUKT_BUILD_PYTHON)
136
+ add_subdirectory(bindings/python)
137
+ endif()
138
+ if(EMSCRIPTEN)
139
+ add_subdirectory(bindings/wasm)
140
+ endif()
141
+
142
+ # Installing: the library, its headers, the programs and a CMake package, so that other
143
+ # projects can use find_package(flukt) (cpp.md). Wheels install the Python package instead.
144
+ if(FLUKT_INSTALL AND NOT SKBUILD AND NOT EMSCRIPTEN)
145
+ include(CMakePackageConfigHelpers)
146
+ set(FLUKT_INSTALL_TARGETS flukt flukt_json flukt_plugin)
147
+ if(FLUKT_WITH_LUA)
148
+ list(APPEND FLUKT_INSTALL_TARGETS flukt_lua)
149
+ endif()
150
+ if(FLUKT_WITH_ERFA)
151
+ list(APPEND FLUKT_INSTALL_TARGETS flukt_erfa)
152
+ endif()
153
+ install(TARGETS ${FLUKT_INSTALL_TARGETS} EXPORT fluktTargets
154
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
155
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
156
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
157
+ install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/flukt"
158
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
159
+ install(DIRECTORY "${PROJECT_SOURCE_DIR}/third_party/json/include/nlohmann"
160
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/flukt/third_party")
161
+ install(FILES "${PROJECT_SOURCE_DIR}/third_party/json/LICENSE.MIT"
162
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/flukt/third_party/nlohmann")
163
+ install(EXPORT fluktTargets NAMESPACE flukt::
164
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/flukt")
165
+ configure_package_config_file(cmake/fluktConfig.cmake.in
166
+ "${PROJECT_BINARY_DIR}/fluktConfig.cmake"
167
+ INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/flukt")
168
+ # The C++ interface may change between minor versions before 1.0.
169
+ write_basic_package_version_file("${PROJECT_BINARY_DIR}/fluktConfigVersion.cmake"
170
+ COMPATIBILITY SameMinorVersion)
171
+ install(FILES "${PROJECT_BINARY_DIR}/fluktConfig.cmake"
172
+ "${PROJECT_BINARY_DIR}/fluktConfigVersion.cmake"
173
+ "${PROJECT_SOURCE_DIR}/cmake/FluktPlugin.cmake"
174
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/flukt")
175
+ if(TARGET flukt_cli)
176
+ install(TARGETS flukt_cli RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
177
+ endif()
178
+ if(TARGET flukt_fmu)
179
+ # Next to the program, which looks for it there.
180
+ install(TARGETS flukt_fmu
181
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
182
+ LIBRARY DESTINATION "${CMAKE_INSTALL_BINDIR}")
183
+ endif()
184
+ if(TARGET flukt_c)
185
+ install(TARGETS flukt_c
186
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
187
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
188
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
189
+ endif()
190
+ install(FILES "${PROJECT_SOURCE_DIR}/LICENSE" DESTINATION "${CMAKE_INSTALL_DATADIR}/flukt")
191
+ endif()