ansys.dpf.core.operators.math.time_integration#
- class ansys.dpf.core.operators.math.time_integration(field=None, resample_output=None, absolute_error=None, minimum_step_size=None, integration_constant=None, config=None, server=None)#
Bases:
ansys.dpf.core.dpf_operator.Operator
Integrates a field of time varying quantities over time
- Parameters:
field (Field) – field
resample_output (bool, optional) – Resample the output
absolute_error (float, optional) – Absolute error for the resampling
minimum_step_size (float, optional) – Minimum time step size for the resamplig
integration_constant (float, optional) – Constant to be added to the integrated field
- Returns:
field
- Return type:
Examples
>>> from ansys.dpf import core as dpf
>>> # Instantiate operator >>> op = dpf.operators.math.time_integration()
>>> # Make input connections >>> my_field = dpf.Field() >>> op.inputs.field.connect(my_field) >>> my_resample_output = bool() >>> op.inputs.resample_output.connect(my_resample_output) >>> my_absolute_error = float() >>> op.inputs.absolute_error.connect(my_absolute_error) >>> my_minimum_step_size = float() >>> op.inputs.minimum_step_size.connect(my_minimum_step_size) >>> my_integration_constant = float() >>> op.inputs.integration_constant.connect(my_integration_constant)
>>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.math.time_integration( ... field=my_field, ... resample_output=my_resample_output, ... absolute_error=my_absolute_error, ... minimum_step_size=my_minimum_step_size, ... integration_constant=my_integration_constant, ... )
>>> # Get output data >>> result_field = op.outputs.field()
- _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: InputsTimeIntegration#
Enables to connect inputs to the operator
- Returns:
An instance of InputsTimeIntegration.
- Return type:
inputs
- property outputs: OutputsTimeIntegration#
Enables to get outputs of the operator by evaluating it
- Returns:
An instance of OutputsTimeIntegration.
- Return type:
outputs