How to delete particles out of the domain

41 views
Skip to first unread message

Ruibo Yi

unread,
Aug 25, 2022, 3:35:17 AM8/25/22
to pysph-users
Dear developers, 

In the simulation, particles fly out of the boundary, and I want to delete these particles beyond the domain. How do I do this?

My code for the Domain setup is as follows:
domain = DomainManager(xmin=-0.2/2, xmax=0.2/2, ymin=-0.2/2, ymax=0.2h/2, zmin=-0.02, zmax=0.2*5,  periodic_in_x=True, periodic_in_y=True, periodic_in_z=False, n_layers=1)

I've set the range in the Z direction ( zmin=-0.02, zmax=0.2*5, periodic_in_z=False), but the particle will still cross the domain. I'm not sure if the area in domainManager is just for periodic boundaries or mirror boundaries. 

I see  pysph.base.nnps_base.CPUDomainManager, pysph.base.nnps_base.DomainManager, pysph.base.nnps_base.DomainManagerBase in Doc, what's the difference between these?

Reply all
Reply to author
Forward
0 new messages