The purpose of an airfoil, in this approximation, is giving the pulled air a longer, gentler acceleration compared to the short peak of acceleration a flat wing would require at the same angle of attack. You won't be able to calculate optimal airfoils with this model, or even a winglet, but it's good enough for many of the usual little riddles like symmetric airfoils, inverted flying etc.
https://aviation.stackexchange.com/questions/7560/what-are-t...
Angle of attack is a separate issue.
To be clear I am not saying how the wing is mounted arbitrary, just what angle is written down in the documentation. Chose a different centerline and that angle changes even as the aircraft stays the same.
Why not? You have a flat plate with high pressure below and low pressure above. Air escapes around the end of the plate at the wingtip from the high pressure to the low pressure area, reducing net force. So you put some sort of barrier to impede the flow - a wingtip device.
The thing is, both sides of a wing are defined by some nonlinear polynomials, and aft edges are sharp. Machinists don’t/can’t use such surfaces for any reference purposes so centerline can’t be there.
Anyway, absolutely flat wings generate lift as long as the angle of attack is non zero. But, by changing the wings shape they get more efficient. The reasons for that are complex differential equations that don’t really have simple plain English explanations, which is why people do so much testing and simulation. Aka simple 2d diagrams don’t result in: https://en.wikipedia.org/wiki/Wingtip_device
What’s even more confusing is most wing diagrams put the center line in the wrong location. If you take a symmetrical tear drop shape with zero angle of attack the bottom will be sloped up at the same angle the top slopes down. Thus if you instead lay that teardrop so the bottom is flat that represents a positive angle of attack. Granted, wings generally don’t have a symmetric shape, but similar principles apply.