SimplePRVstatic

model SimplePRVstatic
    parameter Modelica.SIunits.Pressure OpeningPressure = 2e+7 "Opening pressure (relative value)";

    extends HydraulicsByFluidon.Components.Valves.Base.PartialPRVstatic annotation (IconMap(
        extent = {
            {-100, -100}, 
            {100, 100}},
        primitivesVisible = true));

protected
    parameter Boolean fixedOpeningPressure = true;
equation
    if fixedOpeningPressure then 
        openingPressure = OpeningPressure;
    end if;

    annotation (Icon(graphics = {
        Line(
            origin = {40, 0},
            points = {
                {0, 0}, 
                {4, 20}, 
                {12, -20}, 
                {20, 20}, 
                {28, -20}, 
                {36, 20}, 
                {44, -20}, 
                {48, 0}})}));
end SimplePRVstatic;