result:pretension
Last update: 31.07.2026Version: 0.0.0
Description
Reads the pretension adjustment and tension force. Rotation is not allowed for these results.
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) |
|---|---|---|---|
| 0 | time_scoping | scopings_container, scoping |
|
| 1 | mesh_scoping | scopings_container, scoping |
|
| 2 | fields_container | fields_container |
|
| 3 | streams_container | Required | streams_container, stream |
| 4 | data_sources | Required | data_sources |
| 7 | mesh | abstract_meshed_region, meshes_container |
|
| 14 | read_cyclic | enum dataProcessing::ECyclicReading, int32 |
|
| 15 | expanded_meshed_region | abstract_meshed_region, meshes_container |
|
| 18 | sectors_to_expand | vector<int32>, scoping, scopings_container |
|
| 19 | phi | double |
time_scoping (Pin 0)
- Required: No
- Expected type(s):
scopings_container,scoping
mesh_scoping (Pin 1)
- Required: No
- Expected type(s):
scopings_container,scoping
fields_container (Pin 2)
- Required: No
- Expected type(s):
fields_container
streams_container (Pin 3)
- Required: Yes
- Expected type(s):
streams_container,stream
data_sources (Pin 4)
- Required: Yes
- Expected type(s):
data_sources
mesh (Pin 7)
- Required: No
- Expected type(s):
abstract_meshed_region,meshes_container
mesh. If cylic expansion is to be done, mesh of the base sector
read_cyclic (Pin 14)
- Required: No
- Expected type(s):
enum dataProcessing::ECyclicReading,int32
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)
expanded_meshed_region (Pin 15)
- Required: No
- Expected type(s):
abstract_meshed_region,meshes_container
mesh expanded, use if cyclic expansion is to be done.
sectors_to_expand (Pin 18)
- Required: No
- Expected type(s):
vector<int32>,scoping,scopings_container
sectors to expand (start at 0), for multistage: use scopings container with 'stage' label, use if cyclic expansion is to be done.
phi (Pin 19)
- Required: No
- Expected type(s):
double
angle phi in degrees (default value 0.0), use if cyclic expansion is to be done.
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 | adjustment | fields_container |
| 1 | tension_force | fields_container |
adjustment (Pin 0)
- Expected type(s):
fields_container
Adjustment
tension_force (Pin 1)
- Expected type(s):
fields_container
Tension Force
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.
Scripting
This operator can be accessed through scripting interfaces using these identifiers.
Category: result
Plugin: mapdl
Scripting name: pretension
Full name: result.pretension
Internal name: mapdl::pretension
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("mapdl::pretension"); // operator instantiation
op.connect(0, my_time_scoping);
op.connect(1, my_mesh_scoping);
op.connect(2, my_fields_container);
op.connect(3, my_streams_container);
op.connect(4, my_data_sources);
op.connect(7, my_mesh);
op.connect(14, my_read_cyclic);
op.connect(15, my_expanded_meshed_region);
op.connect(18, my_sectors_to_expand);
op.connect(19, my_phi);
ansys::dpf::FieldsContainer my_adjustment = op.getOutput<ansys::dpf::FieldsContainer>(0);
ansys::dpf::FieldsContainer my_tension_force = op.getOutput<ansys::dpf::FieldsContainer>(1);
CPython
import ansys.dpf.core as dpf
op = dpf.operators.result.pretension() # operator instantiation
op.inputs.time_scoping.connect(my_time_scoping)
op.inputs.mesh_scoping.connect(my_mesh_scoping)
op.inputs.fields_container.connect(my_fields_container)
op.inputs.streams_container.connect(my_streams_container)
op.inputs.data_sources.connect(my_data_sources)
op.inputs.mesh.connect(my_mesh)
op.inputs.read_cyclic.connect(my_read_cyclic)
op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region)
op.inputs.sectors_to_expand.connect(my_sectors_to_expand)
op.inputs.phi.connect(my_phi)
my_adjustment = op.outputs.adjustment()
my_tension_force = op.outputs.tension_force()
IPython
import mech_dpf
import Ans.DataProcessing as dpf
op = dpf.operators.result.pretension() # operator instantiation
op.inputs.time_scoping.Connect(my_time_scoping)
op.inputs.mesh_scoping.Connect(my_mesh_scoping)
op.inputs.fields_container.Connect(my_fields_container)
op.inputs.streams_container.Connect(my_streams_container)
op.inputs.data_sources.Connect(my_data_sources)
op.inputs.mesh.Connect(my_mesh)
op.inputs.read_cyclic.Connect(my_read_cyclic)
op.inputs.expanded_meshed_region.Connect(my_expanded_meshed_region)
op.inputs.sectors_to_expand.Connect(my_sectors_to_expand)
op.inputs.phi.Connect(my_phi)
my_adjustment = op.outputs.adjustment.GetData()
my_tension_force = op.outputs.tension_force.GetData()
Changelog
- Version 0.0.0: Initial release.