Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Dyverso Domains

Add script to Simulation Flow > FramesPre or StepsPre.

Find a particle's neighbours in domain "DY_Domain01" and the given search radius. The number of neighbours will be displayed for every particle:

dyversoDomain = scene.get_DY_Domain("DY_Domain01")

domainParticles = dyversoDomain.getParticles()

searchRadius = 0.2

 

for particle in domainParticles:

particlePos = particle.getPosition()

neighbours = dyversoDomain.getNeighbors(particlePos, searchRadius)

 

scene.message(str(len(neighbours))+" neighbour particles found for particle "+str(particle.getId()))

Standard Particle Fluid Emitters

 

  • No labels