blockModulo
Output the remainder of first input divided by second input (~=0)
Information
Block that outputs y = mod(u1/u2),
where
u1 and u2 are inputs.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u1 | Dividend of the modulus function | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u2 | Divisor of the modulus function | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | y | Modulus u1 mod u2 |
Revisions
-
March 2, 2020, by Michael Wetter:
Changed icon to display dynamically the output value. -
March 15, 2017, by Jianjun Hu:
First implementation, based on the implementation of the Modelica Standard Library.