.Dynawo.NonElectrical.Blocks.Continuous.Power

Outputs a power of the input

Information

If NInteger = true, this block computes the output y as N power of the input u:

  y = u ^ N

If NInteger = false, this block computes the output y as follows:

       u ^ N  if u > 0
  y =
         0    if u ≤ 0

The noEvent function prevents the negative input values from being evaluated by the power function with a non-integer exponent, thus avoiding an error.


Generated at 2025-08-12T18:38:51Z by OpenModelicaOpenModelica 1.25.1 using GenerateDoc.mos