InputsStress#

class ansys.dpf.core.operators.result.stress.InputsStress(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.inputs._Inputs

Intermediate class used to connect user inputs to stress operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> my_time_scoping = dpf.Scoping()
>>> op.inputs.time_scoping.connect(my_time_scoping)
>>> my_mesh_scoping = dpf.ScopingsContainer()
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
>>> my_fields_container = dpf.FieldsContainer()
>>> op.inputs.fields_container.connect(my_fields_container)
>>> 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_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
>>> my_requested_location = str()
>>> op.inputs.requested_location.connect(my_requested_location)
>>> my_read_cyclic = int()
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
>>> my_read_beams = bool()
>>> op.inputs.read_beams.connect(my_read_beams)
>>> my_split_shells = bool()
>>> op.inputs.split_shells.connect(my_split_shells)
>>> my_shell_layer = int()
>>> op.inputs.shell_layer.connect(my_shell_layer)

Overview#

time_scoping

Allows to connect time_scoping input to the operator.

mesh_scoping

Allows to connect mesh_scoping input to the operator.

fields_container

Allows to connect fields_container input to the operator.

streams_container

Allows to connect streams_container input to the operator.

data_sources

Allows to connect data_sources input to the operator.

bool_rotate_to_global

Allows to connect bool_rotate_to_global input to the operator.

mesh

Allows to connect mesh input to the operator.

requested_location

Allows to connect requested_location input to the operator.

read_cyclic

Allows to connect read_cyclic input to the operator.

read_beams

Allows to connect read_beams input to the operator.

split_shells

Allows to connect split_shells input to the operator.

shell_layer

Allows to connect shell_layer input to the operator.

Import detail#

from ansys.dpf.core.operators.result.stress import InputsStress

Property detail#

property InputsStress.time_scoping#

Allows to connect time_scoping input to the operator.

Time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with timefreq_steps location) required in output. to specify time/freq values at specific load steps, put a field (and not a list) in input with a scoping located on “timefreq_steps”. linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files.

Parameters:

my_time_scoping (Scoping or int or float or Field)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.time_scoping.connect(my_time_scoping)
>>> # or
>>> op.inputs.time_scoping(my_time_scoping)
property InputsStress.mesh_scoping#

Allows to connect mesh_scoping input to the operator.

Nodes or elements scoping required in output. the output fields will be scoped on these node or element ids. to figure out the ordering of the fields data, look at their scoping ids as they might not be ordered as the input scoping was. the scoping’s location indicates whether nodes or elements are asked for. using scopings container allows you to split the result fields container into domains

Parameters:

my_mesh_scoping (ScopingsContainer or Scoping)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
>>> # or
>>> op.inputs.mesh_scoping(my_mesh_scoping)
property InputsStress.fields_container#

Allows to connect fields_container input to the operator.

Fields container already allocated modified inplace

Parameters:

my_fields_container (FieldsContainer)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.fields_container.connect(my_fields_container)
>>> # or
>>> op.inputs.fields_container(my_fields_container)
property InputsStress.streams_container#

Allows to connect streams_container input to the operator.

Result file container allowed to be kept open to cache data

Parameters:

my_streams_container (StreamsContainer)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.streams_container.connect(my_streams_container)
>>> # or
>>> op.inputs.streams_container(my_streams_container)
property InputsStress.data_sources#

Allows to connect data_sources input to the operator.

Result file path container, used if no streams are set

Parameters:

my_data_sources (DataSources)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.data_sources.connect(my_data_sources)
>>> # or
>>> op.inputs.data_sources(my_data_sources)
property InputsStress.bool_rotate_to_global#

Allows to connect bool_rotate_to_global input to the operator.

If true the field is rotated to global coordinate system (default true)

Parameters:

my_bool_rotate_to_global (bool)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> # or
>>> op.inputs.bool_rotate_to_global(my_bool_rotate_to_global)
property InputsStress.mesh#

Allows to connect mesh input to the operator.

Prevents from reading the mesh in the result files

Parameters:

my_mesh (MeshedRegion or MeshesContainer)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.mesh.connect(my_mesh)
>>> # or
>>> op.inputs.mesh(my_mesh)
property InputsStress.requested_location#

Allows to connect requested_location input to the operator.

Requested location nodal, elemental or elementalnodal

Parameters:

my_requested_location (str)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.requested_location.connect(my_requested_location)
>>> # or
>>> op.inputs.requested_location(my_requested_location)
property InputsStress.read_cyclic#

Allows to connect read_cyclic input to the operator.

If 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1)

Parameters:

my_read_cyclic (int)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
>>> # or
>>> op.inputs.read_cyclic(my_read_cyclic)
property InputsStress.read_beams#

Allows to connect read_beams input to the operator.

Elemental nodal beam results are read if this pin is set to true (default is false)

Parameters:

my_read_beams (bool)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.read_beams.connect(my_read_beams)
>>> # or
>>> op.inputs.read_beams(my_read_beams)
property InputsStress.split_shells#

Allows to connect split_shells input to the operator.

This pin forces elemental nodal shell and solid results to be split if this pin is set to true. if set to false (default), a specific shell layer is still needed to merge the fields. merge is possible only if a shell layer is provided.

Parameters:

my_split_shells (bool)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.split_shells.connect(my_split_shells)
>>> # or
>>> op.inputs.split_shells(my_split_shells)
property InputsStress.shell_layer#

Allows to connect shell_layer input to the operator.

If the requested_location pin is not connected, and if split_shells pin is set to true, we choose one of the shell layer for shell element. if split_shells pin is set to false (default value) and a specific shell layer is provided, results will be merged on this specific shell layer.

Parameters:

my_shell_layer (int)

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.stress()
>>> op.inputs.shell_layer.connect(my_shell_layer)
>>> # or
>>> op.inputs.shell_layer(my_shell_layer)