This function is a two-quadrant divider. It takes two inputs; A (numerator) and B (denominator). Divide offsets its inputs, multiplies them by their respective gains, divides the results, multiplies the quotient by the output gain, and offsets the result.

The process can be expressed mathematically as follows:

output = ((((numerator + num_offset) * num_gain) / ((denominator + den_offset) * den_gain)) * out_gain) + out_offset

The denominator is limited to a value above zero via a user specified lower limit. This limit is approached through a quadratic smoothing function, the domain of which may be specified as a fraction of the lower limit value, or as an absolute value.

This model will operate in DC, AC and Transient analysis modes. However, in AC analysis it is important to remember that results are invalid unless only one input of the divider is connected to a node which bears an AC signal (this is exemplified by the use of the divider to perform a potentiometer function: one input is DC, the other carriers the AC signal).

Parameters

Parameter Description Default
num_offset Numerator offset. 0
num_gain Numerator gain. 1
den_offset Denominator offset. 0
den_gain Denominator gain. 1
den_lower_limit Denominator lower limit. 1.0e-10
den_domain Denominator smoothing domain. 1.0e-10
fraction Used to control whether the smoothing domain is specified as a fractional (TRUE) or absolute (FALSE) value. FALSE
out_gain Output gain. 1
out_offset Output offset. 0