to_polar_coordinates class
Last update: 18.06.2026Namespace: Ans.DataProcessing.operators.geo
Summary
Finds r, theta (rad), and z coordinates of a coordinates (nodal) field in a cartesian coordinates system where the input coordinate system defines the rotation axis and the origin.
available inputs: field (Field, FieldsContainer), coordinate_system (Field) (optional)
available outputs: field (Field)
Example
op = to_polar_coordinates()
op = to_polar_coordinates(field=my_field,coordinate_system=my_coordinate_system)
Class Information
| Property | Value |
|---|---|
| Namespace | Ans.DataProcessing.operators.geo |
| Assembly | Ans_Dpf_FEMutils_dll_cs |
| Base Class | Ans.DataProcessing.internal_objects.BaseOperator |
Inputs
field
field or fields container with only one field is expected
Type: LinkableInput
coordinate_system
3-3 rotation matrix and origin coordinates must be set here to define a coordinate system. By default, the rotation axis is the z axis and the origin is [0,0,0].
Type: LinkableInput
Outputs
field
Type: LinkableOutput
Constructors
Constructor
to_polar_coordinates()
Constructor
to_polar_coordinates(field, coordinate_system, config)
Parameters:
field(object)coordinate_system(object)config(OperatorConfig)
Constructor
to_polar_coordinates(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