yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #10512
[Question #257957]: Changing the material of a particle
New question #257957 on Yade:
https://answers.launchpad.net/yade/+question/257957
Hi guys,
If I haven't said so already, thank you immensely for your prompt and effective responses to previous questions. This is a quick one.
I wish to load particles from a previous simulation into a new one using O.load. However, in the original simulation, the particles were made of a material with the name "aluminium" (not defined in the new simulation). As soon as the particles are imported, I wish to change their material to "steel", which is defined in the new simulation.
Can I just do this (without producing any errors)?
for b in O.bodies:
b.mat = steel
Cheers,
Christopher Stanbridge
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.