Escript data import/export manager.
|
|
|
|
|
|
|
|
| __getDumpFilename(self,
data_name,
dir_name) |
|
|
|
|
| __getStampFilename(self,
dir_name) |
|
|
|
|
__initVisit(self,
simFile,
comment='')
Initialises the VisIt interface if available. |
|
|
|
|
__init__(self,
formats=[0],
work_dir='.',
restart_prefix='restart',
do_restart=True)
Initialises the data manager. |
|
|
|
|
|
|
|
| __removeDirectory(self,
path) |
|
|
|
|
|
|
|
addData(self,
**data)
Adds 'escript.Data' objects and other data to be exported to this
manager. |
|
|
|
|
export(self)
Executes the actual data export. |
|
|
|
|
getCycle(self)
Returns the export cycle (=number of times export() has been called) |
|
|
|
|
getDomain(self)
Returns the domain as recovered from restart files. |
|
|
|
|
getValue(self,
value_name)
Returns an 'escript.Data' object or other value that has been loaded
from restart files. |
|
|
|
|
hasData(self)
Returns True if the manager holds data for restart |
|
|
|
|
setCheckpointFrequency(self,
freq)
Sets the number of calls to export() before new restart files are
generated. |
|
|
|
|
setDomain(self,
domain)
Sets the domain without adding data. |
|
|
|
|
|
|
|
setMeshUnits(self,
x,
y,
z='')
Sets units for the mesh axes. |
|
|
|
|
|
|
|
setTime(self,
time)
Sets the simulation timestamp. |
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|