Skip to main content

DPF Mechanical 2026 R1

component_selector class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.logic

Summary

Creates a scalar/vector field based on the selected component.

available inputs: field (Field, FieldsContainer), component_number (Int32, IList int, System.Collections.IEnumerable), default_value (double) (optional)

available outputs: field (Field)

Example

op = component_selector()

op = component_selector(field=my_field,component_number=my_component_number,default_value=my_default_value)

Class Information

Property Value
Namespace Ans.DataProcessing.operators.logic
Assembly Ans_Dpf_Native_dll_cs
Base Class Ans.DataProcessing.internal_objects.BaseOperator

Inputs

field

Type: LinkableInput

component_number

One or several component index that will be extracted from the initial field.

Type: LinkableInput

default_value

Set a default value for components that do not exist.

Type: LinkableInput

Outputs

field

Type: LinkableOutput

Constructors

Constructor

component_selector()

Constructor

component_selector(field, component_number, default_value, config)

Parameters:

  • field (object)
  • component_number (object)
  • default_value (object)
  • config (OperatorConfig)

Constructor

component_selector(config)

Parameters:

  • config (OperatorConfig)

Methods

Properties

inputs

Type: InputSpec

# Get or set the property
value = obj.inputs
obj.inputs = new_value

outputs

Type: OutputSpec

# Get or set the property
value = obj.outputs
obj.outputs = new_value

defaultConfig

Type: Config

# Get the property (read-only)
value = obj.defaultConfig

Connect with Ansys