added GeneralAvgFlow class for realgas