Fatal Error: Composition not sorted

Questions and discussion about applications, input, output and general user topics
Post Reply
jdietz
Posts: 4
Joined: Mon May 11, 2020 10:54 am
Security question 1: No
Security question 2: 7

Fatal Error: Composition not sorted

Post by jdietz » Mon May 11, 2020 11:00 am

Hi all,

I've been trying to make a Serpent input using artificial decay constants in order to simulate removal of some elements from the system. The initial material composition is a relatively standard MSFR starting salt. I have successfully run the case without the addition of the removal constants, and it worked just fine. Now that I have added them, I get the following fatal error:

Fatal error in function BurnMatCompositions:

Composition not sorted

Simulation aborted.

I have had a look at the source code and was able to find the location that causes the error, however I am not familiar enough with C to really get any further than that. It makes little sense to me that adding decay constants would break the sorting of the composition, but maybe I am misunderstanding the error message.

I would appreciate any and all tips/help.
Thank you in advance!

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

Re: Fatal Error: Composition not sorted

Post by Jaakko Leppänen » Mon May 11, 2020 11:20 am

How do you add the artificial decay constants?
- Jaakko

jdietz
Posts: 4
Joined: Mon May 11, 2020 10:54 am
Security question 1: No
Security question 2: 7

Re: Fatal Error: Composition not sorted

Post by jdietz » Mon May 11, 2020 11:25 am

I'm using 'mflow rem' to assign all the elements their respective decay constants, followed by the following lines:

rep r1
rc fuel outflow rem 1

where outflow is an empty material.

mat outflow 0.0 vol 1.0 burn 1
92238.09c 0.0

While I have not really been able to find this in the Serpent Wiki (which is likely the issue), it is taken from a very similar input from a colleague of mine for whom it seems to work.

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

Re: Fatal Error: Composition not sorted

Post by Jaakko Leppänen » Mon May 11, 2020 11:28 am

Which code version are you using?
- Jaakko

jdietz
Posts: 4
Joined: Mon May 11, 2020 10:54 am
Security question 1: No
Security question 2: 7

Re: Fatal Error: Composition not sorted

Post by jdietz » Mon May 11, 2020 11:29 am

I am using version 2.1.30.

jdietz
Posts: 4
Joined: Mon May 11, 2020 10:54 am
Security question 1: No
Security question 2: 7

Re: Fatal Error: Composition not sorted

Post by jdietz » Fri May 15, 2020 1:43 pm

Can you help me at all? I still have no idea what's going wrong with this input..

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

Re: Fatal Error: Composition not sorted

Post by Jaakko Leppänen » Mon May 18, 2020 8:57 am

I think the first thing to do is to try with the most recent update (2.1.31). If you don't have that, send me an email.
- Jaakko

Luke_Seifert
Posts: 4
Joined: Sun Sep 22, 2019 9:36 pm
Security question 1: No
Security question 2: 19

Re: Fatal Error: Composition not sorted

Post by Luke_Seifert » Fri Sep 24, 2021 8:09 pm

I had this same error in version 2.1.32, but I was able to determine the issue I was having. The cause of my issue was the removal flow was defined using "92238", while the fuelsalt was defined using "U-238". Converting them both to the same format fixed the issue. Hope that anyone else having this issue finds this helpful.

Ana Jambrina
Posts: 685
Joined: Tue May 26, 2020 5:32 pm
Security question 1: No
Security question 2: 7

Re: Fatal Error: Composition not sorted

Post by Ana Jambrina » Sun Sep 26, 2021 7:50 pm

As Luke pointed out, the problem might derive from not converting the isotope symbol/string to ZAI (or vice-versa) within the MSR-routines. Thus, Serpent interprets them as different isotopes, not finding them within the transmutation paths/listed nuclides.
- Ana

Post Reply