Skip to content
Snippets Groups Projects
Commit 4f7400bd authored by Rafael Ravedutti Lucio Machado's avatar Rafael Ravedutti Lucio Machado
Browse files

Provide bigger test case with PBC

parent 57656dfb
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,8 @@ position = psim.add_vector_property('position')
velocity = psim.add_vector_property('velocity')
force = psim.add_vector_property('force', vol=True)
grid = psim.grid_3d(0.0, 4.0, 0.0, 4.0, 0.0, 4.0)
psim.create_particle_lattice(grid, spacing=[1.0, 1.0, 1.0])
grid = psim.grid_3d(0.0, 16.0, 0.0, 16.0, 0.0, 16.0)
psim.create_particle_lattice(grid, spacing=[1.2, 1.2, 1.2])
psim.create_cell_lists(grid, 2.8, 2.8)
psim.periodic(2.8)
......
......@@ -26,7 +26,7 @@ class ParticleSimulation:
self.properties = Properties(self)
self.vars = Variables(self)
self.arrays = Arrays(self)
self.particle_capacity = self.add_var('particle_capacity', Type_Int, 100)
self.particle_capacity = self.add_var('particle_capacity', Type_Int, 10000)
self.nlocal = self.add_var('nlocal', Type_Int)
self.nghost = self.add_var('nghost', Type_Int)
self.nparticles = self.nlocal + self.nghost
......@@ -167,8 +167,8 @@ class ParticleSimulation:
Timestep(self, self.ntimesteps, [
(EnforcePBC(self.pbc).lower(), 20),
(SetupPBC(self.pbc).lower(), 20),
(CellListsBuild(self.cell_lists).lower(), 20),
UpdatePBC(self.pbc).lower(),
(CellListsBuild(self.cell_lists).lower(), 20),
PropertiesResetVolatile(self).lower(),
self.kernels.lower()
]).as_block()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment