git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@77 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -17,14 +17,11 @@
|
|||||||
</PRE>
|
</PRE>
|
||||||
<UL><LI>ID = user-assigned name for the region
|
<UL><LI>ID = user-assigned name for the region
|
||||||
|
|
||||||
<LI>style = <I>block</I> or <I>sphere</I> or <I>cylinder</I> or <I>prism</I> or <I>union</I> or <I>intersect</I>
|
<LI>style = <I>block</I> or <I>cylinder</I> or <I>prism</I> or <I>sphere</I> or <I>union</I> or <I>intersect</I>
|
||||||
|
|
||||||
<PRE> <I>block</I> args = xlo xhi ylo yhi zlo zhi
|
<PRE> <I>block</I> args = xlo xhi ylo yhi zlo zhi
|
||||||
xlo,xhi,ylo,yhi,zlo,zhi = bounds of block in all
|
xlo,xhi,ylo,yhi,zlo,zhi = bounds of block in all
|
||||||
dimensions (distance units)
|
dimensions (distance units)
|
||||||
<I>sphere</I> args = x y z radius
|
|
||||||
x,y,z = center of sphere (distance units)
|
|
||||||
radius = radius of sphere (distance units)
|
|
||||||
<I>cylinder</I> args = dim c1 c2 radius lo hi
|
<I>cylinder</I> args = dim c1 c2 radius lo hi
|
||||||
dim = <I>x</I> or <I>y</I> or <I>z</I> = axis of cylinder
|
dim = <I>x</I> or <I>y</I> or <I>z</I> = axis of cylinder
|
||||||
c1,c2 = coords of cylinder axis in other 2 dimensions (distance units)
|
c1,c2 = coords of cylinder axis in other 2 dimensions (distance units)
|
||||||
@ -36,6 +33,9 @@
|
|||||||
yxtilt = distance to shift upper y in x direction (distance units)
|
yxtilt = distance to shift upper y in x direction (distance units)
|
||||||
zxtilt = distance to shift upper z in x direction (distance units)
|
zxtilt = distance to shift upper z in x direction (distance units)
|
||||||
zytilt = distance to shift upper z in y direction (distance units)
|
zytilt = distance to shift upper z in y direction (distance units)
|
||||||
|
<I>sphere</I> args = x y z radius
|
||||||
|
x,y,z = center of sphere (distance units)
|
||||||
|
radius = radius of sphere (distance units)
|
||||||
<I>union</I> args = N reg-ID1 reg-ID2 ...
|
<I>union</I> args = N reg-ID1 reg-ID2 ...
|
||||||
N = # of regions to follow, must be 2 or greater
|
N = # of regions to follow, must be 2 or greater
|
||||||
reg-ID1,reg-ID2, ... = IDs of regions to join together
|
reg-ID1,reg-ID2, ... = IDs of regions to join together
|
||||||
|
|||||||
@ -13,13 +13,10 @@ region command :h3
|
|||||||
region ID style args keyword value ... :pre
|
region ID style args keyword value ... :pre
|
||||||
|
|
||||||
ID = user-assigned name for the region :ulb,l
|
ID = user-assigned name for the region :ulb,l
|
||||||
style = {block} or {sphere} or {cylinder} or {prism} or {union} or {intersect} :l
|
style = {block} or {cylinder} or {prism} or {sphere} or {union} or {intersect} :l
|
||||||
{block} args = xlo xhi ylo yhi zlo zhi
|
{block} args = xlo xhi ylo yhi zlo zhi
|
||||||
xlo,xhi,ylo,yhi,zlo,zhi = bounds of block in all
|
xlo,xhi,ylo,yhi,zlo,zhi = bounds of block in all
|
||||||
dimensions (distance units)
|
dimensions (distance units)
|
||||||
{sphere} args = x y z radius
|
|
||||||
x,y,z = center of sphere (distance units)
|
|
||||||
radius = radius of sphere (distance units)
|
|
||||||
{cylinder} args = dim c1 c2 radius lo hi
|
{cylinder} args = dim c1 c2 radius lo hi
|
||||||
dim = {x} or {y} or {z} = axis of cylinder
|
dim = {x} or {y} or {z} = axis of cylinder
|
||||||
c1,c2 = coords of cylinder axis in other 2 dimensions (distance units)
|
c1,c2 = coords of cylinder axis in other 2 dimensions (distance units)
|
||||||
@ -31,6 +28,9 @@ style = {block} or {sphere} or {cylinder} or {prism} or {union} or {intersect} :
|
|||||||
yxtilt = distance to shift upper y in x direction (distance units)
|
yxtilt = distance to shift upper y in x direction (distance units)
|
||||||
zxtilt = distance to shift upper z in x direction (distance units)
|
zxtilt = distance to shift upper z in x direction (distance units)
|
||||||
zytilt = distance to shift upper z in y direction (distance units)
|
zytilt = distance to shift upper z in y direction (distance units)
|
||||||
|
{sphere} args = x y z radius
|
||||||
|
x,y,z = center of sphere (distance units)
|
||||||
|
radius = radius of sphere (distance units)
|
||||||
{union} args = N reg-ID1 reg-ID2 ...
|
{union} args = N reg-ID1 reg-ID2 ...
|
||||||
N = # of regions to follow, must be 2 or greater
|
N = # of regions to follow, must be 2 or greater
|
||||||
reg-ID1,reg-ID2, ... = IDs of regions to join together
|
reg-ID1,reg-ID2, ... = IDs of regions to join together
|
||||||
|
|||||||
@ -11,6 +11,10 @@
|
|||||||
See the README file in the top-level LAMMPS directory.
|
See the README file in the top-level LAMMPS directory.
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ----------------------------------------------------------------------
|
||||||
|
Contributing author: Pieter in't Veld (SNL)
|
||||||
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#include "stdlib.h"
|
#include "stdlib.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "region_prism.h"
|
#include "region_prism.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user