Fill_cylinder fills the dynamic array positions with coordinates of particles spaced a distance d apart inside a cylinder with faces z = 0 and z = L and radius R. For cylinders of different position and orientation, these coordinates can be transformed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | R |
Radius of the cylinder |
||
| real(kind=rk), | intent(in) | :: | L |
Length of the cylinder |
||
| real(kind=rk) | :: | d |
Distance between particles |
|||
| type(grw_real2darray_type), | intent(inout) | :: | positions |