Fundamentals of atmospheric modeling