Added flip option to group to invert group selection
This commit is contained in:
parent
43025d0b67
commit
65c2b380cd
2 changed files with 26 additions and 9 deletions
24
README.md
24
README.md
|
@ -185,15 +185,15 @@ This option creates a circular planar vacancy cluster of radius `radius` normal
|
|||
|
||||
`-group select_type group_shape shape_arguments additional keywords`
|
||||
|
||||
This option selects a group of either elements, nodes, atoms and applies some transformation to them.
|
||||
This option selects a group of either elements or atoms and applies some transformation to them.
|
||||
|
||||
`select_type` - Either `nodes`, `atoms`, `elements`, `nodes/atoms`, `all`. When using the option `nodes` only nodes which are within the group are selected, `elements` selects elements based on whether the element center is within the group, `nodes/atoms` selects both nodes and atoms for the group. `all` selects elements based on the element center and atoms based on their position.
|
||||
`select_type` - Either `atoms`, `elements`, or 'both'. `elements` selects elements based on whether the element center is within the group. `both` selects elements based on the element center and atoms based on their position.
|
||||
|
||||
`group_shape` - Specifies what shape the group takes and dictates which options must be passed. Each shape requires different arguments and these arguments are represented by the placeholder `shape_arguments`. The accepted group shapes and arguments are below:
|
||||
|
||||
*Block:*
|
||||
|
||||
`-group nodes block xlo xhi ylo yhi zlo zhi`
|
||||
`-group atoms block xlo xhi ylo yhi zlo zhi`
|
||||
|
||||
This selects a group residing in a block with edges perpendicular to the simulation cell. The block boundaries are given by `xlo xhi ylo yhi zlo zhi`.
|
||||
|
||||
|
@ -201,7 +201,7 @@ This selects a group residing in a block with edges perpendicular to the simulat
|
|||
|
||||
*Wedge:*
|
||||
|
||||
`-group nodes wedge dim1 dim2 bx by bz bw`
|
||||
`-group atoms wedge dim1 dim2 bx by bz bw`
|
||||
This selects a group which are within a wedge shape. The options are given as follows:
|
||||
`dim1` - The dimension containing the plane normal of the wedge base.
|
||||
`dim2` - The thickness dimension. Wedge groups are currently required to span the entire cell thickness in one dimensions which is normal to the triangular face. This through thickness dimension is dim2.
|
||||
|
@ -210,7 +210,7 @@ This selects a group which are within a wedge shape. The options are given as fo
|
|||
|
||||
*Notch:*
|
||||
|
||||
`-group nodes notch dim1 dim2 bx by bz bw tr`
|
||||
`-group atoms notch dim1 dim2 bx by bz bw tr`
|
||||
This shape is similar to a wedge shape except instead of becoming atomically sharp, it finishes in a rounded tip with tip radius `tr`. Options are as follows.
|
||||
`dim1` - The dimension containing the plane normal of the wedge base.
|
||||
`dim2` - The thickness dimension. Wedge groups are currently required to span the entire cell thickness in one dimensions which is normal to the triangular face. This through thickness dimension is dim2.
|
||||
|
@ -266,7 +266,21 @@ random n
|
|||
|
||||
This command selects `n` random atoms and `n` random elements within your group bounds. If using group type `atoms` or `elements` then only `n` random atoms or elements are selected. This random atoms/elements then form the new group.
|
||||
|
||||
**Nodes**
|
||||
|
||||
```
|
||||
nodes
|
||||
```
|
||||
|
||||
This keyword changes the selection criteria when using `elements` or `both` to element nodes instead of element centroids.
|
||||
|
||||
**Flip**
|
||||
|
||||
```
|
||||
flip
|
||||
```
|
||||
|
||||
This keyword changes the group selection criteria from the atoms/elements inside a region to the atoms/elements outside the group.
|
||||
### Option overwrite
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue