Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96580842
dimension.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
Sat, Dec 28, 12:01
Size
1 KB
Mime Type
text/html
Expires
Mon, Dec 30, 12:01 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23211176
Attached To
rLAMMPS lammps
dimension.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>dimension command
</H3>
<P><B>Syntax:</B>
</P>
<PRE>dimension N
</PRE>
<UL><LI>N = 2 or 3
</UL>
<P><B>Examples:</B>
</P>
<PRE>dimension 2
</PRE>
<P><B>Description:</B>
</P>
<P>Set the dimensionality of the simulation. By default LAMMPS runs 3d
simulations. To run a 2d simulation, this command should be used
prior to setting up a simulation box via the
<A HREF = "create_box.html">create_box</A> or <A HREF = "read_data.html">read_data</A> commands.
Restart files also store this setting.
</P>
<P>See the discussion in <A HREF = "Section_howto.html">Section_howto</A> for
additional instructions on how to run 2d simulations.
</P>
<P>IMPORTANT NOTE: Some models in LAMMPS treat particles as finite-size
spheres or ellipsoids, as opposed to point particles. In 2d, the
particles will still be spheres or ellipsoids, not circular disks or
ellipses, meaning their moment of inertia will be the same as in 3d.
</P>
<P><B>Restrictions:</B>
</P>
<P>This command must be used before the simulation box is defined by a
<A HREF = "read_data.html">read_data</A> or <A HREF = "create_box.html">create_box</A> command.
</P>
<P><B>Related commands:</B>
</P>
<P><A HREF = "fix_enforce2d.html">fix enforce2d</A>
</P>
<P><B>Default:</B>
</P>
<PRE>dimension 3
</PRE>
</HTML>
Event Timeline
Log In to Comment