The object of our study was to study the thermal comfort of occupants and indoor air quality in an apartment unit. The program for calculating air conditioning load and the CFD program including a turbulence model and a radiation model were applied to solution of air temperature, air velocity, thermal comfort indices etc.. We could regulate the air conditioning online for the purpose of energy conservation. It is of good value of reference for the research of air conditioning system in intelligent building.