Skip to content

Commit

Permalink
reverse scaling temp
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Oct 1, 2024
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
Expand Up @@ -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]
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a7c3171

Please sign in to comment.