StreamsContainer#

Contains classes associated with the DPF StreamsContainer.

class ansys.dpf.core.streams_container.StreamsContainer(streams_container=None, server: ansys.dpf.core.server_types.BaseServer | None = 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()
release_handles()#

Release the streams.