render function

234 views
Skip to first unread message

Olivia Viessmann

unread,
Mar 1, 2022, 2:35:31 PM3/1/22
to hoomd-users
Hello, 
I am new to hoomd and would like to visualise my simulation results with a render function that takes in the snapshot as the argument: render(snapshot). 
I saw that the hoomd examples on the hoomd website have such a function. 
Could you forward me the function definition so that I could use it in my scripts?
I have fresnel installed. 

Thanks
Olivia

Joshua Anderson

unread,
Mar 1, 2022, 2:44:36 PM3/1/22
to hoomd...@googlegroups.com
Olivia,

You can find the source code for the tutorials, including the render function, here: https://github.com/glotzerlab/hoomd-examples
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan
> --
> 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/f38f4426-7acb-4e0c-a9b0-528c3934eb2fn%40googlegroups.com.

Olivia Viessmann

unread,
Mar 1, 2022, 2:45:54 PM3/1/22
to hoomd...@googlegroups.com
Hi Joshua,

Wow — thanks for the fast reply. Could you sign-post me to where exactly on the git I can find the render function?
Thanks a ton
Olivia
> 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/kZ4uPwU2m7A/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/2A506E12-8EC7-4FEC-87B8-854A39465828%40umich.edu.

Olivia Viessmann

unread,
Mar 1, 2022, 2:49:43 PM3/1/22
to hoomd...@googlegroups.com
Nevermind, I found it!

> On Mar 1, 2022, at 2:44 PM, Joshua Anderson <joaa...@umich.edu> wrote:
>
> 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/kZ4uPwU2m7A/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/2A506E12-8EC7-4FEC-87B8-854A39465828%40umich.edu.

Olivia Viessmann

unread,
Mar 1, 2022, 2:53:47 PM3/1/22
to hoomd...@googlegroups.com
Quick question. Has the ‘hoomd.device’ import changed?
I try to run
gpu = hoomd.device.GPU()
sim = hoomd.Simulation(device=gpu, seed=1)

But get an error that “hoomd has no attribute ‘device’”

Thanks

> On Mar 1, 2022, at 2:44 PM, Joshua Anderson <joaa...@umich.edu> wrote:
>
> 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/kZ4uPwU2m7A/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/2A506E12-8EC7-4FEC-87B8-854A39465828%40umich.edu.

Joshua Anderson

unread,
Mar 1, 2022, 2:56:05 PM3/1/22
to hoomd...@googlegroups.com
This document describes the differences between HOOMD v2.x and v3.x:

https://hoomd-blue.readthedocs.io/en/latest/migrating.html
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan

> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/D4B38D26-126A-409E-9778-7FCB05AC0304%40gmail.com.

Olivia Viessmann

unread,
Mar 1, 2022, 4:13:50 PM3/1/22
to hoomd...@googlegroups.com
Hi Joshua,

Which version of hoomd should be installed to run the tutorials? According to your website I installed 
conda install -c conda-forge/label/hoomd_dev -c conda-forge hoomd

But run into incompatibilities with the tutorial.

Thanks a lot
Olivia


On Mar 1, 2022, at 2:44 PM, Joshua Anderson <joaa...@umich.edu> wrote:

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/kZ4uPwU2m7A/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/2A506E12-8EC7-4FEC-87B8-854A39465828%40umich.edu.

Joshua Anderson

unread,
Mar 1, 2022, 4:36:48 PM3/1/22
to hoomd...@googlegroups.com
Olivia,

You should install v3.0.0-beta.14 following instructions in the documentation: https://hoomd-blue.readthedocs.io/en/latest/index.html
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan

> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/7C51E5E6-08D8-4F4B-9BE4-870901399CE8%40gmail.com.

Olivia Viessmann

unread,
Mar 1, 2022, 5:00:48 PM3/1/22
to hoomd...@googlegroups.com
Hmmm. That’s what I did. The command I posted was from this website.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/6F5F90ED-C2DF-4371-850F-D371AF53BE77%40umich.edu.

Joshua Anderson

unread,
Mar 2, 2022, 8:30:57 AM3/2/22
to hoomd...@googlegroups.com
Olivia,

My apologies, I misread the command you entered.

The output of `conda install` indicates version it will install. For various reasons, conda's dependency solver may choose older versions instead of the latest. Confirm what version is in your conda environment with `conda list hoomd`.

Force install a specific version with `conda install -c conda-forge/label/hoomd_dev hoomd=3.0.0dev14`.

See conda's documentation for more details: https://docs.conda.io/projects/conda/en/latest/commands/install.html

Note: If you are installing on osx-arm64, the package 3.0.0dev14 appears to be missing and dev13 is the latest.
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan

> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/18C49F45-0216-4D68-8678-9C33DEDEC4BC%40gmail.com.

Reply all
Reply to author
Forward
0 new messages