IOMRFZoneList MRF(mesh); forAllIter(PtrDictionary, fluid.phases(), iter) { MRF.correctBoundaryVelocity(iter().U()); } MRF.correctBoundaryVelocity(U);