hexagon logo

Conditional behavior in solver script

I've got a model with contacts that is being run with several thousand cases in a Monte Carlo through the external solver. It runs statics and then dynamics. 99% of the cases run fine but a handful of them fail to obtain a static solution. The easiest way to resolve these failures is to change the contact faceting tolerance slightly (300 to 310 or something) and rerun. Is there a way to automate this behavior within an Adams solver script?
 
This is the behavior I want:
1) run sim/static
2) if failed, change faceting tolerance or some other setting and rerun sim/static
3) otherwise just continue to the dynamic solution
Parents
  • @ilapakurti Venkata Naga Sri Harsha​ 
    Fortunately the change is small enough that it doesn't appreciably impact the simulation results. I've tried changing the faceting tolerance globally and a different subset of cases will end up failing the static solution. It ends up being a bit of a whack-a-mole situation where a handful of cases (~20/2500) will end up in a slightly unstable configuration that the static solution can't work out, no matter what settings (ALIMIT, TLIMIT, MAXIT, TOLERANCE, etc) I use. For the cases that do fail changing the faceting tolerance slightly (could increase it or decrease it) changes the contact mesh enough that the instability goes away and they end up solving statics in 10-15 iterations.
     
    @Jesper Slattengren​ 
    Thanks I'll look into this subroutine.
Reply
  • @ilapakurti Venkata Naga Sri Harsha​ 
    Fortunately the change is small enough that it doesn't appreciably impact the simulation results. I've tried changing the faceting tolerance globally and a different subset of cases will end up failing the static solution. It ends up being a bit of a whack-a-mole situation where a handful of cases (~20/2500) will end up in a slightly unstable configuration that the static solution can't work out, no matter what settings (ALIMIT, TLIMIT, MAXIT, TOLERANCE, etc) I use. For the cases that do fail changing the faceting tolerance slightly (could increase it or decrease it) changes the contact mesh enough that the instability goes away and they end up solving statics in 10-15 iterations.
     
    @Jesper Slattengren​ 
    Thanks I'll look into this subroutine.
Children
No Data