> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# compute_stress_3 class

**Namespace:** [Ans.DataProcessing.operators.result](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/result)

## Summary

Computes the stress from an elastic strain field. compute\_total\_strain limitations are applicable for stress computation Get the 3rd principal component.

available inputs: `scoping` (Scoping) (optional), `streams_container` (StreamsContainer) (optional), `data_sources` (DataSources) (optional), `requested_location` (string) (optional), `strain` (FieldsContainer, Field)

available outputs: `fields_container` (FieldsContainer)

## Example

```python theme={null}
op = compute_stress_3()

op = compute_stress_3(scoping=my_scoping,streams_container=my_streams_container,data_sources=my_data_sources,requested_location=my_requested_location,strain=my_strain)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.result` |
| Assembly | `Ans_Dpf_LivePost_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### scoping

The element scoping on which the result is computed.

**Type:** *LinkableInput*

### streams\_container

Needed to get mesh and material ids. Optional if a data\_sources have been connected.

**Type:** *LinkableInput*

### data\_sources

Needed to get mesh and material ids. Optional if a streams\_container have been connected.

**Type:** *LinkableInput*

### requested\_location

Average the Elemental Nodal result to the requested location.

**Type:** *LinkableInput*

### strain

Field/or fields container containing only the elastic strain field (element nodal).

**Type:** *LinkableInput*

## Outputs

### fields\_container

The computed result fields container (elemental nodal).

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
compute_stress_3()
```

#### Constructor

```python theme={null}
compute_stress_3(scoping, streams_container, data_sources, requested_location, strain, config)
```

**Parameters:**

* `scoping` (*object*)
* `streams_container` (*object*)
* `data_sources` (*object*)
* `requested_location` (*object*)
* `strain` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
compute_stress_3(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
