def METHOD_NAME(self, filename=None):
    data = self._data
    from fipy.tools import numerix
    for var in self.vars:
        name, rank, value = self._nameRankValue(var)
        if not (numerix.array(value.shape) == 0).any():
            data.get_array(name).to_array()[:] = value
    try:
        from tvtk.misc import write_data
    except ImportError as e:
        from enthought.tvtk.misc import write_data
    write_data(self.dataset, filename)