--
You received this message because you are subscribed to the Google Groups "hoomd-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hoomd-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/69871c93-ebcd-48f9-9e89-5a437edf7596n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/bc868613-1dcb-4a1e-bf07-bec237bea731n%40googlegroups.com.
<h1.png><h3.png><h2.png>
You received this message because you are subscribed to a topic in the Google Groups "hoomd-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hoomd-users/XDwYmHLixIk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hoomd-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/6BD39701-166F-4DAB-9C51-60D16D855897%40umich.edu.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/CAEPx1Dw7cx6YSAPrtaQo4niYvQCZW5FshX4E0FgKtsrJhQA-Sg%40mail.gmail.com.
Hi,I have
changed the volume to 0.001 but the vertices is still not changing. I used
the updater.shape_moves as suggested but i keep getting this error even
after running the simulation for 100 steps"DataAccessError: The property shape_moves is
unavailable until the simulation runs for 0 or more steps"Please find below the edited code
cube_verts = [(0.05, 0.05, 0.05), (0.05, -0.05, 0.05), (0.05, 0.05, -0.05), (0.05, -0.05, -0.05),
(-0.05, 0.05, 0.05),(-0.05, -0.05, 0.05),(-0.05, 0.05, -0.05),(-0.05, -0.05, -0.05)]
mc.shape['cube'] = dict(vertices=numpy.asarray([(0.05, 0.05, 0.05), (0.05, -0.05, 0.05), (0.05, 0.05, -0.05), (0.05, -0.05, -0.05),
(-0.05, 0.05, 0.05),(-0.05, -0.05, 0.05),(-0.05, 0.05, -0.05),(-0.05, -0.05, -0.05)]))
vertex_move = hoomd.hpmc.shape_move.Vertex(default_step_size=0.0005,
vertex_move_probability=1)
vertex_move.param_ratio=0.2
vertex_move.volume['cube']=0.001
updater = hoomd.hpmc.update.Shape(shape_move=vertex_move,
trigger=hoomd.trigger.Periodic(1),
type_select=1,
nsweeps=1)
tune = hoomd.hpmc.tune.MoveSize.scale_solver(trigger= hoomd.trigger.Trigger(),
moves=['a', 'd'],
target=0.5,
max_translation_move=0.2,
max_rotation_move=0.2)
sim.run(100)
updater.shape_moves
render(sim.state.get_snapshot())
Thanks,
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/D3859ECB-3675-44C8-95AE-BC8DACAB22B4%40umich.edu.
sim.operations.updaters.append(updater)
ORsim.operations += updater
Joshua's suggestions are still very relevant, so keep them in mind.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/CAEPx1Dza-6qXQm4V-iZBwP7FqPQZvXD%3DOmerj-RfTHR0ZopRrQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/CA%2Bg96q02m81Vu9VvZ-_y5X5R_5Oqp2cof4RtnsO5iRA_ht6EYg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/8fef8ae0-a701-4f33-b4c2-1b8ceb6cdad3n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/73BE7B19-3560-4583-BC98-296A97AEE6F9%40umich.edu.
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/CAEPx1DwECOVPGzx1Psb_i3jKY%3DOXVcH7LsmeFy1NwsOmox6iLg%40mail.gmail.com.
_HOOMDDict{'vertices':
[(0.05000000074505806, 0.05000000074505806, 0.05000000074505806),
(0.05000000074505806, -0.05000000074505806, 0.05000000074505806),
(0.05000000074505806, 0.05000000074505806, -0.05000000074505806),
(0.05000000074505806, -0.05000000074505806, -0.05000000074505806),
(-0.05000000074505806, 0.05000000074505806, 0.05000000074505806),
(-0.05000000074505806, -0.05000000074505806, 0.05000000074505806),
(-0.05000000074505806, 0.05000000074505806, -0.05000000074505806),
(-0.05000000074505806, -0.05000000074505806, -0.05000000074505806)],
'ignore_statistics': False, 'sweep_radius': 0.0}
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/2F9B96E9-BC40-45A5-BFBF-004C9A96FDC6%40umich.edu.
Hey Oyin,
Best,
Brandon
To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/CAEPx1Dy0J8yWxSvuJqu3xTzNX7nYoAEQRnE2HcNNixNXbma8OA%40mail.gmail.com.