thegrumpys / odop

Open Design Optimization Platform (ODOP) - Coil spring design app; mechanical springs; compression spring, extension spring, torsion spring
https://www.springdesignsoftware.org
MIT License
4 stars 5 forks source link

Display Infinity & NaN in FormControlTypeNumber #863

Closed grumpyinca closed 11 months ago

grumpyinca commented 11 months ago

FormControlTypeNumber has a "stale data" response to values containing Infinity and NaN.

Initial investigation suggests that the fix for this problem could be challenging.

Test case with inputs creating ID_Free = 0

  1. Start from compression spring startup
  2. Change OD_Free 0.4; Wire_Dia 0.2
  3. Observe that in Advanced and Calculator Views all values are finite (incorrect) while in Alerts, Report and SymbolTable Views the values of Stress_1, Stress_2 and Stress_Solid show (correctly) as infinite and the values of Cycle_Life and FS_CycleLife show as NaN.
grumpyinca commented 11 months ago

I understand that the dual (input & output) nature of FormControlTypeNumber make the "stale data" aspect of the behavior particularly difficult to fix. Is it possible that one of two different versions of FormControlTypeNumber could be utilized depending on focus ?

grumpyinca commented 11 months ago

One more try at resolving this issue failed. Moving to next major release (milestone 5.0).

grumpyinca commented 11 months ago

Yet another try has brought success. Moving back to milestone 4.4.3. Further testing is in order.

Merged to master. Pushed to remote / origin. Closing