JoePfeiffer
3e1341271c
Modified integrate() to use geometry of actual frustums in geometric calculations instead of cylinder approximations. This turned into a pretty complete rewrite of integrate(), and the creation of several helper functions.
...
Changed the name of integrate() to calculateProperties() to better express the purpose rather than the method of calculation. It's looking forward to a future PR when I'll be modifying BodyTube to use SymmetricComponent's variable caching.
2023-12-13 08:41:11 -07:00
JoePfeiffer
e92e2bc3a9
Instead of incrementing through the slices of the component, multiply to recalculate each slice (from some comments in the code I suspect there were some problems with floating point error accumulating).
...
Increase the number of divisions to 128, so division is just an exponent change and won't cause floating point error
a little tidying
2023-11-22 11:32:32 -07:00
JoePfeiffer
ff6b23f366
merge integrateInertiaVolume() into integrate()
2023-11-21 16:40:57 -07:00
JoePfeiffer
4b1c6a4f4b
eliminate SymmetricComponent::integrateInertiaSurface()
...
Previously, the code calculated the volume of a component, and if that volume was too small calculated its moments of inertia based on the surface instead of the volume. The decision wasn't based on the thickness of the shell (which might have made sense to me), it was the actual volume. The result is any really small component had its moments of inertia calculated using this surface method, no matter how "solid" the object was.
The cause of #2403 was that this method was used to calculate the moments of inertia in the .ork that failed, but the actual CG was used in the parallel axis theorem. This put the CG in a different place than a "surface CG" would have, so the longitudinal moment of inertia ended up less than 0 triggering the crash.
Now, if a component is so small that's volume is 0 it is assumed its contribution to moment of inertia must also be negligible, so the moments of inertia are set to 0 in this case.
2023-11-21 16:01:41 -07:00
JoePfeiffer
9fec2af7a8
Use Double.NaN to identify values that haven't been calculated. Spotting uncalculated values by checking for <0 is just asking for trouble down the line.
2023-11-21 15:54:35 -07:00
Joe Pfeiffer
7fe41ed0ae
Merge pull request #2405 from JoePfeiffer/adjust-sim-unit-tmes
...
Add times to some of the events that were currently unspecified.
2023-11-18 07:22:36 -07:00
JoePfeiffer
6a5a298097
Add times to some of the events that were currently unspecified. If we end up getting spurious failures we can take them back out.
2023-11-18 07:04:18 -07:00
Sibo Van Gool
b4d4062121
Merge pull request #2339 from superspacehog/twr-plotting
...
Add thrust-to-weight option to plot menu
2023-11-17 23:32:24 +01:00
SiboVG
a0dc99c40b
Update chute sim
2023-11-17 23:32:12 +01:00
SiboVG
c0c00dd6c3
Merge unstable
2023-11-17 23:29:05 +01:00
SiboVG
06ca16724d
Merge remote-tracking branch 'origin/unstable' into unstable
2023-11-17 23:22:35 +01:00
SiboVG
d838157209
Only support Java 17
2023-11-17 23:22:25 +01:00
Joe Pfeiffer
a0a1ab58de
Merge pull request #2395 from isaacjones99/issue-2258
...
[2258] Changed the static text box in the component analysis dialog to a JSpinner
2023-11-17 09:04:36 -07:00
Joe Pfeiffer
9c97a9adb5
Merge pull request #2398 from JoePfeiffer/fix-sim-unit-test
...
Clean up FlightEventsTest unit test
2023-11-17 09:01:43 -07:00
Joe Pfeiffer
d9a3927637
Merge pull request #2346 from JoePfeiffer/inch-surface-roughness
...
Add "inch" units to surface roughness
2023-11-17 09:01:01 -07:00
Joe Pfeiffer
5507ae06e1
Merge pull request #2402 from SiboVG/issue-2388
...
[#2388 ] Sync wind average speed, standard div & turbulence widgets
2023-11-17 08:59:15 -07:00
SiboVG
cdeef020b7
Set wind turbulence to 0 when average speed is 0
2023-11-17 02:08:19 +01:00
SiboVG
8ad74c0b27
[ #2388 ] Sync wind average speed, standard div & turbulence widgets
2023-11-17 02:00:02 +01:00
Sibo Van Gool
6c89a3c601
Update 23.09 date
release-23.09
2023-11-16 16:11:11 +01:00
Sibo Van Gool
f481581946
Update ChangeLog for OR 23.09
2023-11-16 16:10:33 +01:00
SiboVG
30d6d633c5
Merge remote-tracking branch 'origin/unstable' into unstable
2023-11-16 11:24:22 +01:00
SiboVG
6a26a18f4b
Add instructions for whitelisting Windows installer
2023-11-16 11:24:03 +01:00
Sibo Van Gool
55259140a9
Merge pull request #2400 from SiboVG/unstable
...
Correct DS_Store
2023-11-16 01:29:10 +01:00
SiboVG
a016659e1d
Correct DS_Store
2023-11-16 01:27:36 +01:00
Sibo Van Gool
b5fb0054fd
Add mass/CG fix to RN
2023-11-15 22:30:53 +01:00
Sibo Van Gool
39088835be
Merge pull request #2399 from SiboVG/unstable
...
Update thrust curves
2023-11-15 22:06:08 +01:00
SiboVG
846a265965
Update thrust curves
2023-11-15 22:02:31 +01:00
JoePfeiffer
e5554e0f1d
oops, left some commented out code in there
2023-11-15 11:48:33 -07:00
JoePfeiffer
b36950651e
clean up FlightEventsTest
2023-11-15 11:45:40 -07:00
Joe Pfeiffer
7fd390e4d3
Merge branch 'openrocket:unstable' into inch-surface-roughness
2023-11-15 11:02:36 -07:00
Joe Pfeiffer
3888a59ae2
Merge pull request #2396 from SiboVG/fix-color-select
...
Also check color when using default material
2023-11-15 10:17:39 -07:00
Joe Pfeiffer
43df250e54
Merge pull request #2397 from JoePfeiffer/fix-2394
...
Clean up and fix mass and CG overrides
2023-11-15 10:15:25 -07:00
Sibo Van Gool
6fa3204379
Change wording
2023-11-15 17:25:55 +01:00
JoePfeiffer
0c9d646983
Add unit test for stage overrides
2023-11-15 09:22:44 -07:00
SiboVG
2c37d9c27f
Remove Doxygen files (not used)
2023-11-15 17:22:39 +01:00
JoePfeiffer
c0b0eab4e6
Clean up code for mass and CG overrides
...
For component assemblies, set CG to CG of children when overriding mass
Fix handling of "override for children"
2023-11-15 09:13:09 -07:00
JoePfeiffer
98562bcfa7
Fix comments regarding mass and CG overrides
2023-11-15 07:09:20 -07:00
SiboVG
94c2c1ef38
Major refactor of simulation options UI
2023-11-15 04:41:31 +01:00
Isaac
1e0947529c
[2258] Changed the size of the spinners and unit selector and removed wildcard imports.
2023-11-13 13:53:46 +00:00
Sibo Van Gool
41ea369856
Change 3D printing design name
2023-11-13 12:09:33 +01:00
Sibo Van Gool
f304e4577a
Merge branch 'unstable' into issue-2258
2023-11-13 03:57:48 +01:00
SiboVG
e62cd4c6db
Set column widths in miglayout
2023-11-13 03:43:38 +01:00
SiboVG
6b5b951fe5
Add correct border for dark theme unit selectors
2023-11-13 03:30:44 +01:00
Sibo Van Gool
8906eef681
No need to mention uploading a JAR file anymore
2023-11-13 03:13:49 +01:00
Isaac
e4ace36e93
[2258] Changed the static text box in the component analysis dialog to a JSpinner.
2023-11-13 00:13:03 +00:00
SiboVG
0b3b31275d
Also check color when using default material
2023-11-12 18:00:53 +01:00
Sibo Van Gool
b8abe56fcd
Link website as info source
2023-11-05 20:29:28 +01:00
SiboVG
6ca19a960e
Merge remote-tracking branch 'origin/unstable' into unstable
2023-11-04 16:20:13 +01:00
SiboVG
c817148feb
Update installers for 23.09
2023-11-04 16:20:06 +01:00
SiboVG
aea36b4cee
Update release notes for OR 23.09
2023-11-03 11:59:37 +01:00