byuflowlab / GXBeam.jl

Pure Julia Implementation of Geometrically Exact Beam Theory
MIT License
87 stars 18 forks source link

Reduce overhead in default_force_scaling() causing extremely long run times for large systems #57

Closed kevmoor closed 2 years ago

kevmoor commented 2 years ago

For large built-up structures (like the 34m VAWT example), the recent changes to default_force_scaling() are causing the System() setup call to become extremely slow on my mac. I have modified the force_scaling calculation so that it uses a fraction of the overhead - for the 34m VAWT case on my mac, it now runs in less than 3 seconds as opposed to ~20 minutes. Tests pass locally and I'm making a pull request now, but I'm sure there will be syntax/type changes you'd like to change.