attrib — An attribute of a particle set.
attrib ::= (#PCDATA)
The attrib element contains the data for a particle attribute, such as position.
Create a container for an attribute and assign the values. The size of the attribute container is set by the size of the parent particleset.
#PCDATA
Required, the name of the attribute of a particle set.
Required, the data type.
Optional, the unit of the attribute.
Optional, the number of elements of the data type. Default is "-1", indicating that the size is set by its parent node.
Optional, an external source that stores the data.
Optional. (overwrite|append), The Default is to overwrite or create a new object, if the parent element is a builder object.
For position-type attributes, condition="unit" (or "1") means that the attribute is in the unit of a unitcell, while condition="cart" (or "0") means that the attribute is in the Cartesian unit. Default is condition="cart"
This example shows how to create a particle set for H2 molecule using attrib.
<particleset name="H2" size="2">
<attrib name="position" condition="cart" datatype="posArray">
-1.0 0 0
1.0 0 0
</attrib>
<attrib name="ionid" datatype="stringArray">
H H
</attrib>
</particleset>