From 6a0abc7bfb45fffad00d20d4efa838a49f95b94e Mon Sep 17 00:00:00 2001
From: sjplimp These are fix styles contributed by users, which can be used if
diff --git a/doc/Section_commands.txt b/doc/Section_commands.txt
index b6251e6f92..56331a9e29 100644
--- a/doc/Section_commands.txt
+++ b/doc/Section_commands.txt
@@ -513,6 +513,7 @@ of each style or click on the style itself for a full description:
"nvt/asphere"_fix_nvt_asphere.html,
"nvt/sllod"_fix_nvt_sllod.html,
"nvt/sphere"_fix_nvt_sphere.html,
+"oneway"_fix_oneway.html,
"orient/fcc"_fix_orient_fcc.html,
"planeforce"_fix_planeforce.html,
"poems"_fix_poems.html,
diff --git a/doc/fix_oneway.html b/doc/fix_oneway.html
new file mode 100644
index 0000000000..02f7a2d358
--- /dev/null
+++ b/doc/fix_oneway.html
@@ -0,0 +1,69 @@
+
+ Syntax:
+ Examples:
+ Description:
+ Enforce that particles in the group and in a given region can only
+move in one direction. This is done by reversing a particle's
+velocity component, if it has the wrong sign in the specified
+dimension. The effect is that the particle moves in one direction
+only.
+ This can be used, for example, as a simple model of a semi-permeable
+membrane, or as an implementation of Maxwell's demon.
+ Restart, fix_modify, output, run start/stop, minimize info:
+ No information about this fix is written to binary restart
+files. None of the fix_modify options
+are relevant to this fix. No global or per-atom quantities are stored
+by this fix for access by various output
+commands. No parameter of this fix can
+be used with the start/stop keywords of the run command.
+This fix is not invoked during energy minimization.
+ Restrictions: none
+ Related commands:
+ fix wall/reflect command
+ Default: none
+gld gravity heat indent langevin lineforce momentum move msst neb nph nphug nph/asphere nph/sphere npt npt/asphere
-npt/sphere nve nve/asphere nve/asphere/noforce nve/body nve/limit nve/line nve/noforce
-nve/sphere nve/tri nvt nvt/asphere nvt/sllod nvt/sphere orient/fcc planeforce
-poems pour press/berendsen print property/atom qeq/comb reax/bonds recenter
-restrain rigid rigid/nph rigid/npt rigid/nve rigid/nvt rigid/small setforce
-shake spring spring/rg spring/self srd store/force store/state temp/berendsen
-temp/csvr temp/rescale thermal/conductivity tmd ttm tune/kspace vector viscosity
-viscous wall/colloid wall/gran wall/harmonic wall/lj1043 wall/lj126 wall/lj93 wall/piston wall/reflect wall/region wall/srd
+
+nve/sphere nve/tri nvt nvt/asphere nvt/sllod nvt/sphere oneway orient/fcc
+planeforce poems pour press/berendsen print property/atom qeq/comb reax/bonds
+recenter restrain rigid rigid/nph rigid/npt rigid/nve rigid/nvt rigid/small
+setforce shake spring spring/rg spring/self srd store/force store/state
+temp/berendsen temp/csvr temp/rescale thermal/conductivity tmd ttm tune/kspace vector
+viscosity viscous wall/colloid wall/gran wall/harmonic wall/lj1043 wall/lj126 wall/lj93 wall/piston wall/reflect wall/region wall/srd
+
+fix oneway command
+
+fix ID group-ID N oneway region-ID direction
+
+
+fix ions 10 oneway semi -x
+fix all 1 oneway left -z
+fix all 1 oneway right z
+
+
+
+
+
+
diff --git a/doc/fix_oneway.txt b/doc/fix_oneway.txt
new file mode 100644
index 0000000000..4f0b4ae279
--- /dev/null
+++ b/doc/fix_oneway.txt
@@ -0,0 +1,60 @@
+"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
+
+:link(lws,http://lammps.sandia.gov)
+:link(ld,Manual.html)
+:link(lc,Section_commands.html#comm)
+
+:line
+
+fix oneway command :h3
+
+[Syntax:]
+
+fix ID group-ID N oneway region-ID direction :pre
+
+ID, group-ID are documented in "fix"_fix.html command :ulb,l
+oneway = style name of this fix command :l
+N = apply this fix every this many timesteps :l
+region-ID = ID of region where fix is active :l
+direction = {x} or {-x} or {y} or {-y} or {z} or {-z} = coordinate and direction of the oneway constraint :l
+:ule
+
+[Examples:]
+
+fix ions 10 oneway semi -x
+fix all 1 oneway left -z
+fix all 1 oneway right z :pre
+
+[Description:]
+
+Enforce that particles in the group and in a given region can only
+move in one direction. This is done by reversing a particle's
+velocity component, if it has the wrong sign in the specified
+dimension. The effect is that the particle moves in one direction
+only.
+
+This can be used, for example, as a simple model of a semi-permeable
+membrane, or as an implementation of Maxwell's demon.
+
+:line
+
+[Restart, fix_modify, output, run start/stop, minimize info:]
+
+No information about this fix is written to "binary restart
+files"_restart.html. None of the "fix_modify"_fix_modify.html options
+are relevant to this fix. No global or per-atom quantities are stored
+by this fix for access by various "output
+commands"_Section_howto.html#howto_15. No parameter of this fix can
+be used with the {start/stop} keywords of the "run"_run.html command.
+This fix is not invoked during "energy minimization"_minimize.html.
+
+[Restrictions:] none
+
+[Related commands:]
+
+"fix wall/reflect"_fix_wall_reflect.html command
+
+[Default:] none
+
+:line
+
diff --git a/doc/fix_wall_reflect.html b/doc/fix_wall_reflect.html
index 47fb6c1e86..8e87e80db5 100644
--- a/doc/fix_wall_reflect.html
+++ b/doc/fix_wall_reflect.html
@@ -161,7 +161,7 @@ error.
Related commands:
-fix wall/lj93 command +
Default: none
diff --git a/doc/fix_wall_reflect.txt b/doc/fix_wall_reflect.txt index 1087fe733d..df3a5481bc 100644 --- a/doc/fix_wall_reflect.txt +++ b/doc/fix_wall_reflect.txt @@ -150,7 +150,7 @@ error. [Related commands:] -"fix wall/lj93"_fix_wall.html command +"fix wall/lj93"_fix_wall.html, "fix oneway"_fix_oneway.html [Default:] none