ansys.dpf.core.operators.compression.zfp_decompress#

class ansys.dpf.core.operators.compression.zfp_decompress(dataIn=None, config=None, server=None)#

Bases: ansys.dpf.core.dpf_operator.Operator

zfp decompression using the information about compression written into the properties of the field(s)

Parameters:

dataIn (CustomTypeFieldsContainer) – custom type field container from zfp_compression operator to decompress

Returns:

  • dataOut (Field or FieldsContainer) – the output entity is a field or a fields container; it contains decompressed data

  • decompress_speed (float) – the output entity is a double, containing decompression speed (mb/sec)

Examples

>>> from ansys.dpf import core as dpf
>>> # Instantiate operator
>>> op = dpf.operators.compression.zfp_decompress()
>>> # Make input connections
>>> my_dataIn = dpf.CustomTypeFieldsContainer()
>>> op.inputs.dataIn.connect(my_dataIn)
>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.compression.zfp_decompress(
...     dataIn=my_dataIn,
... )
>>> # Get output data
>>> result_dataOut = op.outputs.dataOut()
>>> result_decompress_speed = op.outputs.decompress_speed()
_inputs#
_outputs#
static _spec() ansys.dpf.core.operators.specification.Specification#
static default_config(server: ansys.dpf.core.server_types.AnyServerType = None) ansys.dpf.core.config.Config#

Returns the default config of the operator.

This config can then be changed to the user needs and be used to instantiate the operator. The Configuration allows to customize how the operation will be processed by the operator.

Parameters:

server – Server with channel connected to the remote or local instance. When None, attempts to use the global server.

Returns:

A new Config instance equivalent to the default config for this operator.

Return type:

config

property inputs: InputsZfpDecompress#

Enables to connect inputs to the operator

Returns:

An instance of InputsZfpDecompress.

Return type:

inputs

property outputs: OutputsZfpDecompress#

Enables to get outputs of the operator by evaluating it

Returns:

An instance of OutputsZfpDecompress.

Return type:

outputs