From 5a0bd3bdb3f99407f19bfe6d3085d9dfc97347ae Mon Sep 17 00:00:00 2001
From: sjplimp
Any of the 3 quantities defining the E-field components can be -specified as an equal-style or atom-style variable, namely -ex, ey, ez. If the value is a variable, it should be specified -as v_ID, where ID is the variable ID. In this case, the variable will -be evaluated each timestep, and its value used to determine the -E-field component. +specified as an equal-style or atom-style variable, +namely ex, ey, ez. If the value is a variable, it should be +specified as v_ID, where ID is the variable ID. In this case, the +variable will be evaluated each timestep, and its value used to +determine the E-field component.
Equal-style variables can specify formulas with various mathematical functions, and include thermo_style command diff --git a/doc/fix_efield.txt b/doc/fix_efield.txt index d62757f415..3cb4801cb1 100644 --- a/doc/fix_efield.txt +++ b/doc/fix_efield.txt @@ -28,11 +28,11 @@ Add a force F = qE to each charged atom in the group due to an external electric field being applied to the system. Any of the 3 quantities defining the E-field components can be -specified as an equal-style or atom-style "variable"_variable, namely -{ex}, {ey}, {ez}. If the value is a variable, it should be specified -as v_ID, where ID is the variable ID. In this case, the variable will -be evaluated each timestep, and its value used to determine the -E-field component. +specified as an equal-style or atom-style "variable"_variable.html, +namely {ex}, {ey}, {ez}. If the value is a variable, it should be +specified as v_ID, where ID is the variable ID. In this case, the +variable will be evaluated each timestep, and its value used to +determine the E-field component. Equal-style variables can specify formulas with various mathematical functions, and include "thermo_style"_thermo_style.html command