fluid mechanics for mechanical gate