A code-independent generalized actuator line model for wind farm aerodynamics over simple and complex terrain. (August 2017)