Routine ID: GEOM150 | |
---|---|
Author(s): | Submitted: 17.12.83 |
Origin: R.Brun, F.Bruyant, A.McPherson | Revised: 18.11.93 |
CALL GSDVX (CHNAME,CHMOTH,NDIV,IAXIS,STEP,C0,NUMED,NDVMAX)
Divide a volume in a given number of parts along a direction, with a given step starting from an offset.
For more information on the division mechanism, see [GEOM130] and [GEOM140]. For the moment either NDIV or STEP must be set negative or 0, so that they will be computed from the CHMOTH's size. The case with both NDIV and STEP positive is not coded yet. It would permit leaving different gaps at both ends of the CHMOTH.
Provisionally the code consists of a call to either GSDVN2 or GSDVT2.
CALL GSDVN2 (CHNAME,CHMOTH,NDIV,IAXIS,C0,NUMED)
Divide a volume in a given number of parts along a direction, starting from an offset.
The divisions start at the user specified coordinate value and extend to the end of the volume. The range from this offset to the upper coordinate limit of the mother volume will be divided into the supplied number of cells. In the case of division of a complete tube or cone, the whole 360 degrees will be divided into the user-supplied number of slices no matter what the origin is. Specifying an origin for the division, in this case, just moves the division boundaries. This can be useful to avoid a rotation. In all other cases the search routines will assume that a point is in the mother if the coordinate value is less than the value of the supplied offset.
CALL GSDVT2 (CHNAME,CHMOTH,STEP,IAXIS,C0,NUMED,NDVMX)
Divide a volume along a direction with a given step starting from an offset.
The division start at the user-specified coordinate value and extend to the end of the volume. The range from origin to upper coordinate limit of the mother volume is divided in sections of the user supplied step. If the step is such that the range of the mother cannot be filled with cells, the largest possible number of cells is created. The excess space up to the end of the mother volume will be assumed to belong to the mother.
In the case of division of a complete tube or cone, the whole 360 degrees will be filled with slices, no matter what the origin is. Specifying an origin for the division, in this case, just moves the division boundaries. This can be useful to avoid a rotation.
In all other cases the search routines will assume a point is just in the mother if the coordinate value is less than the value of the user supplied origin.