For simulating thermal comfort, the air exchange rate has to be calculated. I have used a very long way to calculate it by evaluating it for every window and the summing the total value. Is there a better concise way to do this?
If the building enclosure is mechanically ventilated, the air exchange is one of the boundary conditions you should be able to specify through air supply rate.
If you are simulating natural ventilation, you need to identify which opening(s) is inlet(s) and which is outlet(s). You either evaluate the total inlet flow rate or outlet flow rate. The way to determin whether an opening is inlet or outlet is to check whether the opening is below or above the neutral plane.
The tricky situation is when you have an opening that servces as both an inlet and an outlet. You need to evaluate the total outlet flow rate above the neutral plane. I am afraid there is no easy way.