An NLR airfoil with a flap is meshed as overlapping grid systems. Prescribed motion models are applied to the airfoil and the flap. The motion model applied to the flap specifies the relative motion of the flap with respect to the airfoil and is dependent on the airfoil motion.