[Nek5000-users] First Visit file
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Thu Jan 6 11:10:39 CST 2011
Hello,
If you run
head -1 r1492_n08.fld27 | strings | head -1
you will see the output variable codes 'U P ' in the file header
140 8 8 8 5.0101000E+0250101 U P 4 NELT,NX,N
which means there are only velocity and pressure fields in the file. As Paul suggested, in order to get coordinates for visit, you need to rerun the case with
T COORDINATES
and at least with NSTEPS=0 in .rea
Best,
Aleks
----- Original Message -----
From: nek5000-users at lists.mcs.anl.gov
To: nek5000-users at lists.mcs.anl.gov
Sent: Thursday, January 6, 2011 9:47:07 AM
Subject: Re: [Nek5000-users] First Visit file
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
>
_______________________________________________
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