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

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInputu1Dividend of the modulus function
Buildings.Controls.OBC.CDL.Interfaces.RealInputu2Divisor of the modulus function
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyModulus 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.