Skip to main content

DPF Mechanical 2026 R1

add_constant class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.math

add_constant()

add_constant(field: object, weights: object, config: OperatorConfig)

add_constant(config: OperatorConfig)

Class Information

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

Inputs

field

field or fields container with only one field is expected

Type: LinkableInput

weights

double or vector of double

Type: LinkableInput

ponderation

Deprecated alias of: weights

Type: LinkableInput

Outputs

field

Type: LinkableOutput

Constructors

Constructor

add_constant()

Constructor

add_constant(field, weights, config)

Parameters:

  • field (object)
  • weights (object)
  • config (OperatorConfig)

Constructor

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