Skip to content

How can I update the position of a wall throughout the simulation? #1874

Answered by joaander
aldorvasq asked this question in Support
Discussion options

You must be logged in to vote

Use:

    def act(self, timestep):
        wall_position = -35 + timestep * 0.0005 
        left = hoomd.wall.Plane(origin=(wall_position, 0, 0), normal=(1, 0, 0))
        self.lj_wall.walls[0] = left

Your original script should have worked. I am able to reproduce the Buffer is full error message but did not see an obvious reason for the error. I have opened #1879 to track the defect.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aldorvasq
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