martinsw01 / vitber-bio

0 stars 0 forks source link

2 e) Flexibility move #14

Closed martinsw01 closed 2 years ago

martinsw01 commented 2 years ago

Other types of moves are more challenging to implement, but will give more realistic simulations. You are now asked to implement the medium flexibility move, illustrated in the bottom left panel in Figure 5. It has the following rules: Every monomer belonging to the polymer is moved one step in the same horizontal (vertical) direction. If any of these monomers collide with a monomer belonging to a different polymer, the entire row (column) where this occurs is not moved, it remains in place. Collision-free rows (columns) move as normal. In order to highlight the difference between this type of move, and a full flexibility move (which you are not asked to implement!), an illustration of a full flexibility move is also included in Figure 5.

Implement the medium flexibility move. Tip: It might be useful to do this exercise in tandem with 2 f) (#15)