FluidPort

connector FluidPort
    import HydraulicsByFluidon.Media.Base.FluidInterface;

    Modelica.SIunits.AbsolutePressure p(start = 101325, min = 0, nominal = 100000) "Pressure at the connection point";
    flow Modelica.SIunits.MassFlowRate mFlow(start = 0, nominal = 1e-5) "Mass flow rate from the connection point into the component";
    input Integer fluidId(start = 0) "Fluid type ID";
    input Modelica.SIunits.Temperature fluidTemperature(start = 293) "Stationary fluid temperature";
    input Real proportionUndissolvedAir(start = 0.001) "Proportion of undissolved air";
    input Real polytropicExponent(start = 1.1) "Polytropic exponent";

    annotation (
        defaultComponentName = "port",
        Documentation(info = "<html>\n            <p>\n                Elements of <i>FluidPort</i>:\n            </p>\n            <p>\n                <var>p</var>&emsp;absolute pressure at the connection point<br>\n                <var>mFlow</var>&emsp;mass flow rate from the connection point into the component<br>\n                <var>FluidId</var>&emsp;fluid type ID<br>\n                <var>Temperature</var>&emsp;stationary fluid temperature<br>\n                <var>proportionUndissolvedAir</var>&emsp;proportion of undissolved air<br>\n                <var>polytropicExponent</var>&emsp;polytropic exponent\n            </p></html>"),
        Diagram(
            coordinateSystem(
                preserveAspectRatio = false,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Ellipse(
                    extent = {
                        {-40, 40}, 
                        {40, -40}},
                    lineColor = {0, 93, 152},
                    fillColor = {0, 93, 152},
                    fillPattern = FillPattern.Solid), 
                Ellipse(
                    extent = {
                        {-40, 40}, 
                        {40, -40}},
                    lineColor = {0, 0, 0},
                    fillColor = {0, 93, 152},
                    fillPattern = FillPattern.Solid), 
                Text(
                    extent = {
                        {-160, 110}, 
                        {40, 50}},
                    lineColor = {0, 93, 152},
                    textString = "%name")}),
        Icon(
            coordinateSystem(
                preserveAspectRatio = false,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Ellipse(
                    extent = {
                        {-100, 100}, 
                        {100, -100}},
                    lineColor = {0, 93, 152},
                    fillColor = {0, 93, 152},
                    fillPattern = FillPattern.Solid)}));
end FluidPort;