BlockResearchGroup / compas_cra

Coupled Rigid-Block Analysis: Stability-Aware Design of Complex Discrete-Element Assemblies
https://blockresearchgroup.github.io/compas_cra
MIT License
21 stars 7 forks source link

maxIterations #3

Closed daariioo closed 1 year ago

daariioo commented 1 year ago

Hi everyone

While using the cra_solve function, I'm often running into the following error: " ValueError: maxIterations"

Is there a way of bypassing this error (allow more Iterations or change some other parameters as d_bnd or eps)?

daariioo commented 1 year ago

The problem could be solved by taking some adjustments to the model. First, you have to make sure, that the size of your assembly fits more or less inside the provided grid when using cra_view. The forces can then be scaled by the same factor, the model shrank. Second, the density needs to be around 0.1 to 0.9. This shouldn't affect the stability of the assembly and lead to calculations which will not exceed the default amount of maximum iterations.