Skip to content

Commit

Permalink
attempting to resolve issue cmelab#126
Browse files Browse the repository at this point in the history
  • Loading branch information
StephMcCallum committed Aug 29, 2024
1 parent c1c0ecd commit d48384a
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions flowermd/base/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,14 +739,24 @@ def run_update_volume(
Lz=final_box_lengths[2],
)
resize_trigger = hoomd.trigger.Periodic(period)
box_ramp = hoomd.variant.Ramp(
A=0, B=1, t_start=self.timestep, t_ramp=int(n_steps)
#box_ramp = hoomd.variant.Ramp(
# A=0, B=1, t_start=self.timestep, t_ramp=int(n_steps)
#)
#initial_box = self.state.box

#changing to inverse ramp based on Hoomd test file
inverse_box_ramp = hoomd.variant.box.InverseVolumeRamp(
initial_box=self.state.box,
final_volume=?? ,
t_start=self.timestep,
t_ramp=int(n_steps)
)
initial_box = self.state.box

#removing box1 and box2 parameters
box_resizer = hoomd.update.BoxResize(
box1=initial_box,
box2=final_box,
#box1=initial_box,
#box2=final_box,
box=inverse_box_ramp
variant=box_ramp,
trigger=resize_trigger,
)
Expand Down

0 comments on commit d48384a

Please sign in to comment.