Skip to content

Implementing a Mixed Active and Non-Active Brownian Particle Simulation in Hoomd-blue: Configuration and Resizing #1735

Answered by joaander
idop11 asked this question in Support
Discussion options

You must be logged in to vote

All your particle positions are pre-defined, so there is no need to involve HOOMD-blue when placing them. Use your preferred method to place items in a list when constructing the gsd file. For example:

frame.configuration.box = [L, 2*L, 0, 0, 0, 0]
frame.particles.position = active_brownian_particle_positions + non_active_particle_positions

Assuming you would like the active and non-active particles to have different types:

frame.particles.typeid = [0] * len(active_brownian_particle_positions) + [1] * len(non_active_particle_positions)

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@joaander
Comment options

@idop11
Comment options

@joaander
Comment options

@idop11
Comment options

@joaander
Comment options

Answer selected by idop11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants