Backwards compatibility issue - "PutText" function error

Report all good and bad behavior here
Post Reply
krowland
Posts: 3
Joined: Sun Sep 22, 2013 8:52 am
Security question 1: No
Security question 2: 92

Backwards compatibility issue - "PutText" function error

Post by krowland » Sun Sep 22, 2013 11:56 pm

Hello,

I am working on a unit cell model for a fast reactor core for a design class, and I have encountered a backwards compatibility issue between Serpent and Serpent 2.

The code is as follows:

Code: Select all

surf 1 hexyprism 0.0 0.0 20.0 -50.0 50.0

cell 1 0 mix -1
cell 2 0 outside 1

mat mix -11.7385748908 #homogeneous core mixture, 11.7385748908 g/cc
C-nat.09c  0.00528880697453
Si-nat.09c 0.00452338995731
P-31.09c  0.000307549049809
S-nat.09c  0.00019812148527
V-nat.09c  0.00187063541906
Cr-nat.09c 0.070247313023
Mn-55.09c 0.00346885379588
Fe-nat.09c 0.483149766363
Ni-nat.09c 0.00270574051686
Mo-nat.09c 0.00331047179458
W-nat.09c  0.000863901825307
Na-23.09c 0.422610785528
U-234.09c  6.34146340551e-09
U-235.09c  3.15720332507e-06
U-238.09c  0.00124380584909
Zr-nat.09c 0.000207694873688

set acelib "/usr/local/serpent/xsdata/endfb7/sss_endfb7u.xsdata"
set bc 2 #reflective boundary condition
set nps 2000000

src fuelSrc sm mix sr 92235.09c 18

plot 3 500 500 #plot x-y plane, 500x500 pixels
The error produced from Serpent 2 is:

Code: Select all

Fatal error in function PutText:

Empty string

Simulation aborted.
However, when I run the code with Serpent, it does not return such an error, and the simulation executes. Also, the Serpent 2 error is somewhat vague, is there any more detail as to how I might amend my input to fix it?

Thanks.
Kelly Rowland
PhD Student, UC Berkeley

User avatar
Jaakko Leppänen
Site Admin
Posts: 2445
Joined: Thu Mar 18, 2010 10:43 pm
Security question 2: 0
Location: Espoo, Finland
Contact:

Re: Backwards compatibility issue - "PutText" function error

Post by Jaakko Leppänen » Mon Sep 23, 2013 1:49 pm

The problem is that the material name "mix" is a Serpent keyword that defines a mixture of two materials:

http://ttuki.vtt.fi/serpent/viewtopic.php?f=24&t=1725

Serpent uses these keywords to parse the input, so it thinks that you entered a material card without any parameters. I'll fix the error message for the next update.
- Jaakko

krowland
Posts: 3
Joined: Sun Sep 22, 2013 8:52 am
Security question 1: No
Security question 2: 92

Re: Backwards compatibility issue - "PutText" function error

Post by krowland » Mon Sep 23, 2013 11:47 pm

The file executes now. Thank you!
Kelly Rowland
PhD Student, UC Berkeley

Post Reply