CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   How to generate the Cartesian grid (https://www.cfd-online.com/Forums/main/94674-how-generate-cartesian-grid.html)

wyuanding November 22, 2011 11:43

How to generate the Cartesian grid
 
Hi CFDer guys,I want to generate Cartesian grid,does anyone use program code to generate the Cartesian Grid ?Can you give me some advise or some code ?
I try a lot to write program codeb by C++ to implement the Cartesian mesh generation , but I lost myself ,I donn't know how to write the code .So I appreciate you guys can help me and if possible,please give me the code to generate the Cartesian mesh.

Thank you so much! Now I feel like that I was at sea without dirctions.:confused:
I look forward to seeing you guys as my sunshine to take me in the right direction.

Thank you again!

My email address is :wyd19870328@163.com.

manukamin November 25, 2011 01:13

HI

I dont understand the difficulty here.Or maybe I haven't understood your doubt correctly.. All you have to do is generate some x and y co-ordinate values to each grid point right?

something like:

delx=.5;

for i=1:1:10

x(i+1)=x(i)+delx;

end

Thanks
Manu

wyuanding November 28, 2011 06:35

what I want to say is that :how to generate Adaptive Cartesian Mesh .Thank you all the same !


All times are GMT -4. The time now is 03:49.