model TT01 Modelica.Electrical.Analog.Basic.Resistor R_interne(R = 0.19, T_ref = 300.15, alpha = 0) annotation(Placement(visible = true, transformation(origin = {-42.7622, 44.5326}, extent = {{-5.99969, -5.99969}, {5.99969, 5.99969}}, rotation = 0))); Modelica.Electrical.Analog.Basic.EMF machine(useSupport = false, k = 0.004) annotation(Placement(visible = true, transformation(origin = {-14.8167, 27.0143}, extent = {{-6.36146, -6.36146}, {6.36146, 6.36146}}, rotation = 0))); Modelica.Electrical.Analog.Basic.Inductor inductance(L = 0.0001) annotation(Placement(visible = true, transformation(origin = {-26.0356, 44.3977}, extent = {{-5.64757, -5.64757}, {5.64757, 5.64757}}, rotation = 0))); Modelica.Mechanics.Rotational.Components.Inertia inertie_rotation(J = 0.0000026, stateSelect = StateSelect.default) annotation(Placement(visible = true, transformation(origin = {6.76744, 27.0313}, extent = {{-6.5502, -6.5502}, {6.5502, 6.5502}}, rotation = 0))); Modelica.Mechanics.Rotational.Components.LossyGear transmission(lossTable = [0, 0.6, 0.6, 0, 0], ratio = 8.34) annotation(Placement(visible = true, transformation(origin = {26.3109, 27.0769}, extent = {{-5.92486, -5.92486}, {5.92486, 5.92486}}, rotation = 0))); Modelica.Mechanics.Rotational.Components.IdealGearR2T Roue(ratio = 30) annotation(Placement(visible = true, transformation(origin = {43.4669, 27.4505}, extent = {{-4.65971, -4.65971}, {4.65971, 4.65971}}, rotation = 0))); Modelica.Mechanics.Translational.Components.Mass mass1(m = 1.45, stateSelect = StateSelect.default) annotation(Placement(visible = true, transformation(origin = {59.5671, 27.8438}, extent = {{-4.83576, -4.83576}, {4.83576, 4.83576}}, rotation = 0))); Modelica.Mechanics.Translational.Sensors.SpeedSensor vitesse annotation(Placement(visible = true, transformation(origin = {78.9032, 28.1119}, extent = {{-6.21205, -6.21205}, {6.21205, 6.21205}}, rotation = 0))); Modelica.Blocks.Sources.Constant Effort(k = -1.5) annotation(Placement(visible = true, transformation(origin = {34.5377, 4.79052}, extent = {{-4.62693, -4.62693}, {4.62693, 4.62693}}, rotation = 0))); Modelica.Mechanics.Translational.Sources.Force force1 annotation(Placement(visible = true, transformation(origin = {55.5211, 5.04648}, extent = {{-4.84571, -4.84571}, {4.84571, 4.84571}}, rotation = 0))); Modelica.Electrical.Analog.Basic.Resistor R_batterie(R = 0.14, T_ref = 300.15, alpha = 0) annotation(Placement(visible = true, transformation(origin = {-61.9897, 44.4006}, extent = {{-5.29546, -5.29546}, {5.29546, 5.29546}}, rotation = 0))); Modelica.Electrical.Analog.Sources.ConstantVoltage constantvoltage1(V = 7.5) annotation(Placement(visible = true, transformation(origin = {-75.2441, 29.1662}, extent = {{-5.58606, -5.58606}, {5.58606, 5.58606}}, rotation = -90))); Modelica.Electrical.Analog.Basic.Ground masse annotation(Placement(visible = true, transformation(origin = {-43.7224, 3.68272}, extent = {{-5.57624, -5.57624}, {5.57624, 5.57624}}, rotation = 0))); equation connect(constantvoltage1.p, R_batterie.p) annotation(Line(points = {{-75.2441, 34.7522}, {-75.2441, 44.5064}, {-67.2047, 44.5064}, {-67.2047, 44.5064}})); connect(constantvoltage1.n, masse.p) annotation(Line(points = {{-75.2441, 23.5801}, {-75.2441, 9.11633}, {-57.8014, 9.25896}, {-43.7224, 9.25896}})); connect(masse.p, machine.n) annotation(Line(points = {{-43.7224, 9.25896}, {-14.5473, 9.25896}, {-14.5473, 20.5602}, {-14.5473, 20.5602}})); connect(R_batterie.n, R_interne.p) annotation(Line(points = {{-56.6943, 44.4006}, {-48.957, 44.4006}, {-48.957, 44.5326}, {-48.7619, 44.5326}})); connect(force1.flange, mass1.flange_b) annotation(Line(points = {{60.3668, 5.04648}, {68.2755, 5.04648}, {68.2755, 27.7369}, {64.5902, 27.7369}, {64.5902, 27.7369}})); connect(Effort.y, force1.f) annotation(Line(points = {{39.6273, 4.79052}, {48.6851, 4.79052}, {49.7062, 5.58995}, {49.7062, 5.04648}})); connect(mass1.flange_b, vitesse.flange) annotation(Line(points = {{64.4029, 27.8438}, {73.1246, 27.8438}, {73.1246, 27.9309}, {73.1246, 27.9309}})); connect(Roue.flangeT, mass1.flange_a) annotation(Line(points = {{48.1267, 27.4505}, {55.0859, 27.4505}, {55.0859, 27.7369}, {55.0859, 27.7369}})); connect(transmission.flange_b, Roue.flangeR) annotation(Line(points = {{32.2358, 27.0769}, {38.9869, 27.0769}, {38.9869, 27.349}, {38.9869, 27.349}})); connect(inertie_rotation.flange_b, transmission.flange_a) annotation(Line(points = {{13.3176, 27.0313}, {20.9482, 27.0313}, {20.9482, 26.9611}, {20.9482, 26.9611}})); connect(machine.flange, inertie_rotation.flange_a) annotation(Line(points = {{-8.45528, 27.0143}, {0.193964, 27.0143}, {0.193964, 27.155}, {0.193964, 27.155}})); connect(R_interne.n, inductance.p) annotation(Line(points = {{-36.7626, 44.5326}, {-31.2283, 44.5326}, {-31.2283, 44.2239}, {-31.2283, 44.2239}})); connect(inductance.n, machine.p) annotation(Line(points = {{-20.388, 44.3977}, {-14.5473, 44.3977}, {-14.5473, 33.1679}, {-14.5473, 33.1679}})); annotation(Diagram); end TT01;