I am trying to understand the physics behind a single sailed boat. I have read the following questions
Sailing against the wind. Is this a fair model?
What exactly is the 'lift' of a sailboat as explained by Bernoulli principle
I've also been following this explanation which seemed to be helping but I am still confused. Full disclosure: my physics is pretty weak and I've never sailed, but my maths should be sound.
I am (now) aware of the two components that provide the force that moves the boat: The "Newtonian aspect", where the wind collides with the sail and this produces a force and the "Bernoulli aspect" resulting from pressure differences resulting from the air passing around the sail.
(If people think this would be better as two questions, happy to break it down, but I suspect one or both will be silly)
Update: It has been said by @CarlWittoff that the Bernoulli aspect is pretty trivial, so I would like to focus on how the Newtonian part of the force can achieve a force that goes into the wind.
Newtonian Aspect
I understand this in the most simplest sense, a sail perpendicular to the wind will produce a force on the boat proportional to the relative wind speed. As the sail is angled in to the wind, you get more "lift" and less "drag" (in plane terms).
In the sailing explanation, it implies that the Newtonian aspect can be used to explain going into the wind. This is also hinted at in the first question. However, I don't understand how this can be. Surely the force applied to the sail, and hence the ship, is always in the direction of the wind. Hence it can never provide a force into the wind. The article seems to suggest you can get away without the Bernoulli effect, but I don't see how.
This is my attempt at how this translates into sail. The air is pushed around the sail, which exerts a force (in purple) on the boat. However, I can see no way for this force to be into the wind.
Bernoulli Aspect
This is the area I am even more lost with. My understanding is that somehow, you can angle the sail in such a way that the air that goes past on one side knows to go faster which reduces the pressure, giving a force. However, I cannot seem to connect that intuition to any kind of applicable formula. Specifically, what determines the direction of the force and what is it proportional to?
I'm trying to simulate a boat for a game and any help on which formulae I actually need to be plugging in would be hugely appreciated :)