model ex_3 SFPLibDyn.Hydraulic.Sources.FlowrateSource flowrateSource annotation( Placement(transformation(origin = {-33, -56}, extent = {{-12, -10}, {12, 10}}))); SFPLibDyn.Signals.Source.LinearStages linearStages(stage1_end = 120, stage1_duration = 0.2, stage2_end = 120, stage2_duration = 4.6, stage3_end = -120, stage3_duration = 0.4, stage4_end = -120, stage4_duration = 4.8) annotation( Placement(transformation(origin = {-63, -56}, extent = {{-10, -10}, {10, 10}}))); inner SFPLibDyn.Properties.Hydraulic.FluidProp fluidProp annotation( Placement(transformation(origin = {62, 70}, extent = {{-10, -10}, {10, 10}}))); SFPLibDyn.Hydraulic.Volumes.Volume2p volume2p(vol_0 = 0.003, pressure(start = 0)) annotation( Placement(transformation(origin = {-17, -34}, extent = {{-10, -10}, {10, 10}}))); SFPLibDyn.Mechanical.Translational.Mass mass(endstops_model = SFPLibDyn.Units.Choices.mass_type.Ideal, low_lim = 0, high_lim = 0.3, mass(displayUnit = "kg") = 3000, coeff_wind = 2e7) annotation( Placement(transformation(origin = {35, 38}, extent = {{-10, -10}, {10, 10}}))); SFPLibDyn.Hydraulic.Actuators.Cylinders.Cylinder cylinder(d_piston = 0.2, d_rod = 0.16, stroke = 0.3) annotation( Placement(transformation(origin = {-4, 37}, extent = {{-18.5, -11}, {18.5, 11}}))); SFPLibDyn.Hydraulic.Sources.Tank tank annotation( Placement(transformation(origin = {35, -50}, extent = {{-6, -4.5}, {6, 4.5}}))); SFPLibDyn.Hydraulic.Valves.ReliefValve reliefValve(p_crack = 4.5e6) annotation( Placement(transformation(origin = {8, -6}, extent = {{-12, -12}, {12, 12}}, rotation = -90))); SFPLibDyn.Hydraulic.Nodes.Node3p node3p annotation( Placement(transformation(origin = {-17, -6}, extent = {{-6, -6}, {6, 6}}))); SFPLibDyn.Hydraulic.Nodes.Node3p node3p1 annotation( Placement(transformation(origin = {35, -6}, extent = {{6, -6}, {-6, 6}}, rotation = -0))); SFPLibDyn.Mechanical.Translational.Sources.ZeroForce zeroForce annotation( Placement(transformation(origin = {61, 38}, extent = {{10, -10}, {-10, 10}}, rotation = -0))); equation connect(linearStages.y1, flowrateSource.u1) annotation( Line(points = {{-53, -56}, {-45, -56}})); connect(mass.t1, cylinder.t1) annotation( Line(points = {{25, 38}, {14.5, 38}})); connect(flowrateSource.h1, volume2p.h1) annotation( Line(points = {{-21, -56}, {-17, -56}, {-17, -44}})); connect(node3p.h1, volume2p.h2) annotation( Line(points = {{-17, -12}, {-17, -24}})); connect(cylinder.h1, node3p.h2) annotation( Line(points = {{-17, 26}, {-17, 0}})); connect(node3p.h3, reliefValve.h1) annotation( Line(points = {{-11, -6}, {-4, -6}})); connect(node3p1.h3, reliefValve.h2) annotation( Line(points = {{29, -6}, {20, -6}})); connect(cylinder.h2, node3p1.h2) annotation( Line(points = {{7, 26}, {7, 15}, {35, 15}, {35, 0}})); connect(node3p1.h1, tank.h1) annotation( Line(points = {{35, -12}, {35, -45.5}})); connect(zeroForce.t1, mass.t2) annotation( Line(points = {{51, 38}, {45, 38}})); annotation( uses(SFPLibDyn(version = "3.2")), __OpenModelica_simulationFlags(lv = "LOG_STDOUT,LOG_ASSERT,LOG_STATS", s = "dassl", variableFilter = ".*"), experiment(StartTime = 0, StopTime = 10, Tolerance = 1e-08, Interval = 0.002), Diagram(coordinateSystem(grid = {1, 1})), Icon(coordinateSystem(grid = {1, 1})), version = ""); end ex_3;