Skip to content

Commit

Permalink
update for tri
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Sep 11, 2023
1 parent ccda67b commit 63a4a2a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions calphy/phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def run_iterative_pressure_convergence(self, lmp):
self.fix_berendsen(lmp)


lmp.command("fix 2 all ave/time %d %d %d v_mlx v_mly v_mlz v_mpress file avg.dat"%(int(self.calc.md.n_every_steps),
lmp.command("fix 2 all ave/time %d %d %d v_mlx v_mly v_mlz v_mpress v_mvol v_mxy v_mxz v_myz file avg.dat"%(int(self.calc.md.n_every_steps),
int(self.calc.md.n_repeat_steps), int(self.calc.md.n_every_steps*self.calc.md.n_repeat_steps)))

laststd = 0.00
Expand Down Expand Up @@ -555,9 +555,9 @@ def run_minimal_pressure_convergence(self, lmp):
self.fix_berendsen(lmp)


lmp.command("fix 2 all ave/time %d %d %d v_mlx v_mly v_mlz v_mpress file avg.dat"%(int(self.calc.md.n_every_steps),
lmp.command("fix 2 all ave/time %d %d %d v_mlx v_mly v_mlz v_mpress v_mvol v_mxy v_mxz v_myz file avg.dat"%(int(self.calc.md.n_every_steps),
int(self.calc.md.n_repeat_steps), int(self.calc.md.n_every_steps*self.calc.md.n_repeat_steps)))

lmp.command("run %d"%int(self.calc.md.n_small_steps))
lmp.command("run %d"%int(self.calc.n_equilibration_steps))

Expand Down
6 changes: 6 additions & 0 deletions calphy/solid.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ def run_interactive_averaging(self):
lmp.command("variable mlx equal lx")
lmp.command("variable mly equal ly")
lmp.command("variable mlz equal lz")
lmp.command("variable mxy equal xy")
lmp.command("variable mxz equal xz")
lmp.command("variable myz equal yz")
lmp.command("variable mpress equal press")

#Run if a constrained lattice is not needed
Expand Down Expand Up @@ -301,6 +304,9 @@ def run_minimal_averaging(self):
lmp.command("variable mlx equal lx")
lmp.command("variable mly equal ly")
lmp.command("variable mlz equal lz")
lmp.command("variable mxy equal xy")
lmp.command("variable mxz equal xz")
lmp.command("variable myz equal yz")
lmp.command("variable mpress equal press")

#Run if a constrained lattice is not needed
Expand Down
2 changes: 1 addition & 1 deletion notebooks/running_from_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 63a4a2a

Please sign in to comment.