Fluid and mechanical equations for modeling two or three phase separators found in oil and gas installation.