-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ZnDraw visualizer #4967
Add ZnDraw visualizer #4967
Conversation
Use the First you need to install Then you can import the relevant classes from the Example usage: from espressomd.zn import Visualizer, LBField
color = {0: "red", 1: "#ff00ff"} # particle type mapping, there are some standard colors but you can also add hex
radii = {0: 0.2, 1: 0.5} # particle type mapping
LBField(system, step_x = 2, step_y=2, step_z=2, scale=3.0)
vis = Visualizer(system=system, colors=color, radii=radii, vector_field = LBField, bonds=False, folded=False)
# Some integration loop
for i in range(1000):
system.integrator.run(10)
vis.update() Of course stuff like This currently only works in jupyter as the server closes down if the script is finished running to ensure no runaway processes. |
9356e41
to
44176e0
Compare
Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
44176e0
to
bab0796
Compare
Description of changes: