2006-09-22 00:22:34 +08:00
|
|
|
"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 gravity command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2007-07-09 22:09:39 +08:00
|
|
|
fix ID group gravity style magnitude args :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
ID, group are documented in "fix"_fix.html command :ulb,l
|
|
|
|
gravity = style name of this fix command :l
|
2007-07-09 22:09:39 +08:00
|
|
|
magnitude = size of acceleration (force/mass units) :l
|
2006-09-22 00:22:34 +08:00
|
|
|
style = {chute} or {spherical} or {gradient} or {vector} :l
|
|
|
|
{chute} args = angle
|
2007-07-09 22:09:39 +08:00
|
|
|
angle = angle in +x away from -z or -y axis in 3d/2d (in degrees)
|
2006-09-22 00:22:34 +08:00
|
|
|
{spherical} args = phi theta
|
|
|
|
phi = azimuthal angle from +x axis (in degrees)
|
2007-07-09 22:09:39 +08:00
|
|
|
theta = angle from +z or +y axis in 3d/2d (in degrees)
|
2006-09-22 00:22:34 +08:00
|
|
|
{gradient} args = phi theta phi_grad theta_grad
|
|
|
|
phi = azimuthal angle from +x axis (in degrees)
|
2007-07-09 22:09:39 +08:00
|
|
|
theta = angle from +z or +y axis in 3d/2d (in degrees)
|
2006-09-22 00:22:34 +08:00
|
|
|
phi_grad = rate of change of angle phi (full rotations per time unit)
|
2007-07-09 22:09:39 +08:00
|
|
|
theta_grad = rate of change of angle theta (full rotations per time unit)
|
|
|
|
{vector} args = x y z
|
2006-09-22 00:22:34 +08:00
|
|
|
x y z = vector direction to apply the acceleration :pre
|
|
|
|
:ule
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2007-07-09 22:09:39 +08:00
|
|
|
fix 1 all gravity 1.0 chute 24.0
|
|
|
|
fix 1 all gravity 1.0 spherical 0.0 -180.0
|
|
|
|
fix 1 all gravity 1.0 gradient 0.0 -180.0 0.0 0.1
|
|
|
|
fix 1 all gravity 100.0 vector 1 1 0 :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
2007-07-09 22:09:39 +08:00
|
|
|
Impose an additional acceleration on each particle in the group. This
|
|
|
|
fix is typically used with granular systems to include a "gravity"
|
|
|
|
term acting on the macroscopic particles. More generally, it can
|
|
|
|
represent any kind of driving field, e.g. a pressure gradient inducing
|
2008-03-01 09:13:20 +08:00
|
|
|
a Poiseuille flow in a fluid. Note that this fix operates differently
|
2007-07-09 22:09:39 +08:00
|
|
|
than the "fix addforce"_fix_addforce.html command. The addforce fix
|
|
|
|
adds the same force to each atom, independent of its mass. This
|
|
|
|
command imparts the same acceleration to each atom (force/mass).
|
|
|
|
|
|
|
|
The {magnitude} of the acceleration is specified in force/mass units.
|
|
|
|
For granular systems (LJ units) this is typically 1.0. See the
|
|
|
|
"units"_units.html command for details.
|
|
|
|
|
|
|
|
Style {chute} is typically used for simulations of chute flow where
|
|
|
|
the specified angle is the chute angle, with flow occurring in the +x
|
|
|
|
direction. For 3d systems, the tilt is away from the z axis; for 2d
|
|
|
|
systems, the tilt is away from the y axis.
|
|
|
|
|
|
|
|
Style {spherical} allows an arbitrary 3d direction to be specified for
|
|
|
|
the acceleration vector. Phi and theta are defined in the usual
|
|
|
|
spherical coordinates. Thus for acceleration acting in the -z
|
|
|
|
direction, theta would be 180.0 (or -180.0). Theta = 90.0 and phi =
|
|
|
|
-90.0 would mean acceleration acts in the -y direction. For 2d
|
|
|
|
systems, {phi} is ignored and {theta} is an angle in the xy plane
|
|
|
|
where theta = 0.0 is the y-axis.
|
|
|
|
|
|
|
|
Style {gradient} is the same as style {spherical} except that the
|
|
|
|
direction of the acceleration vector is time dependent. The units of
|
|
|
|
the gradient arguments are in full rotations per time unit. E.g. a
|
|
|
|
timestep of 0.001 and a gradient of 0.1 means the acceleration vector
|
|
|
|
would rotate thru 360 degrees every 10,000 timesteps. For the
|
|
|
|
time-dependent case, the initial direction of the acceleration vector
|
2009-12-04 02:37:34 +08:00
|
|
|
is set to phi,theta when the fix is specified and evolves thereafter.
|
|
|
|
For 2d systems, {phi} and {phi_grad} are ignored.
|
2007-07-09 22:09:39 +08:00
|
|
|
|
|
|
|
Style {vector} imposes an acceleration in the vector direction given
|
|
|
|
by (x,y,z). For 2d systems, the z component is ignored.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2007-10-11 06:28:11 +08:00
|
|
|
[Restart, fix_modify, output, run start/stop, minimize info:]
|
2007-06-26 08:03:39 +08:00
|
|
|
|
|
|
|
No information about this fix is written to "binary restart
|
|
|
|
files"_restart.html. None of the "fix_modify"_fix_modify.html options
|
2010-04-03 00:51:06 +08:00
|
|
|
are relevant to this fix. No global or per-atom quantities are stored
|
|
|
|
by this fix for access by various "output
|
2009-12-04 02:37:34 +08:00
|
|
|
commands"_Section_howto.html#4_15. No parameter of this fix can be
|
|
|
|
used with the {start/stop} keywords of the "run"_run.html command.
|
2007-10-11 06:28:11 +08:00
|
|
|
This fix is not invoked during "energy minimization"_minimize.html.
|
2007-06-26 08:03:39 +08:00
|
|
|
|
2007-07-09 22:09:39 +08:00
|
|
|
[Restrictions:] none
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
|
|
|
"atom_style granular"_atom_style.html, "fix addforce"_fix_addforce.html
|
|
|
|
|
|
|
|
[Default:] none
|