← Back to team overview

yade-users team mailing list archive

Re: [Question #652261]: at the beginning steps, the stresses are the same when i use different young of balls

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Wang,
thanks for the script, it is a bit clearer now. But next time, please try to make it Minimal and Working (e.g. I cannot try it because I don't have 'cccc.gz' file

As I wrote in previous answer, changing material of particles has no effect on existing interactions.
...
O.step() ... creates interactions
...
b.mat.young = whatever # has no effect on existing interactions, only on newly created

you have two options:
1) edit IPhys instead of material, but then you should know the model to change everything necessary:
for i in O.interactions:
   i.phys.E = 1e20
   i.phys.kn = i.phys.E * i.phys.crossSection / I.phys.refLength

2) change b.mat.young before the first O.step() is called

Aslo note that for very high stiffness, you should modify accordingly
your O.dt, otherwise the simulation "explodes".

cheers
Jan

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