|
[Sponsors] |
need help ( generate binary file for Ensight ) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 29, 2009, 00:54 |
need help ( generate binary file for Ensight )
|
#1 |
New Member
Edward
Join Date: Jul 2009
Posts: 12
Rep Power: 0 |
my fortran code generte a binary file in Ensight Gold format,but reading error. i used the ens_checker.bat but it just a sudden flash and disappear,i saw nothing about the debug information. who can help me, thank you very much!
my fortran code is given below subroutine ensgeobin use typedef use vars use paras implicit none integer,pointer :: nl,fl integer i,j,m,k character(80) :: buf integer,external :: nvface open(99,file='ensight.geo',form='binary') buf='Fortran Binary' write(99) buf buf='Geometry File in Ensight Gold Format' write(99) buf buf='' write(99) buf buf='node id given' write(99) buf buf='element id given' write(99) buf do m=1,nbsets buf='part' write(99) buf write(99) m buf=bcn(m) write(99) buf buf='coordinates' write(99) buf write(99) nbv(m) write(99) (i,i=1,nbv(m)) write(99) (cc(1,i,m),i=1,nbv(m)) write(99) (cc(2,i,m),i=1,nbv(m)) write(99) (cc(3,i,m),i=1,nbv(m)) if(icnt_4(m)>0)then buf='quad4' write(99) buf write(99) icnt_4(m) write(99) (i,i=1,icnt_4(m)) write(99) ((to4(j,i,m),j=1,4),i=1,icnt_4(m)) endif if(icnt_3(m)>0)then buf='tria3' write(99) buf write(99) icnt_3(m) write(99) (i,i=1,icnt_3(m)) write(99) ((to3(j,i,m),j=1,3),i=1,icnt_3(m)) endif end do close(99) |
|
July 29, 2009, 10:11 |
|
#2 |
Senior Member
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17 |
Jackson,
It looks like you are running on a windows platform. If you are, then try to run the ens_checker from a command prompt window, rather than just executing the .bat file. Open up a command prompt, change directory to the location of the case file, and then type in ens_checker90 or ens_checker82 (depending upon which you have installed). The command prompt window will not close, and you should see the debug information. (If you are on a linux system, you could type : ens_checker90 mycase.case >& log.txt and you will get the whole output sent to the log.txt file which could then examine in detail). -Kevin |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convection discretization schemes for LES | sek | OpenFOAM Running, Solving & CFD | 38 | July 31, 2017 15:30 |
[OpenFOAM] Paraview command not found | hardy | ParaView | 7 | September 18, 2008 05:59 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
PHI file structure | Eugene | Phoenics | 9 | November 2, 2001 23:00 |