dsnobes / MSPM

Modular Single-Phase Model
GNU General Public License v3.0
1 stars 0 forks source link

if scaling by more than 100x, it is faster to scale by 10 repeatedly instead of, say, scaling by 10000x at once #70

Closed Cedric-Boucher closed 1 year ago

Cedric-Boucher commented 1 year ago

not that I would expect anyone to do that but we could still document it

FalsettiM commented 1 year ago

The slow performance is due to having to discretize bodies when updating the sensors. Due to wall smart discretize having a maximum size for nodes. As you scale up, more and more nodes need to be created and thus it takes longer.

Cedric-Boucher commented 1 year ago

that doesn't make sense to me. if I scale a total of 1000x by scaling 10x 3 times, it takes significantly less time than scaling 1000x all at once

Cedric-Boucher commented 1 year ago

this only happens when you have sensors apparently