Changing the material of a particle
Asked by
Christopher Stanbridge
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
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply:
To post a message you must log in.