blockPower

Exponentiation of input

Extends from Interfaces.PartialConverters.SISO (Converter with single input and single output).

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The output y is the exponentiationen of base u to either a constant power exponent or a variable power u_exponent (actExponent.y will reflect this choice).

y = u ^ actExponent.y

Parameters

TypeNameDefaultDescription
Realexponent1Constant exponent for the exponentiation (default)
Structural Parameters
BooleanhasConstantExponenttrue= true, if the exponent is a constant parameter

Connectors

TypeNameDefaultDescription
Connectors.RealInputu (from SISO)Input
Interfaces.Connectors.RealInputu_exponentThe exponent for the exponentiation (optional)

Components

TypeNameDefaultDescription
RealOutputy (from SO)

Revisions

  • Added PassThrough actExponent to avoid referencing conditional component in v2.2, which is illegal in Modelica.

  • Fixed missing conditionality for constExponent in v2.2.