CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   grid generation finite difference (https://www.cfd-online.com/Forums/main/96330-grid-generation-finite-difference.html)

Armin January 19, 2012 13:52

grid generation finite difference
 
Hi everyone,

It's been a while since I used the forum, here is the question,

I have been writing a finite difference code in python and I have reached the part, where I want to generate a more general mesh generation than just
a normal rectangular grid, is there any kind of road map, as how I could proceed? I'm interested in curvelinear coordinates as well with stretching etc.

So Is there any paper or some kind of a new approach? Any comment would be highly appreciated.

cfdnewbie January 19, 2012 13:58

Quote:

Originally Posted by Armin (Post 340168)
Hi everyone,

It's been a while since I used the forum, here is the question,

I have been writing a finite difference code in python and I have reached the part, where I want to generate a more general mesh generation than just
a normal rectangular grid, is there any kind of road map, as how I could proceed? I'm interested in curvelinear coordinates as well with stretching etc.

So Is there any paper or some kind of a new approach? Any comment would be highly appreciated.


A pretty good reference is the Tannehill and Pletcher book, is has a good chapter about elliptic grid generation for curvilinear domain. A student of mine build a C-grid generator after reading the chapter, so I assume it must have been helpful!

Cheers

Armin January 19, 2012 14:29

Thanks alot , I will check that out.

Is there also any code snippets around to get an idea where to actually start and save time ??

cfdnewbie January 19, 2012 15:28

I probably have some Matlab code from my students somewhere....if this would be of help, send me your email by PN!

jchawner January 22, 2012 17:02

Armin: I recommend the classic text (available online) by Thompson, Warsi, and Mastin: http://www.erc.msstate.edu/publications/gridbook/

Armin January 22, 2012 18:50

Thank you very much for your answer, I just downloaded the book. I also lack the programming experience, but I think it comes as I work through it , right? :)

jchawner January 22, 2012 19:00

Yes, that's why they call it experience ;-)

arjun January 22, 2012 20:39

Quote:

Originally Posted by jchawner (Post 340550)
Armin: I recommend the classic text (available online) by Thompson, Warsi, and Mastin: http://www.erc.msstate.edu/publications/gridbook/


thank you very much for the link. I have handbook of grid generation, so it would be nice addition to it.

naffrancois January 23, 2012 06:23

Hello !

You could also have a look to the Blazek's book, it comes along with some useful compact fortran codes for 2d elliptic grid generation

Blazek, Computational fluids dynamics: Principles and applications

good luck !
François

imah April 12, 2012 04:01

C-grid problem...
 
HI..

I has problem with 2d euler.. I try to solve airfoil by using C-grid.. I used TVD scheme but i cant sucssesfully run the code.. before this, i use same programme to another problem, it sucssesfull run.. I though maybe some mistake i cant figure out..
1. im not sure the bounday condition for double connected grid...
2. because of using Finite differen method, maybe the grid generation not very good..

hope any suggestion for my problem.. thanks..


:confused:


All times are GMT -4. The time now is 23:42.