Mass flow discharge analysis through filling heads and accuracy optimization by controlled air injection