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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | exponent | 1 | Constant exponent for the exponentiation (default) |
| Structural Parameters | |||
| Boolean | hasConstantExponent | true | = true, if the exponent is a constant parameter |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.RealInput | u (from SISO) | Input | |
| Interfaces.Connectors.RealInput | u_exponent | The exponent for the exponentiation (optional) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) |
Revisions
- Added
PassThrough actExponentto avoid referencing conditional component in v2.2, which is illegal in Modelica. - Fixed missing conditionality for
constExponentin v2.2.