block Division "Output first input divided by second input"
extends Interfaces.SI2SO;
equation
y = u1 / u2;
annotation (
Documentation(info = "<html>\n<p>\nThis block computes the output <strong>y</strong>\nby <em>dividing</em> the two inputs <strong>u1</strong> and <strong>u2</strong>:\n</p>\n<pre>\n y = u1 / u2;\n</pre>\n\n</html>"),
Icon(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Line(
points = {
{50, 0},
{100, 0}},
color = {0, 0, 127}),
Line(points = {
{-30, 0},
{30, 0}}),
Ellipse(
fillPattern = FillPattern.Solid,
extent = {
{-5, 20},
{5, 30}}),
Ellipse(
fillPattern = FillPattern.Solid,
extent = {
{-5, -30},
{5, -20}}),
Ellipse(
lineColor = {0, 0, 127},
extent = {
{-50, -50},
{50, 50}}),
Line(
points = {
{-100, 60},
{-66, 60},
{-40, 30}},
color = {0, 0, 127}),
Line(
points = {
{-100, -60},
{0, -60},
{0, -50}},
color = {0, 0, 127}),
Text(
extent = {
{-60, 94},
{90, 54}},
lineColor = {128, 128, 128},
textString = "u1 / u2")}),
Diagram(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Rectangle(
extent = {
{-100, -100},
{100, 100}},
lineColor = {0, 0, 255},
fillColor = {255, 255, 255},
fillPattern = FillPattern.Solid),
Line(
points = {
{50, 0},
{100, 0}},
color = {0, 0, 255}),
Line(points = {
{-30, 0},
{30, 0}}),
Ellipse(
extent = {
{-5, 20},
{5, 30}},
fillPattern = FillPattern.Solid),
Ellipse(
extent = {
{-5, -20},
{5, -30}},
fillPattern = FillPattern.Solid),
Ellipse(
extent = {
{-50, 50},
{50, -50}},
lineColor = {0, 0, 255}),
Line(
points = {
{-100, 60},
{-66, 60},
{-40, 30}},
color = {0, 0, 255}),
Line(
points = {
{-100, -60},
{0, -60},
{0, -50}},
color = {0, 0, 255})}));
end Division;