model circuitoRC_componentes Modelica.Electrical.Analog.Basic.Resistor resistor(R = 1000) annotation( Placement(visible = true, transformation(origin = {0, 40}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Electrical.Analog.Basic.Capacitor capacitor(C = 0.01) annotation( Placement(visible = true, transformation(origin = {40, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90))); Modelica.Electrical.Analog.Basic.Ground ground annotation( Placement(visible = true, transformation(origin = {-40, -50}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Electrical.Analog.Sources.StepVoltage stepVoltage(V = 10, startTime = 10) annotation( Placement(visible = true, transformation(origin = {-40, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90))); equation connect(stepVoltage.p, resistor.p) annotation( Line(points = {{-40, 10}, {-40, 10}, {-40, 40}, {-10, 40}, {-10, 40}}, color = {0, 0, 255})); connect(resistor.n, capacitor.p) annotation( Line(points = {{10, 40}, {40, 40}, {40, 10}, {40, 10}}, color = {0, 0, 255})); connect(capacitor.n, ground.p) annotation( Line(points = {{40, -10}, {40, -10}, {40, -40}, {-40, -40}, {-40, -40}}, color = {0, 0, 255})); connect(ground.p, stepVoltage.n) annotation( Line(points = {{-40, -40}, {-40, -40}, {-40, -10}, {-40, -10}}, color = {0, 0, 255})); annotation( uses(Modelica(version = "3.2.3"))); end circuitoRC_componentes;