Class that defines a data collector. A data collector is used to read
data from a XML file or from an escript object directly. Writing XML
files are expensive, but this approach has the advantage given that the
results can be analyzed easily after the simulation has completed.
Attention:
A DataCollector instance can only be used to specify one scalar,
vector and tensor attribute from a source at any one time. If a
second scalar, vector or tensor attribute needs to be specified
from the same source, a second DataCollector instance must be
created.
|
|
__del__(self)
Perform some clean up of ths assumese temporary file. |
|
|
|
String
|
__get_array_type(self,
arr)
Return whether an array type is scalar, vector or tensor by looking
at the number of components in the array. |
|
|
|
Dictionary
|
__get_attribute_list(self,
data)
Return the available scalar, vector and tensor attributes (either
point or cell data). |
|
|
|
|
__get_attribute_lists(self)
Get all the available point and cell data attributes from the source. |
|
|
|
|
__init__(self,
source='xml')
Initialise the data collector. |
|
|
|
Three column tuple containing numbers
|
_getCenter(self)
Return the center of the rendered object. |
|
|
|
vtkUnstructuredGrid
|
|
|
Two column tuple containing numbers
|
|
|
Two column tuple containing numbers
|
|
|
Two column tuple containing numbers
|
|
|
Boolean
|
_isModified(self)
Return whether the DataCollector has been modified. |
|
|
|
Boolean
|
_isScalarSet(self)
Return whether a specific scalar field has been specified. |
|
|
|
Boolean
|
_isTensorSet(self)
Return whether a specific tensor field has been specified. |
|
|
|
Boolean
|
_isVectorSet(self)
Return whether a specific vector field has been specified. |
|
|
|
|
_setActiveScalar(self)
Load the specified scalar field. |
|
|
|
|
_setActiveTensor(self)
Load the the specified tensor field. |
|
|
|
|
_setActiveVector(self)
Load the specified vector field. |
|
|
|
|
|
|
|
|
|
|
|
|
|
setData(self,
**args)
Create data using the <name>=<data> pairing. |
|
|
|
|
setFileName(self,
file_name)
Set the XML file name to read. |
|
|