Skip to main content

DPF Mechanical 2026 R1

change_location class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.utility

Summary

Changes the location property of a field without modifying the field data.

available inputs: field (Field), new_location (string)

available outputs: field (Field)

Example

op = change_location()

op = change_location(field=my_field,new_location=my_new_location)

Class Information

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

Inputs

field

Field whose location will be changed

Type: LinkableInput

new_location

New location string for the field (e.g., 'Nodal', 'ElementalNodal', 'Elemental')

Type: LinkableInput

Outputs

field

Field with the updated location property

Type: LinkableOutput

Constructors

Constructor

change_location()

Constructor

change_location(field, new_location, config)

Parameters:

  • field (object)
  • new_location (object)
  • config (OperatorConfig)

Constructor

change_location(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