Skip to main content

DPF Mechanical 2026 R1

default_value class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.utility

Summary

Returns the value from pin 0 if provided, otherwise returns the default value from pin 1. This operator acts as a fallback mechanism for optional inputs.

available inputs: forced_value (object) (optional), default_value (object)

available outputs: output (object)

Example

op = default_value()

op = default_value(forced_value=my_forced_value,default_value=my_default_value)

Class Information

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

Inputs

forced_value

Primary value to return if provided. Can be any type

Type: LinkableInput

default_value

Default value to return if pin 0 is not connected. Must be the same type as pin 0

Type: LinkableInput

Outputs

output

Returns primary_value if provided, otherwise default_value

Type: LinkableOutput

Constructors

Constructor

default_value()

Constructor

default_value(forced_value, default_value, config)

Parameters:

  • forced_value (object)
  • default_value (object)
  • config (OperatorConfig)

Constructor

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