StreamsContainer#

class ansys.dpf.core.streams_container.StreamsContainer(streams_container=None, server: ansys.dpf.core.server_types.BaseServer = None)#

Python wrapper for operator input or output of streams.

Streams define open, ready-to-use, data sources. Once the files in the streams are opened, they stay opened and they keep some data in cache to make the next evaluations faster. To close the opened files, release the handles.

Note

Only available for an InProcess server configuration.

Examples

>>> from ansys.dpf import core as dpf
>>> from ansys.dpf.core import examples
>>> model = dpf.Model(examples.find_multishells_rst())
>>> streams_provider = model.metadata.streams_provider
>>> sc = streams_provider.outputs.streams_container()

Overview#

release_handles

Release the streams.

datasources

Return the data sources.

__del__

Delete the entry.

Import detail#

from ansys.dpf.core.streams_container import StreamsContainer

Property detail#

property StreamsContainer.datasources#

Return the data sources.

Attribute detail#

StreamsContainer.owned = False#

Method detail#

StreamsContainer.release_handles()#

Release the streams.

StreamsContainer.__del__()#

Delete the entry.