ansys.dpf.core.operators.result.total_mass#
- class ansys.dpf.core.operators.result.total_mass(data_sources=None, config=None, server=None)#
Bases:
ansys.dpf.core.dpf_operator.Operator
Reads total mass from mode file.
- Parameters:
data_sources (DataSources) – Data sources (must contain at least one mode file).
- Returns:
mass – the unit should be grabbed from the rst file
- Return type:
float
Examples
>>> from ansys.dpf import core as dpf
>>> # Instantiate operator >>> op = dpf.operators.result.total_mass()
>>> # Make input connections >>> my_data_sources = dpf.DataSources() >>> op.inputs.data_sources.connect(my_data_sources)
>>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.total_mass( ... data_sources=my_data_sources, ... )
>>> # Get output data >>> result_mass = op.outputs.mass()
- _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: InputsTotalMass#
Enables to connect inputs to the operator
- Returns:
An instance of InputsTotalMass.
- Return type:
inputs
- property outputs: OutputsTotalMass#
Enables to get outputs of the operator by evaluating it
- Returns:
An instance of OutputsTotalMass.
- Return type:
outputs