CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Mesh data to be read by Fortan code (https://www.cfd-online.com/Forums/main/6006-mesh-data-read-fortan-code.html)

seckin April 19, 2003 14:31

Mesh data to be read by Fortan code
 
hi, I have created a mesh using Gambit and I want to write the vertex data into a file and let my Fortran code read from that file. I tried to export the mesh from Gambit in some formats but I couldn't figure out the writing style of Gambit. I want the file be in the following format: do j=1,jmax x(i,j), y(i,j), i=1,imax enddo but I guess Gambit writes differently than the above scheme..am I wrong? can anyone give me a clue on this? thanks,regards seckin

Jim Park April 19, 2003 17:38

Re: Mesh data to be read by Fortan code
 
I hope you meant to write:

do j = 1, jmax

do i = 1, imax

read x(i,j), y(i,j)

end do

end do


seckin April 19, 2003 19:19

Re: Mesh data to be read by Fortan code
 
yes that's correct.. thanks for correcting.. seckin

xueying April 19, 2003 22:36

Re: Mesh data to be read by Fortan code
 
You can write a Fortran code to read the informations you want according to the mesh files you generated by skipping some not useful lines. I think it's not possible that the mesh file only have the position informations, otherwise the mesh file doesn't include enough informations.

Mike April 23, 2003 10:53

Re: Mesh data to be read by Fortan code
 
Merhaba Seckin, Bence yapman gereken sey GAMBIT el kitabini bulup grid dosyalarini hangi formatta kaydetdiklerini anlamandir. Daha sonra belirtilen formata uygun sekilde gambit grid dosyasindan x,y datalarini okuyup istedigin formatta yazdirabilirsin. Onemli olan kesinlikle gambit el kitabinin verdigi formata bagli kalmandir.

Selina Tracy April 24, 2003 22:58

Re: Mesh data to be read by Fortan code
 
Italian! Dose not look like German, French or Spanish. Might be Iraq's. -Selina

Yuan May 13, 2003 17:59

Re: Mesh data to be read by Fortan code
 
I don't think Gambit data can be read into Fortran Code. I recommend Gridgen.

mohammadbappiamin December 15, 2020 12:51

Quote:

Originally Posted by seckin
;24196
hi, I have created a mesh using Gambit and I want to write the vertex data into a file and let my Fortran code read from that file. I tried to export the mesh from Gambit in some formats but I couldn't figure out the writing style of Gambit. I want the file be in the following format: do j=1,jmax x(i,j), y(i,j), i=1,imax enddo but I guess Gambit writes differently than the above scheme..am I wrong? can anyone give me a clue on this? thanks,regards seckin

Hi,

I have generated a 2D mesh using Gambit and now I need to read the mesh that is generated. Did you find or write any program in Fortran? Do you mind sharing it with me? I am really struggling with it and I would appreciate if you can please help me out.

Thanks
Bappi

JINXIE December 7, 2022 00:58

Quote:

Originally Posted by mohammadbappiamin (Post 790765)
Hi,

I have generated a 2D mesh using Gambit and now I need to read the mesh that is generated. Did you find or write any program in Fortran? Do you mind sharing it with me? I am really struggling with it and I would appreciate if you can please help me out.

Thanks
Bappi


Hi,
Did you developed the code to do that? I am currently working on this as well, can you give me some advice? Thanks


Best, Jin


All times are GMT -4. The time now is 09:39.