CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Fortran Code for Grid generation.(please help me if you can) (https://www.cfd-online.com/Forums/main/72690-fortran-code-grid-generation-please-help-me-if-you-can.html)

vortexman February 15, 2010 06:07

Fortran Code for Grid generation.(please help me if you can)
 
Hi guys,
I wanna write a program that generates grid for a rectangular domain.I just need to define nodes (with arrays).actually a program that just reads nodes based on the lengths of rectangle and number of cells for each length.and then import it to PLOT3D.should I define all nodes inside the rectangle or just on boundaries?how can i define the connection between nodes? I don't know how to do it exactly.please help me.

Best Regards,

gerritgroot February 15, 2010 06:18

I don't know about plot3D, but if it permits structured grids, the easiest way is to make a structured grid, in that case you don't need any connectivity table.

RameshK February 15, 2010 13:08

use algbriac interpolation
 
hi

first do a planar case and then stack it.
u need to define only the boundary points, and based on the number points on the boundaries u can generate points.

this is simple to do only thing is u need to write a gridgen program in 2d and generate the point list and increment the z co-ordinate to get the 3d one


All times are GMT -4. The time now is 20:56.