Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91042605
pair_dsmc.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Nov 7, 06:00
Size
5 KB
Mime Type
text/html
Expires
Sat, Nov 9, 06:00 (2 d)
Engine
blob
Format
Raw Data
Handle
22182196
Attached To
rLAMMPS lammps
pair_dsmc.html
View Options
<HTML>
<CENTER><A
HREF =
"http://lammps.sandia.gov"
>
LAMMPS WWW Site
</A>
-
<A
HREF =
"Manual.html"
>
LAMMPS Documentation
</A>
-
<A
HREF =
"Section_commands.html#comm"
>
LAMMPS Commands
</A>
</CENTER>
<HR>
<H3>
pair_style dsmc command
</H3>
<P><B>
Syntax:
</B>
</P>
<PRE>
pair_style dsmc max_cell_size seed weighting Tref Nrecompute Nsample
</PRE>
<UL><LI>
max_cell_size = global maximum cell size for DSMC interactions (distance units)
<LI>
seed = random # seed (positive integer)
<LI>
weighting = macroparticle weighting
<LI>
Tref = reference temperature (temperature units)
<LI>
Nrecompute = recompute v*sigma_max every this many timesteps (timesteps)
<LI>
Nsample = sample this many times in recomputing v*sigma_max
</UL>
<P><B>
Examples:
</B>
</P>
<PRE>
pair_style dsmc 2.5 34387 10 1.0 100 20
pair_coeff * * 1.0
pair_coeff 1 1 1.0
</PRE>
<P><B>
Description:
</B>
</P>
<P>
Style
<I>
dsmc
</I>
computes collisions between pairs of particles for a
direct simulation Monte Carlo (DSMC) model following the exposition in
<A
HREF =
"#Bird"
>
(Bird)
</A>
. Each collision resets the velocities of the two
particles involved. The number of pairwise collisions for each pair
or particle types and the length scale within which they occur are
determined by the parameters of the pair_style and pair_coeff
commands.
</P>
<P>
Stochastic collisions are performed using the variable hard sphere
(VHS) approach, with the user-defined
<I>
max_cell_size
</I>
value used as
the maximum DSMC cell size, and reference cross-sections for
collisions given using the pair_coeff command.
</P>
<P>
There is no pairwise energy or virial contributions associated with
this pair style.
</P>
<P>
The following coefficient must be defined for each pair of atoms types
via the
<A
HREF =
"pair_coeff.html"
>
pair_coeff
</A>
command as in the examples above,
or in the data file or restart files read by the
<A
HREF =
"read_data.html"
>
read_data
</A>
or
<A
HREF =
"read_restart.html"
>
read_restart
</A>
commands:
</P>
<UL><LI>
sigma (area units, i.e. distance-squared)
</UL>
<P>
The global DSMC
<I>
max_cell_size
</I>
determines the maximum cell length
used in the DSMC calculation. A structured mesh is overlayed on the
simulation box such that an integer number of cells are created in
each direction for each processor's sub-domain. Cell lengths are
adjusted up to the user-specified maximum cell size.
</P>
<HR>
<P>
To perform a DSMC simulation with LAMMPS, several additional options
should be set in your input script, though LAMMPS does not check for
these settings.
</P>
<P>
Since this pair style does not compute particle forces, you should use
the "fix nve/noforce" time integration fix for the DSMC particles,
e.g.
</P>
<PRE>
fix 1 all nve/noforce
</PRE>
<P>
This pair style assumes that all particles will communicated to
neighboring processors every timestep as they move. This makes it
possible to perform all collisions between pairs of particles that are
on the same processor. To ensure this occurs, you should use
these commands:
</P>
<PRE>
neighbor 0.0 bin
neigh_modify every 1 delay 0 check no
atom_modify sort 0 0.0
communicate single cutoff 0.0
</PRE>
<P>
These commands insure that LAMMPS communicates particles to
neighboring processors every timestep and that no ghost atoms are
created. The output statistics for a simulation run should indicate
there are no ghost particles or neighbors.
</P>
<HR>
<P><B>
Mixing, shift, table, tail correction, restart, rRESPA info
</B>
:
</P>
<P>
This pair style does not support mixing. Thus, coefficients for all
I,J pairs must be specified explicitly.
</P>
<P>
This pair style does not support the
<A
HREF =
"pair_modify.html"
>
pair_modify
</A>
shift option for the energy of the pair interaction.
</P>
<P>
The
<A
HREF =
"pair_modify.html"
>
pair_modify
</A>
table option is not relevant
for this pair style.
</P>
<P>
This pair style does not support the
<A
HREF =
"pair_modify.html"
>
pair_modify
</A>
tail option for adding long-range tail corrections to energy and
pressure.
</P>
<P>
This pair style writes its information to
<A
HREF =
"restart.html"
>
binary restart
files
</A>
, so pair_style and pair_coeff commands do not need
to be specified in an input script that reads a restart file. Note
that the user-specified random number seed is stored in the restart
file, so when a simulation is restarted, each processor will
re-initialize its random number generator the same way it did
initially. This means the random forces will be random, but will not
be the same as they would have been if the original simulation had
continued past the restart time.
</P>
<P>
This pair style can only be used via the
<I>
pair
</I>
keyword of the
<A
HREF =
"run_style.html"
>
run_style respa
</A>
command. It does not support the
<I>
inner
</I>
,
<I>
middle
</I>
,
<I>
outer
</I>
keywords.
</P>
<HR>
<P><B>
Restrictions:
</B>
</P>
<P>
This style is part of the MC package. It is only enabled if LAMMPS
was built with that package. See the
<A
HREF =
"Section_start.html#start_3"
>
Making
LAMMPS
</A>
section for more info.
</P>
<P><B>
Related commands:
</B>
</P>
<P><A
HREF =
"pair_coeff.html"
>
pair_coeff
</A>
,
<A
HREF =
"fix_nve_noforce.html"
>
fix nve/noforce
</A>
,
<A
HREF =
"neigh_modify.html"
>
neigh_modify
</A>
,
<A
HREF =
"neighbor.html"
>
neighbor
</A>
,
<A
HREF =
"communicate.html"
>
communicate
</A>
</P>
<P><B>
Default:
</B>
none
</P>
<HR>
<A
NAME =
"Bird"
></A>
<P><B>
(Bird)
</B>
G. A. Bird, "Molecular Gas Dynamics and the Direct Simulation
of Gas Flows" (1994).
</P>
</HTML>
Event Timeline
Log In to Comment