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
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 )