Principles of applied reservoir simulation