Numerical investigation of wind turbine and wind farm aerodynamics