From c98147c8e90bf8ea87bc752ee7e7b9706e9571d0 Mon Sep 17 00:00:00 2001
From: sjplimp Description:
Description:
pair_style lubricate 1.0 1 1 1 0 2.3 2.4 1.3 5878598
pair_coeff * *
-variable vmu equal ramp(1,2)
-fix 1 all adapt 1 pair lubricate mu * * vmu
+variable mu equal ramp(1,2)
+fix 1 all adapt 1 pair lubricate mu * * v_mu
pair_style soft 2.5
pair_coeff * * 0.0
variable prefactor equal ramp(0,30)
-fix 1 all adapt 1 pair soft a * * prefactor
+fix 1 all adapt 1 pair soft a * * v_prefactor
variable prefactor equal ramp(0,30) -fix 1 all adapt 1 pair soft a * * prefactor +fix 1 all adapt 1 pair soft a * * v_prefactor
Note that a formula defined by an equal-style variable can use the current timestep, elapsed time in the current run, elapsed diff --git a/doc/pair_soft.txt b/doc/pair_soft.txt index aa6427acad..14df42e66c 100644 --- a/doc/pair_soft.txt +++ b/doc/pair_soft.txt @@ -23,7 +23,7 @@ pair_coeff 1 1 10.0 3.0 :pre pair_style soft 2.5 pair_coeff * * 0.0 variable prefactor equal ramp(0,30) -fix 1 all adapt 1 pair soft a * * prefactor :pre +fix 1 all adapt 1 pair soft a * * v_prefactor :pre [Description:] @@ -59,7 +59,7 @@ all pairwise interactions from 0.0 at the beginning to 30.0 at the end of a run: variable prefactor equal ramp(0,30) -fix 1 all adapt 1 pair soft a * * prefactor :pre +fix 1 all adapt 1 pair soft a * * v_prefactor :pre Note that a formula defined by an "equal-style variable"_variable.html can use the current timestep, elapsed time in the current run, elapsed