CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   How to generate the Cartesian grid (

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

manukamin November 25, 2011 01:13


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:


for i=1:1:10




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:27.