Why are some particles white
I wrote a program to identify the force chain particles. In order to display each force chain, I deleted the non force chain particles and set the color for each force chain, but there is no white. However, as a result, many particles appear white.
This is my display program:
def force_chain_
""" Remove particles other than force chains, so the force chain is displayed
use the index in array force_chain to find the id of force chain particles in neighbors,
then delete the irrelevant particles
"""
## Only force chain particles are displayed
fc_particle_
fc_particle_
fc_particle_
fc_particle_
for index in fc_particle_
fc_particle_
for b in O.bodies:
if isinstance(
if b.id not in fc_particle_
O.bodies.
## Make the particles of the same force chain the same color
fcn = force_chain.
valueToBeRemoved = -1
## Create RGB color array
RGB_array = np.array(
[205,133,
for i in range(fcn):
single_
single_
ran = random.
print(ran)
for particle_index in single_
pid = neighbors[
O.bodies[
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Zhicheng Gao
- Solved:
- Last query:
- Last reply: