VariableFlowSource

model VariableFlowSource
    import HydraulicsByFluidon.Media.Base.FluidInterface;

    extends HydraulicsByFluidon.Components.Sources.Base.PartialFlowSource(outVolumeFlow = volumeFlow);

    Modelica.Blocks.Interfaces.RealInput volumeFlow "Flow Rate"
        annotation (Placement(transformation(extent = {
            {-110, -10}, 
            {-90, 10}})));

    annotation (
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Line(points = {
                    {-50, 0}, 
                    {-100, 0}}), 
                Polygon(
                    points = {
                        {59, 59}, 
                        {45, 51}, 
                        {51, 45}, 
                        {59, 59}},
                    lineColor = {0, 0, 0},
                    fillColor = {0, 0, 0},
                    fillPattern = FillPattern.Solid), 
                Line(
                    points = {
                        {-50, -50}, 
                        {50, 50}},
                    color = {0, 0, 0})}),
        Documentation(info = "<html>\n            <p>\n                The component VariableFlowSource provides a volume flow according to the input signal\n                at Port volumeFlow. The resulting mass flow at fluidPort depends the calculated density.\n            </p></html>"));
end VariableFlowSource;