ansys.dpf.core.operators.result.global_velocity#
- class ansys.dpf.core.operators.result.global_velocity(streams_container=None, data_sources=None, unit_system=None, config=None, server=None)#
Bases:
ansys.dpf.core.dpf_operator.Operator
Read Global Velocity (LSDyna) by calling the readers defined by the datasources.
- Parameters:
streams_container (StreamsContainer, optional) – result file container allowed to be kept open to cache data
data_sources (DataSources) – result file path container, used if no streams are set
unit_system (int or str or UnitSystem, optional) – Unit System ID (int), semicolon-separated list of base unit strings (str) or UnitSystem instance
- Returns:
fields_container
- Return type:
Examples
>>> from ansys.dpf import core as dpf
>>> # Instantiate operator >>> op = dpf.operators.result.global_velocity()
>>> # Make input connections >>> my_streams_container = dpf.StreamsContainer() >>> op.inputs.streams_container.connect(my_streams_container) >>> my_data_sources = dpf.DataSources() >>> op.inputs.data_sources.connect(my_data_sources) >>> my_unit_system = int() >>> op.inputs.unit_system.connect(my_unit_system)
>>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.global_velocity( ... streams_container=my_streams_container, ... data_sources=my_data_sources, ... unit_system=my_unit_system, ... )
>>> # Get output data >>> result_fields_container = op.outputs.fields_container()
- _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: InputsGlobalVelocity#
Enables to connect inputs to the operator
- Returns:
An instance of InputsGlobalVelocity.
- Return type:
inputs
- property outputs: OutputsGlobalVelocity#
Enables to get outputs of the operator by evaluating it
- Returns:
An instance of OutputsGlobalVelocity.
- Return type:
outputs