model ex_1 SFPLibDyn.Hydraulic.Sources.FlowrateSource flowrateSource annotation( Placement(transformation(origin = {-20, 32}, extent = {{-12, -10}, {12, 10}}))); SFPLibDyn.Hydraulic.Sources.Tank tank annotation( Placement(transformation(origin = {10, -70}, extent = {{-6, -4.5}, {6, 4.5}}))); SFPLibDyn.Signals.Source.LinearStages linearStages(stage1_end = 60, stage1_duration = 0.5, stage2_duration = 0.5) annotation( Placement(transformation(origin = {-56, 32}, 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.001, pressure(start = 0)) annotation( Placement(transformation(origin = {10, 8}, extent = {{-10, -10}, {10, 10}}))); SFPLibDyn.Hydraulic.Orifices.Orifice orifice annotation( Placement(transformation(origin = {10, -34}, extent = {{-6, -12}, {6, 12}}))); equation connect(linearStages.y1, flowrateSource.u1) annotation( Line(points = {{-46, 32}, {-32, 32}})); connect(flowrateSource.h1, volume2p.h2) annotation( Line(points = {{-8, 32}, {10, 32}, {10, 18}})); connect(volume2p.h1, orifice.h2) annotation( Line(points = {{10, -2}, {10, -22}})); connect(orifice.h1, tank.h1) annotation( Line(points = {{10, -46}, {10, -66}})); annotation( uses(SFPLibDyn(version = "3.2")), __OpenModelica_simulationFlags(lv = "LOG_STDOUT,LOG_ASSERT,LOG_STATS", s = "dassl", variableFilter = ".*"), experiment(StartTime = 0, StopTime = 1, Tolerance = 1e-08, Interval = 0.002)); end ex_1;