CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > EnSight

need help ( generate binary file for Ensight )

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 28, 2009, 23:54
Default need help ( generate binary file for Ensight )
New Member
Join Date: Jul 2009
Posts: 12
Rep Power: 0
jackson is on a distinguished road
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

buf='Fortran Binary'
write(99) buf
buf='Geometry File in Ensight Gold Format'
write(99) buf
write(99) buf
buf='node id given'
write(99) buf
buf='element id given'
write(99) buf

do m=1,nbsets
write(99) buf
write(99) m
write(99) buf
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))

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))

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))
end do

jackson is offline   Reply With Quote

Old   July 29, 2009, 09:11
Senior Member
kevincolburn's Avatar
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 130
Rep Power: 10
kevincolburn is on a distinguished road

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 >& log.txt and you will get the whole output sent to the log.txt file which could then examine in detail).

kevincolburn is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convection discretization schemes for LES sek OpenFOAM Running, Solving & CFD 38 July 31, 2017 14:30
Paraview command not found hardy OpenFOAM Paraview & paraFoam 7 September 18, 2008 04:59
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01: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

All times are GMT -4. The time now is 22:51.