A 3D model for MFD flow simulation