SalomePlatform / smesh

Salome MESH (SMESH) module to create and edit mesh in SALOME platform
GNU Lesser General Public License v2.1
6 stars 2 forks source link

[issue] arithmetic & geometric progression with min max length rounding issue #4

Open otaolafranc opened 2 months ago

otaolafranc commented 2 months ago

Hello, there is a bug of rounding issues for this algorithms where the number of final elements are not consistent. eg.

  1. create a cube of 100X100X100
  2. mesh its edges with arithmetic (or geometric) progression
  3. set the min value to 1 and change the max value it will give different number of element not consitently, for this eg. (following https://docs.salome-platform.org/latest/gui/SMESH/1d_meshing_hypo.html#arithmetic-progression-hypothesis)

min..........max..............Sn.........n=Sn/(min+max)*2..........rounding..........salome result 1............20.000............100.............9.523809524.....................10........................10 1............20.050............100.............9.501187648.....................10.........................9 1............20.025............100.............9.512485137.....................10.........................9 1............20.015............100.............9.517011658.....................10........................10

nitawa commented 3 weeks ago

Dear Martin, please assign it to whom it may concern. Thanks.