3D modeling works just as 2D but takes longer to solve due to larger and more interconnected meshes. You also can find many 3D fluid flow Matlab m-script file examples here (ex_navierstokes#.m models):
https://www.featool.com/doc/tutorials.html#ex_other