← Back to team overview

yade-users team mailing list archive

Re: [Question #700448]: Using two engines in a code

 

Question #700448 on Yade changed:
https://answers.launchpad.net/yade/+question/700448

    Status: Open => Answered

Karol Brzezinski proposed the following answer:
Hi,

sorry for the late answer. Did you try to just prepare different
InteractionLoop engine and substitute it instead of previous one in
O.engines?

Let's assume that you use InteractionLoop(Cundall law related functors).
When you reach the next stage, try to substitute new engine.

O.engines[2] = InteractionLoop(HertzMindlin related functors)
O.interactions.clear()

Please note that it most likely will result in an effective explosion.
Stiffness is computed differently for Cundall and Hertz laws. Certain
overlaps of particles provides balance in the model with one law, but
this equilibrium won't last after switching to another one.

Cheers,
Karol

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.