Skip to content

Commit 38f3f65

Browse files
committed
fix ufm params
1 parent 7f2cc24 commit 38f3f65

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

calphy/liquid.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ def run_integration(self, iteration=1):
244244
lmp.command("variable blambda equal 1.0-v_flambda")
245245

246246
lmp.command(
247-
"pair_style hybrid/scaled v_flambda %s v_blambda ufm 7.5"
248-
% self.calc._pair_style_with_options[0]
247+
"pair_style hybrid/scaled v_flambda %s v_blambda ufm %f"
248+
% (self.calc._pair_style_with_options[0], self.ufm_cutoff)
249249
)
250250

251251
pc = self.calc.pair_coeff[0]
@@ -261,7 +261,10 @@ def run_integration(self, iteration=1):
261261
)
262262

263263
lmp.command("pair_coeff %s" % pcnew)
264-
lmp.command("pair_coeff * * ufm %f 1.5" % self.eps)
264+
lmp.command(
265+
"pair_coeff * * ufm %f %f"
266+
% (self.eps, self.calc.uhlenbeck_ford_model.sigma)
267+
)
265268

266269
lmp.command("compute c1 all pair %s" % self.calc._pair_style_names[0])
267270
lmp.command("compute c2 all pair ufm")
@@ -341,8 +344,8 @@ def run_integration(self, iteration=1):
341344
lmp.command("variable blambda equal 1.0-v_flambda")
342345

343346
lmp.command(
344-
"pair_style hybrid/scaled v_flambda %s v_blambda ufm 7.5"
345-
% self.calc._pair_style_with_options[0]
347+
"pair_style hybrid/scaled v_flambda %s v_blambda ufm %f"
348+
% (self.calc._pair_style_with_options[0], self.ufm_cutoff)
346349
)
347350

348351
lmp.command("pair_coeff %s" % pcnew)

0 commit comments

Comments
 (0)