[Nek5000-users] First Visit file

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Thu Jan 6 09:47:07 CST 2011


Hi,

I'm not certain that r1492... has the requisite geometry
in the .fld file.  (nek5000 and postx do not require it)

Also, it might be a good idea to start w/ .fld01, so I
would suggest actually running the case and generating
a sequence of a few .fld files (at least one).  Nek5000
will put the geometry in .fld01 by default.

Then, execute the following script:

-----------------------------------------------------------------------------

#! /usr/bin/tcsh
#
  set base = `head -1 SESSION.NAME`

  echo '\n Generating '$base'.nek3d file ...'

  set nfld = `ls $base.fld* | wc -l`

#echo $base  ' '  $nfld

  echo 'NEK3D'                           >  $base.nek3d
  echo 'filetemplate: '$base'.fld%02d'   >> $base.nek3d
  echo 'firsttimestep: 1'                >> $base.nek3d
  echo 'numtimesteps: '$nfld             >> $base.nek3d
  echo 'meshcoords: 1'                   >> $base.nek3d

  echo '\n Assuming that coordinates are in '$base'.fld01 -- otherwise edit $base.nek3d file ...'
  echo '\n Total : '$nfld' file(s)  ... Done \n'

# Extra lines?
#
# version: 1.0
# endian: big

#ls `head -1 SESSION.NAME`0.f[0-9][0-9][0-9][0-9]* | wc -l

-----------------------------------------------------------------------------

which will make a blah.nek3d file for session name "blah"
(assuming blah is in your SESSION.NAME file).

>From this you can run visit and load blah.nek3d


Paul




On Thu, 6 Jan 2011, nek5000-users at lists.mcs.anl.gov wrote:

> Hi,
>
> I am trying to open the binary example file in /nek5_svn/examples/vortex
> named r1492_n08.fld27 but i received the following error message:
>
> VisIt could not read from the file
> "/home/alex/Documents/nek5_svn/examples/vortex/r1492_n08.fld27".
>
> The generated error message was:
>
> There was an error
> opening /home/alex/Documents/nek5_svn/examples/vortex/r1492_n08.fld27.
> It may be an invalid file. VisIt tried using the following file format
> readers to open the file: Silo
>
> To check if visit was working fine I generated a bov ASCII file and open
> it with no problems.
>
> Thanks.
>
>
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>



More information about the Nek5000-users mailing list