xsdirconvert.pl issues

Compiler issues (Intel compiler, mpicc, etc.), data libraries and everything needed to get Serpent running is discussed here

Re: xsdirconvert.pl issues

Postby Jaakko Leppänen » Tue Jan 12, 2016 12:25 pm

The script picks the file path from the first line of the MCNP format xsdir file. What do you have there?
- Jaakko
User avatar
Jaakko Leppänen
Site Admin
 
Posts: 1836
Joined: Thu Mar 18, 2010 10:43 pm
Location: Espoo, Finland

Re: xsdirconvert.pl issues

Postby Andy_Turner » Tue Jan 12, 2016 12:35 pm

The first line of xsdir_mcnp6.1 is completely blank.
---------------------

atomic weight ratios
0001 1.000000 0001 1.000000
1000 0.99931697 1001 0.99916733 1002 1.99679968 1003 2.99013997
1004 3.99320563 1005 4.99205575 1006 5.99301364
1007 6.99216250
2000 3.96821760 2003 2.99012018 2004 3.96821897 2005 4.96916622
...
----------------------
Andy_Turner
 
Posts: 18
Joined: Tue Jan 12, 2016 11:38 am

Re: xsdirconvert.pl issues

Postby Andy_Turner » Tue Jan 12, 2016 1:00 pm

Problem seems to be in this bit of script
----------
if ($route eq "0")
{
if ( $path eq ' ' )
{
$acename = sprintf("%s", $fname);
}
else
{
$acename = sprintf("%s/%s", $path, $fname);
$acename =~ s/\/\//\//;
}
}
--------------
Even though $path variable is a blank string, it is not = ' ' (actually it is = ' '). So the second part executes where it appends $path (which is blank) to '/' and 'filenme'.
Just worked around it by setting the 'else' statement also to '$acename = sprintf("%s", $fname);'
- Andy Turner, CCFE
Andy_Turner
 
Posts: 18
Joined: Tue Jan 12, 2016 11:38 am

Re: xsdirconvert.pl issues

Postby Peter Wolniewicz » Tue May 24, 2016 5:07 pm

Hi I have the same issue.

How do I resolve this?

First line in xsdir file is blank
I tried :
./xsdirconvert.pl xsdir_mcnp6.1 > sss_xsdir
I also tried
./xsdirconvert.pl xsdir > sss_xsdir

And all I get in the terminal is:
*snip*
.
.
.
74186.24h: ACE file "/xdata/la150h" does not exist.
80196.24h: ACE file "/xdata/la150h" does not exist.
80198.24h: ACE file "/xdata/la150h" does not exist.
80199.24h: ACE file "/xdata/la150h" does not exist.
80200.24h: ACE file "/xdata/la150h" does not exist.
80201.24h: ACE file "/xdata/la150h" does not exist.
80202.24h: ACE file "/xdata/la150h" does not exist.
80204.24h: ACE file "/xdata/la150h" does not exist.
82206.24h: ACE file "/xdata/la150h" does not exist.
82207.24h: ACE file "/xdata/la150h" does not exist.
82208.24h: ACE file "/xdata/la150h" does not exist.
83209.24h: ACE file "/xdata/la150h" does not exist.
peter@peter-HP-Zbook-17-G2:~/MY_MCNP/MCNP_DATA$


Best regards,
Peter
Peter Wolniewicz
 
Posts: 135
Joined: Mon Dec 13, 2010 5:50 pm

Re: xsdirconvert.pl issues

Postby Jaakko Leppänen » Wed May 25, 2016 9:47 am

Did you edit the data path in the xsdir file? Serpent is now looking for the ACE files from "/xsdata/".
- Jaakko
User avatar
Jaakko Leppänen
Site Admin
 
Posts: 1836
Joined: Thu Mar 18, 2010 10:43 pm
Location: Espoo, Finland

Re: xsdirconvert.pl issues

Postby Peter Wolniewicz » Wed May 25, 2016 10:42 am

No I didnt edit it. The first line in the xsdir file is empty. Should I edit it?

edit: I entered the folder path of the xsdir file on the first line in the xsdir file and the converter now works. In case i missed it: It doesnt say that clearly in the installation instructions?

best regards,
Peter
Peter Wolniewicz
 
Posts: 135
Joined: Mon Dec 13, 2010 5:50 pm

Re: xsdirconvert.pl issues

Postby thennigh » Fri Dec 22, 2017 1:12 am

I am trying to convert some custom libraries a former student wrote for mcnp into libraries for serpent using xsdirconvert. I am getting an error:

Data type 2 not supported.

This shows up for every nuclide in every library. Does anyone know of a quick way to convert Data type 2 into serpent?
thennigh
 
Posts: 6
Joined: Thu Jun 04, 2015 9:46 pm

Re: xsdirconvert.pl issues

Postby Jaakko Leppänen » Sat Dec 23, 2017 2:36 pm

I think data type 2 is binary, which serpent cannot read. There is a processing tool (prpr or something like that?) In the mcnp installation package that converts ascii to binary. It may also work the other way round.
- Jaakko
User avatar
Jaakko Leppänen
Site Admin
 
Posts: 1836
Joined: Thu Mar 18, 2010 10:43 pm
Location: Espoo, Finland

Previous

Return to Compiling and installing Serpent

Who is online

Users browsing this forum: No registered users and 1 guest

cron