[Nek5000-users] Using postx

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Mon Jul 2 18:00:19 CDT 2012


Hi Rich,

Great question -- I'm checking with Hank Childs
to see if 2.4.0 is up to date with the Nek5000 reader.

Also, I just noticed that the script we normally use
to generate a meta-data file is not in the repo.  It
should be shortly -- it's called "nekvis".  I usually
use it (on linux platforms) by simply typing

   nekvis

or

nekvis session

where session is the name of the .rea file.  This script
creates the metadata file and then launches VisIt. I'm attaching 
the script that I use here, but Katie is putting the latest 
into the repo.

Paul

On Mon, 2 Jul 2012, nek5000-users at lists.mcs.anl.gov wrote:

> Paul
> Okay, so how do I use VisIt. I have version 2.4.0 on my PC. But it won't
> read any of the files from nek5000. Do I need to set some switch to enable
> a visit file?
> Rich
>
>
>
>
> nek5000-users at lists.mcs.anl.gov
> Sent by: nek5000-users-bounces at lists.mcs.anl.gov
> 07/02/2012 03:27 PM
> Please respond to
> nek5000-users at lists.mcs.anl.gov
>
>
> To
> nek5000-users at lists.mcs.anl.gov
> cc
>
> Subject
> Re: [Nek5000-users] Using postx
>
>
>
>
>
>
>
> Hi Rich,
>
> Sorry about this.
>
> It turns out that most folks have been using VisIt for
> their analysis, so the incompatibility between postx
> and recent updates to file formats have generally not
> been an issue.
>
> I see from Katie's email that she's already working on
> an update to postx.
>
> Paul
>
> On Mon, 2 Jul 2012, nek5000-users at lists.mcs.anl.gov wrote:
>
>> Dear Nek5-heads
>>
>> I have run the example called turbChannel from the examples list and it
>> seemed to run fine. However, when I try to look at the results using
>> postx, I get the message
>> "PARAMETER DATA CORRUPTED OR MISSING FROM READ FILE"
>> as the post-processor exits.  I am also trying the do my own problem (a
>> DNS in a square duct) using turbChannel as an example. But I can't look
> at
>> my grid because I get the same message. What am I missing in the .rea
>> file?
>>
>> Here is the turbChannel.rea file.
>>
>>
>>
>> Rich Johnson
>> Idaho National Lab
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>
>
-------------- next part --------------
#! /bin/tcsh
#
#  Shell script that generated VisIt metafile blah.nek5000 either from SESSION.NAME or from the first command line argument
#

 set nfld = 0					# # of field files

 if ($#argv == 0) then
    if (-f SESSION.NAME) then
       set base = `head -1 SESSION.NAME`	# case name
    else
       set nfld = -1				# exit
       echo
       echo '  No SESSION.NAME file -- Use "visnek case_name"'
       echo
    endif
 else
       set base = $argv[1]
 endif


if ($nfld != -1) then

 echo
 echo '  Generating '$base'.nek5000 file ...'
 echo
 
#echo 'endian little'			>  $base.nek5000
#echo 'endian big'			>  $base.nek5000

 if  (-e		        $base.fld01) then
    set nfld = `ls -1	        $base{.fld[0-9][0-9]*}			| wc -l`
    echo 'filetemplate:	       '$base'.fld%02d'			>  $base.nek5000
 else if (-e 		   'A0/'$base'0.f00001') then
    set nfld = `ls -1	     A0/$base{0.f[0-9][0-9][0-9][0-9][0-9]}	| wc -l`
    echo 'filetemplate:	 A%01d/'$base'%01d.f%05d'		>  $base.nek5000
 else if (-e 		        $base'00.f00001') then
    set nfld = `ls -1	        $base{00.f[0-9][0-9][0-9][0-9][0-9]}	| wc -l`
    echo 'filetemplate:	       '$base'%02d.f%05d'		>  $base.nek5000
 else if (-e 		  'A00/'$base'00.f00001') then
    set nfld = `ls -1	    A00/$base{00.f[0-9][0-9][0-9][0-9][0-9]}	| wc -l`
    echo 'filetemplate:	 A%02d/'$base'%02d.f%05d'		>  $base.nek5000
 else if (-e 		        $base'000.f00001') then
    set nfld = `ls -1	        $base{000.f[0-9][0-9][0-9][0-9][0-9]}	| wc -l`
    echo 'filetemplate:	       '$base'%03d.f%05d'		>  $base.nek5000
 else if (-e 		 'A000/'$base'000.f00001') then
    set nfld = `ls -1	   A000/$base{000.f[0-9][0-9][0-9][0-9][0-9]}	| wc -l`
    echo 'filetemplate:	 A%03d/'$base'%03d.f%05d'		>  $base.nek5000
 else if (-e 		'A0000/'$base'0000.f00001') then
    set nfld = `ls -1	  A0000/$base{0000.f[0-9][0-9][0-9][0-9][0-9]}	| wc -l`
    echo 'filetemplate:	 A%04d/'$base'%04d.f%05d'		>  $base.nek5000
 else
    set nfld = `ls -1		$base{0.f[0-9][0-9][0-9][0-9][0-9]}	| wc -l`
    echo 'filetemplate:	       '$base'%01d.f%05d'		>  $base.nek5000
 endif
 endif
 endif


 echo 'firsttimestep: 1'	 	>> $base.nek5000
 echo 'numtimesteps: '$nfld		>> $base.nek5000

#echo 'meshcoords: 1'			>> $base.nek5000


 echo
 echo ' Assuming that coordinates are in the first file '$base'*.f*01 -- otherwise edit $base.nek5000 file ...'
 echo
 echo ' Also one may need to correct for an endian by inserting the first line "endian big" or "endian little" in case of, e.g., files transfered from other systems'
 echo
 echo
 echo ' Total '$nfld' file(s) are in the generated file '$base'.nek5000 ... Done!'
 echo

endif	# nfld != -1


visit -o $base.nek5000



More information about the Nek5000-users mailing list