result:compute stress Y
Last update: 31.07.2026Version: 0.0.0
Description
Computes the stress from an elastic strain field. compute_total_strain limitations are applicable for stress computation Get the YY normal component (11 component).
Inputs
This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation. Some inputs are required, while others are optional and provide additional configuration. Each parameter is detailed in the sections that follow the table.
| Pin number | Name | Status | Expected type(s) |
|---|---|---|---|
| 1 | scoping | scoping |
|
| 3 | streams_container | streams_container |
|
| 4 | data_sources | data_sources |
|
| 9 | requested_location | string |
|
| 10 | strain | Required | fields_container, field |
scoping (Pin 1)
- Required: No
- Expected type(s):
scoping
The element scoping on which the result is computed.
streams_container (Pin 3)
- Required: No
- Expected type(s):
streams_container
Needed to get mesh and material ids. Optional if a data_sources have been connected.
data_sources (Pin 4)
- Required: No
- Expected type(s):
data_sources
Needed to get mesh and material ids. Optional if a streams_container have been connected.
requested_location (Pin 9)
- Required: No
- Expected type(s):
string
Average the Elemental Nodal result to the requested location.
strain (Pin 10)
- Required: Yes
- Expected type(s):
fields_container,field
Field/or fields container containing only the elastic strain field (element nodal).
Outputs
This table lists the output pins for this operator. Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing. Each output is detailed in the sections that follow the table.
| Pin number | Name | Expected type(s) |
|---|---|---|
| 0 | fields_container | fields_container |
fields_container (Pin 0)
- Expected type(s):
fields_container
The computed result fields container (elemental nodal).
Configurations
This operator supports configuration options that modify its behavior.
mutex
- Expected type(s):
bool - Default value: false
If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
run_in_parallel
- Expected type(s):
bool - Default value: true
Loops are allowed to run in parallel if the value of this config is set to true.
Scripting
This operator can be accessed through scripting interfaces using these identifiers.
Category: result
Plugin: live post
Scripting name: compute_stress_Y
Full name: result.compute_stress_Y
Internal name: compute_stress_Y
License: None
Examples
These examples demonstrate how to use this operator in different programming environments. Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.
C++
#include "dpf_api.h"
ansys::dpf::Operator op("compute_stress_Y"); // operator instantiation
op.connect(1, my_scoping);
op.connect(3, my_streams_container);
op.connect(4, my_data_sources);
op.connect(9, my_requested_location);
op.connect(10, my_strain);
ansys::dpf::FieldsContainer my_fields_container = op.getOutput<ansys::dpf::FieldsContainer>(0);
CPython
import ansys.dpf.core as dpf
op = dpf.operators.result.compute_stress_Y() # operator instantiation
op.inputs.scoping.connect(my_scoping)
op.inputs.streams_container.connect(my_streams_container)
op.inputs.data_sources.connect(my_data_sources)
op.inputs.requested_location.connect(my_requested_location)
op.inputs.strain.connect(my_strain)
my_fields_container = op.outputs.fields_container()
IPython
import mech_dpf
import Ans.DataProcessing as dpf
op = dpf.operators.result.compute_stress_Y() # operator instantiation
op.inputs.scoping.Connect(my_scoping)
op.inputs.streams_container.Connect(my_streams_container)
op.inputs.data_sources.Connect(my_data_sources)
op.inputs.requested_location.Connect(my_requested_location)
op.inputs.strain.Connect(my_strain)
my_fields_container = op.outputs.fields_container.GetData()
Changelog
- Version 0.0.0: Initial release.