Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverse scaling temp
Browse files Browse the repository at this point in the history
srmnitc committed Oct 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f4ad60b commit a7c3171
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions calphy/phase.py
Original file line number Diff line number Diff line change
@@ -800,8 +800,8 @@ def reversible_scaling(self, iteration=1):
lmp.command("variable fscale equal v_flambda-1.0")
lmp.command("variable bscale equal v_blambda-1.0")
lmp.command("variable one equal 1.0")
lmp.command(f"variable ftemp equal v_flambda*{self.calc._temperature_stop}")
lmp.command(f"variable btemp equal v_blambda*{self.calc._temperature}")
lmp.command(f"variable ftemp equal v_blambda*{self.calc._temperature_stop}")
lmp.command(f"variable btemp equal v_flambda*{self.calc._temperature_stop}")

#set up potential
pc = self.calc.pair_coeff[0]
@@ -865,6 +865,8 @@ def reversible_scaling(self, iteration=1):
lmp.command("variable fscale equal v_flambda-1.0")
lmp.command("variable bscale equal v_blambda-1.0")
lmp.command("variable one equal 1.0")
lmp.command(f"variable ftemp equal v_blambda*{self.calc._temperature_stop}")
lmp.command(f"variable btemp equal v_flambda*{self.calc._temperature_stop}")

lmp.command("pair_style hybrid/scaled v_one %s v_bscale %s"%(self.calc._pair_style_with_options[0], self.calc._pair_style_with_options[0]))
lmp.command("pair_coeff %s"%pcnew1)

0 comments on commit a7c3171

Please sign in to comment.