VolLayout ()

Get a set of volume layout information.

Usage

VolLayout( path, nodeCrd = None )

Parameters

path (string)
The path of the volume which the data should be read.
nodeCrd (string)
The CRD (nodal coordinates) path.

Return Value

volume (real)
The total volume of the volume.
center (numarray)
Center of the volume.
bndBox (numarray)
The bounding box of the volume.

Errors

The path must be valid and exist.

The nodeCrd must be valid and exist.

Description

This routine gets a set of volume layout information. The path of the volume which its data should be read and the nodal coordinate's path are given by path and nodeCrd. For example,
for set in modelSets:
             if state == 'geom':
                node = geomVol + RS + set
                elements= GetIntPar( 'nElems', node )
                msg += ' Surfaces: %d \n' %elements
                nodeCrd = node
             if state == 'mesh':
                node = MeshVol + RS + set
                elements= GetIntPar( 'nElems', node )
                msg += ' Elements: %d \n' %elements
                nodeCrd = None
             ( volume, center, bndBox ) = \
             VolLayOut( node, nodeCrd )