model resistor_conectorModelica Modelica.SIunits.Voltage v; Modelica.SIunits.Current i; parameter Modelica.SIunits.Resistance R = 1.0; Modelica.Electrical.Analog.Interfaces.PositivePin p annotation( Placement(visible = true, transformation(origin = {-100, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {-100, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Electrical.Analog.Interfaces.NegativePin n annotation( Placement(visible = true, transformation(origin = {98, 2}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {98, 2}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); equation v = R * i; i = p.i; v = p.v - n.v; p.i + n.i = 0; annotation( uses(Modelica(version = "3.2.3")), Icon(graphics = {Line(origin = {-10.97, -0.3}, points = {{-88, 0.922774}, {-60, 0.922774}, {-40, 60.9228}, {-20, -59.0772}, {0, 60.9228}, {20, -61.0772}, {40, 60.9228}, {60, -59.0772}, {78, 0.922774}, {100, 0.922774}}, thickness = 2), Text(origin = {4, -78}, extent = {{-56, 10}, {56, -10}}, textString = "Meu Resistor")})); end resistor_conectorModelica;