"LIGGGHTS WWW Site"_liws - "LAMMPS WWW Site"_lws - "LIGGGHTS Documentation"_ld - "LIGGGHTS Commands"_lc :c

:link(liws,http://www.cfdem.com)
:link(lws,http://lammps.sandia.gov)
:link(ld,Manual.html)
:link(lc,Section_commands.html#comm)

:line

fix wall/gran  command :h3

[Syntax:]

fix ID group-ID style model_keyword model_values wallstyle wallstyleargs general_keywords general_values  ... :pre
ID, group-ID are documented in "fix"_fix.html command :ulb,l
style = {wall/gran} :l

zero or more model_keyword/value pairs may be appended :l
  {model} values = described "here"_Section_gran_models.html
  {tangential} values = described "here"_Section_gran_models.html
  {rolling_friction} values = described "here"_Section_gran_models.html
  {cohesion} values = described "here"_Section_gran_models.html
  {surface} values = described "here"_Section_gran_models.html
  {temperature} value = T0
    T0 = Temperature of the wall (temperature units) :pre

wallstyle = {mesh} or {primitive} :l
wallstyle args for wallstyle {mesh} = {n_meshes} and {meshes} :l
  {n_meshes} value = nm
    nm = # of meshes (see "fix mesh/surface"_fix_mesh_surface.html) to use for the wall (positive integer)
  {meshes} values = meshlist
    meshlist =  id(s) of the mesh(es) (see "fix mesh/surface"_fix_mesh_surface.html) to be used. These must be defined before :pre

wallstyle args for wallstyle {primitive} = {type} or {xplane} or {yplane} or {zplane} or {xcylinder} or {ycylinder} or {zcylinder} :l
  {type} args = tp
    tp = atom_type (material type) of the wall
  {xplane} or {yplane} or {zplane} args = pos
    pos = position plane (distance units)
  {xcylinder} or {ycylinder} or {zcylinder} args = radius c1 c2
    radius = cylinder radius (distance units)
    c1,c2 = coordinates of center axis in other 2 dims (distance units) :pre

zero or more general_keyword/value pairs may be appended :l
general_keyword =  {shear} or {store_force} :l
  {shear} values = dim vshear
    dim = {x} or {y} or {z}
    vshear = magnitude of shear velocity (velocity units) :pre
  {store_force} value = 'yes' or 'no'
    yes, no = determines if the wall force exerted on the particles is stored in a "fix property/atom"_fix_property.html with id force_(ID), where (ID) is the id of the fix wall/gran command. 
:ule

[Examples:]

fix zwalls all wall/gran model hertz tangential history primitive type 1 zplane 0.15
fix meshwalls all wall/gran model hertz tangential history mesh n_meshes 2 meshes cad1 cad2  :pre

[LIGGGHTS vs. LAMMPS Info:]

This command has been improved in accordance with the overhauled
"pair gran"_pair_gran.html styles. Furthermore, it offers the new
{wallstyle mesh}, which enables fix wall/gran to handle complex
wall geometries imported from CAD.

[Description:]

Bound the simulation domain of a granular system with a frictional wall.
All particles in the group interact with the wall when they are close enough
to touch it. The equation for the force between the wall and particles
touching it is the same as the corresponding equation on the
"pair_style granular"_pair_gran.html doc page, in the limit of one of the
 two particles going to infinite radius and mass (flat wall).

You must choose the models matching the pair style used, otherwise
an error is created. As with "pair_style granular"_pair_gran.html, you have
to define the mechanical properties for each material you are used in the
simulation with fix property commands. See "pair_style gran"_pair_gran.html
for more details and "the model doc page"_Section_gran_models.html for
details. 

For wallstyle {mesh}, fix_id1, fix_id2 etc. must be IDs of valid fixes of 
type "fix mesh/surface"_fix_mesh_surface.html, defining the granular mesh 
to be used for the wall. Triangle-particle neighbor lists are built to efficiently 
track particle-triangle contacts. Particle-tri neighbor list build is triggered 
if any particle moves more than half the skin distance or (in case of moving mesh) if the mesh
itself moves more than half the skin distance since the last build. A warning
is generated if a dangerous particle-tri neigh list build is detected
(e.g. if particles are inserted too close to a wall, see section 'Restrictions').
For style {mesh}, the atom_type (material type) is inherited from the atom style provided
in the "fix mesh/surface"_fix_mesh_surface.html command. 

For {wallstyle primitive}, the atom_type (material type) has to be provided via
keyword {type}. Primitve walls can be {xplane} or {yplane} or {zplane} or {cylindrical}. 
The 3 planar options specify a single wall in a dimension.
Wall positions are given by values for lo and hi. For an {xcylinder}, {ycylinder} or
{zcylinder}, the radius and the cylinder axis in the other two dims is specified.

:line

Optionally, primitive walls can be moving, if the shear keyword is appended. 

For the {shear} keyword, the wall moves continuously in the specified dimension
with velocity vshear. The dimension must be tangential to walls with a planar
wallstyle, e.g. in the y or z directions for an {xplane} wall. For {zcylinder}
walls, a dimension of z means the cylinder is moving in the z-direction along
it's axis. A dimension of x or y means the cylinder is spinning around the
z-axis, either in the clockwise direction for vshear > 0 or counter-clockwise
for vshear < 0. In this case, vshear is the tangential velocity of the wall
at whatever radius has been defined. The same applies to {xcylinder} and
{ycylinder} accordingly.

NOTE: The keywords wiggle or shear can NOT be used for {wallstyle mesh}.
For a moving a granular wall with {wallstyle mesh}, use the more flexible
command "fix move/mesh"fix_move_mesh.html, or use the keywords {velocity}
or {angular_velocity} in "fix mesh/surface"_fix_mesh_surface.html.

The keyword {temperature} is used to assign a constant temperature to the wall.
This setting gets effective in conjunction with heat conduction via
"fix heat/gran"_fix_heat_gran.html. For {wallstyle mesh}, the value
for the temperature given in this command is ignored and the temperature
value is specified per mesh via "fix mesh/surface"_fix_mesh_surface.html.

By specifying {store_force} = 'yes', you can instruct the command to
store the wall force exerted on the particles in a
"fix property/atom"_fix_property.html with id force_(ID), where (ID)
is the id of the fix wall/gran command.

The effect of keyword {rolling_friction}, {cohesion}, {tangential_damping},
{viscous} and {absolute_damping} is explanted in "pair gran"_pair_gran.html

[Restart, fix_modify, output, run start/stop, minimize info:]

If applicable, contact history is written to "binary restart files"_restart.html
so simulations can continue properly.
None of the "fix_modify"_fix_modify.html options are relevant to this fix.
No global scalar or vector or are stored by this fix.
If {store_force} = 'yes' is specified, the per-atom wall force can be
accessed by the various output commands via f_force(ID)[1], f_force(ID)[2],
f_force(ID)[3]. (ID) is the id of the fix wall/gran command.
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:]

There can be only one fix wall/gran command with style {mesh}. Note that
this is not really a restriction because you can include multiple fixes
of type "fix mesh/surface"_fix_mesh_surface.html in the fix wall/gran command.

When using style style {mesh}, you have to use the style {bin} for
the "neighbor command"_neighbor.html.

Style {mesh} can not be used in conjunction with triclinic simulation boxes.

When using style {mesh}' in combination with a particle insertion
command, you always have to keep a minimum distance between the wall and the
insertion region that is equal to maximum particle radius + half the skin
defined in the "neighbor command"_neighbor.html. Otherwise, newly inserted
particles interpenetrate the walls before a triangle neighbor list is built
the first time.

The keyword shear can NOT be used for style {mesh}. 
For moving granular wall with style mesh, use "fix move/mesh"fix_move_mesh.html.

Any dimension (xyz) that has a planar granular wall must be non-periodic.

[Related commands:]

"fix mesh/surface"_fix_mesh_surface.html, "fix_move_mesh"_fix_move_mesh.html, "pair_style granular"_pair_gran.html
Models for use with this command are described "here"_Section_gran_models.html

[Default:] 

{model} = 'hertz'
{tangential} = 'history'
{rolling_friction} = 'off'
{cohesion} = 'off'
{surface} = 'default'
