ContactPort is a superclass, which has two Contacts i, o and assumes that the inlet mass flow rate of i is identical to the outlet mass flow rate of o. This mass flow rate is determined as mdot.
i
o
mdot