CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Read dat file with fortran

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2005, 11:59
Default Read dat file with fortran
  #1
Francois
Guest
 
Posts: n/a
Hello,

I have made a 3D LES simulation and want to read the dat file generated by Fluent with a small Fortran code.

The mesh is structured with hexaedral elements. I have exported the dat file to ascii (node values) but I'm unable to find a good solution to read the variables.

I want someting like this for Nx x Ny x Nz nodes:

I J K X Y Z Variable1 ....

1 1 1 X(1,1,1) Y(1,1,1) Z(1,1,1) V(1,1,1)

1 1 2 X(1,1,2) Y(1,1,2) Z(1,1,2) V(1,1,2)

. . .

1 1 Nz X(1,1,Nz) Y(1,1,Nz) Z(1,1,Nz) V(1,1,Nz)

1 2 1 X(1,2,1) Y(1,2,1) Z(1,2,1) V(1,2,1)

1 2 2 X(1,2,2) Y(1,2,2) Z(1,2,2) V(1,2,2)

. . .

1 Ny Nz X(1,Ny,Nz) Y(1,Ny,Nz) Z(1,Ny,Nz) V(1,Ny,Nz)

. . .

Nx Ny Nz X(Nx,Ny,Nz) Y(Nx,Ny,Nz) Z(Nx,Ny,Nz) V(1,Ny,Nz)

Any idea will be helpfull. Thank's in advence

Francois
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 07:29
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 08:11
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
[OpenFOAM] Paraview command not found hardy ParaView 7 September 18, 2008 05:59
PHI file structure Eugene Phoenics 9 November 2, 2001 23:00


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