Skip to main content

DPF Mechanical 2026 R1

scale_by_field_fc class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.math

Summary

DEPRECATED, PLEASE USE SCALE. Scales a field (in 0) by a scalar field (in 1). If one field's scoping has an 'overall' location, then this field's values are applied on the other field entirely.

available inputs: field_or_fields_container_A (Field, FieldsContainer), field_or_fields_container_B (Field, FieldsContainer)

available outputs: fields_container (FieldsContainer)

Example

op = scale_by_field_fc()

op = scale_by_field_fc(field_or_fields_container_A=my_field_or_fields_container_A,field_or_fields_container_B=my_field_or_fields_container_B)

Class Information

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

Inputs

field_or_fields_container_A

field or fields container with only one field is expected

Type: LinkableInput

field_or_fields_container_B

field or fields container with only one field is expected

Type: LinkableInput

Outputs

fields_container

Type: LinkableOutput

Constructors

Constructor

scale_by_field_fc()

Constructor

scale_by_field_fc(field_or_fields_container_A, field_or_fields_container_B, config)

Parameters:

  • field_or_fields_container_A (object)
  • field_or_fields_container_B (object)
  • config (OperatorConfig)

Constructor

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