Absolute Value Function
Outputs the absolute value of the input signal for amplitude comparison, deviation evaluation and direction-insensitive control operations.
Component Appearance and Location
Expand Controller in component library on the left and find "Absolute Value Function".
Ports and Connections
| Port Key | Type | Direction | Interface Name | Display Conditions |
|---|---|---|---|---|
0 | CONTROL | input | Input signal port | always show |
1 | CONTROL | output | Output signal port | always show |
Both ports belong to the signaling network. The input terminal receives the signal to be processed, and the output terminal is connected to the subsequent calculation, control or display component.
Parameter List
Absolute Value has no parameters to display.
Parameter Guidance
Connect the signal to port 0. For fluctuation amplitude, decide whether the input is a raw measurement or a deviation from a setpoint. Subtracter
Modeling Steps
- Connect the signal and confirm its units and reference conditions.
- Connect port
1to comparison, recording, or observation components. Branch the original input if direction is also needed. - Run a transient simulation and compare the original and absolute values.
View Results
The output is nonnegative and equals zero for a zero input. Inputs of equal magnitude and opposite sign produce the same output. Check the original signal to identify zero crossings.
Professional Theory
For input at the current control instant, output is
Absolute value preserves engineering units. It is evaluated at the current control instant once the input is ready. Signal Updates
Applicability and Limits
- Bidirectional magnitudes. Monitor the magnitude of bidirectional flow or control error. Forward and reverse flow can have the same magnitude.
- Preserving direction. Use the original signed value to distinguish upper and lower limit violations or the direction of a correction. For direction alone, use the Sign Function.
Common Inspections
- Reverse flow still appears positive. Check whether you are viewing magnitude or the original flow.
- Unexpected error magnitude. Check that the setpoint was subtracted and both signals use consistent units and references.