I think the curtains are meant to be shut because closed windows + open curtains = greenhouse.
It works. Then once the sun moves away from a certain part of your house you can then open those windows and curtains and start letting air in again. Although how well it will work in 40 degree heat is another question.