CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Meshing for a block (http://www.cfd-online.com/Forums/main/63126-meshing-block.html)

rocket March 30, 2009 07:11

Meshing for a block
 
Hi,

in the comsol documentation I have learned that uniform mesh for a 2D rectangle can be generated by using function "meshpoi". However, I don't know extend this for a 3D block. I have tried the code

clear fem;

lx = 1;
ly = 1;
lz = 0.2;
fem.geom = block2(lx,ly,lz);

fem.mesh = meshinit(fem);


and I got unstructured mesh. Is there any way that I can construct uniform (structured) mesh for 3D block too?

I hope someone can help me and thanks a lot.


All times are GMT -4. The time now is 15:48.