Question on openmc fixed source calculation

585 views
Skip to first unread message

Shawn

unread,
Nov 2, 2016, 9:54:33 PM11/2/16
to OpenMC Users Group

Hello everyone,

  I’ve got a problem in a GODIVA benchmark like calculation. In eigenvalue calculation, the results of kappa-fission, flux and fission rate match well with mcnpx. But when I place a 14MeV fixed source in the center of the sphere and do the fixed source calculation, the results given by mcnpx are hundreds of times of OpenMC. It seems that the results given by mcnpx is more reasonable, is OpenMC wrong? This confused me a lot, could you help me? The model and results are given below.

With respect,

Shawn



geometry


geometry

material

Sphere:R=8.7406cm

U235 0.04495832 atom/(b•cm)

U238 3.017691E-3 atom/(b•cm)

eigenvalue calcualtion


 

OpenMC

err

 

MCNPX

keff

0.99551

0.00023

keff

0.99570

Nu-fission rate(neutrons /source)

0.995233

3.10623E-04

Tally 6(energy deposition, in MeV)

6.4721E+01

 

Kappa-Fission rate(MeV/source)

74.1207

2.34550E-02

Tally 7(fission energy deposition,in MeV )

6.9316E+01

 

Flux(particle-cm/source)

6.79298

2.06656E-03

Flux(particle-cm/source)

6.7961E+00

Fission rate(reactions/source)

0.382990 

1.21205E-04

Loss to fission(per source particle)

3.8314E-0

14MeV fixed-source


 

OpenMC

err

 

MCNPX

Nu-fission rate(neutrons /source)

2.48444

3.10623E-04

Tally 6(energy deposition, in MeV)

5.3586E+04

 

Kappa-Fission rate(MeV/source)

  120.669

2.34550E-02

Tally 7(fission energy depositon, in MeV)

5.7393E+04

 

Flux(particle-cm /source)

  8.34766  

2.06656E-03

Flux(particle-cm/source)

5.6234E+03

Fission rate(reactions/source)

0.623181

1.21205E-04

Loss to fission(per source particle)

3.1731E+02

 




Paul Romano

unread,
Nov 3, 2016, 11:39:31 AM11/3/16
to Shawn, OpenMC Users Group
Hi Shawn,

The problem is that the model itself is very close to critical (keff=0.99551 as you saw). When run in fixed source mode, it becomes a subcritical multiplication problem. However, at the moment, OpenMC can only handle subcritical multiplication problems up to about keff=0.99. Beyond that, too many fission neutrons are created and will eventually exceed the size of the secondary particle bank. When I try to run your problem with a 14 MeV point source in the center of the sphere, I eventually get the following error:

 ERROR: Secondary particle bank size limit reached. If you are running a
        subcritical multiplication problem, k-effective may be too close to one.

Perhaps MCNPX has a method for handling subcritical multiplication problems that are close to critical. If you are interested in such a functionality for OpenMC, I'd encourage you to create an issue on our github repo.

Best,
Paul

--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users+unsubscribe@googlegroups.com.
To post to this group, send email to openmc...@googlegroups.com.
Visit this group at https://groups.google.com/group/openmc-users.
For more options, visit https://groups.google.com/d/optout.

Shawn

unread,
Nov 7, 2016, 3:51:05 AM11/7/16
to OpenMC Users Group

Hi Paul,

   Thank you for your response. I’ve made a mistake before. In the openmc fixed source calculation, the composition of 235U was wrongly written as 0.04, so the keff of the system is 0.904. After correcting this mistake, openmc gives a kappa-fission of 131.294MeV, the error you mentioned didn’t appear. My openmc version is 0.7.1.

 I change the keff to 0.9 and 0.48 by reducing the composition of 235U to 0.04 and 0.02. But the kappa-fission value doesn’t match with the result given by MCNPX. What could be wrong?

 

Fission energy depostionMeV

0.9

0.48

openmc

120.692

69.6386

mcnpx

2194

164.37

With regards,

Shawn



在 2016年11月3日星期四 UTC+8上午9:54:33,Shawn写道:

Paul Romano

unread,
Nov 7, 2016, 2:39:42 PM11/7/16
to Shawn, OpenMC Users Group
There was no support for subcritical multiplication in version 0.7.1, so in a fixed source calculation, fission would be treated as absorption with no neutrons created. Support for subcritical multiplication was added in version 0.8, so to get comparable answers with MCNPX, you will need to upgrade to version 0.8.

Best,
Paul

Shawn

unread,
Nov 24, 2016, 10:03:07 PM11/24/16
to OpenMC Users Group, hongs...@gmail.com
Hi Paul,
    Thank you for your help. I've upgraded my OpenMC to version 0.8, and the results match well with MCNPX. Then,I tried to perform an fixed source problem using an OECD ADS benchmark model, the spallation neutrons were given by FLUKA, and I transferred to hdf5 format source file . When I ran OpenMC,  it reported:
 Loading ACE cross section table: 25055.03c
 Maximum neutron transport energy: 20.0000 MeV for 94238.03c
 Initializing source particles...
 Reading source file from /home/shong/openmcwork/source.h5...
 ===========================================================================
 ===============>     FIXED SOURCE TRANSPORT SIMULATION     <===============
 ===========================================================================
 Simulating batch 1...
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0  0x7ff0bf8ede3a
#1  0x7ff0bf8ed02d
#2  0x7ff0be99a7df
#3  0x51f656
#4  0x44540c
#5  0x445f58
#6  0x556f77
#7  0x52634d
#8  0x7ff0bf3b1dd5
#9  0x7ff0bed2f5c9
#10  0x7ff0bea690ec
#11  0xffffffffffffffff
Segmentation fault (core dumped)

What could be wrong?

With regards,
Shawn

在 2016年11月8日星期二 UTC+8上午3:39:42,Paul Romano写道:
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users...@googlegroups.com.
Message has been deleted

Paul Romano

unread,
Dec 5, 2016, 8:41:07 AM12/5/16
to Shawn, OpenMC Users Group
Hi Shawn,

Can you try compiling with debug flags turned on (cmake -Ddebug=on ...) and re-running? This should give you a traceback when it segfaults so we can at least determine where the problem is stemming from.

Thanks,
Paul

To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users+unsubscribe@googlegroups.com.

Shawn

unread,
Dec 7, 2016, 10:30:24 PM12/7/16
to OpenMC Users Group, hongs...@gmail.com
Hi Paul,
 
    Thank you for your response. I've tried as you said. While compiling OpenMC, there were some warnings like:

[ 49%] Building Fortran object CMakeFiles/openmc.dir/src/endf_header.F90.o

/home/shong/openmc-0.8.0-/src/endf_header.F90:66:43:

              pure function constant1d_evaluate(this, x) result(y)                                        1

              Warning: Unused dummy argument ‘x’ at (1) [-Wunused-dummy-argument]
   I don't know whether it matters and I attached these to the zip file.
   After compiling and running OpenMC, it reported:     

                    Simulating batch 1...
                    At line 222 of file /home/shong/openmc-0.8.0/src/cross_section.F90
                    Fortran runtime error: Index '8001' of dimension 1 of array 'nuc%grid_index' above upper bound of 8000

  So I changed the neutron energy of 20MeV to 10MeV in the source.h5 file, OpenMC could run but with these warnings:

             Particle XXXX underwent maximum number of events

  and finally got this fault: 

               Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

               Backtrace for this error:

               #0  0x7f5cbcd6edf7 in ???

               #1  0x7f5cbcd6e02d in ???

              #2  0x7f5cbbe1b7df in ???

              #3  0x0 in ???

              Segmentation fault (core dumped)

  I don't known how to solve this, so I put all the input files and source.h5 file in the attachment. Hope you can help me.

With regards,

Shawn



在 2016年12月5日星期一 UTC+8下午9:41:07,Paul Romano写道:
Inputfiles.zip
warnings.zip

Paul Romano

unread,
Jan 4, 2017, 8:37:10 AM1/4/17
to Shawn, OpenMC Users Group
Hi Shawn,

I don't know if you ever figured out what was going on with your model. I took a look at it and noticed a few issues:
  • Cells 2 and 3 are overlapping
  • The <nuclide> tag is misspelled for Np-237 in material 2
  • The <element> tag is misspelled for Mo in material 3.
That being said, even with those fixed I still get the error you are seeing. It looks like there may potentially be a bug in the treatment of complex cells. One way you can get around it in the meantime is to split your definition of cell 4 into three separate cells, each of which is defined only with intersections.

Another issue that I will look into getting fixed is that right now fixed source simulations do not work with a source file. Do you absolutely need to run in fixed source mode or can you use an eigenvalue calculation for what you're doing?

Best regards,
Paul

To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users+unsubscribe@googlegroups.com.

Shawn

unread,
Jan 9, 2017, 3:03:26 AM1/9/17
to OpenMC Users Group, hongs...@gmail.com
Hi Paul,
  
   Thank you for your response. I'm a postgraduate student in University of Science and Technology of China and I'm trying to apply OpenMC in our CIADS(China Initiative Accelerator Driven System) project by coupling with FLUKA. So it is necessary to run in fixed source mode. I've noted the problem I found in the simulation.f90 in another post. I'll fix these mistake and try again.
   I notice that in the "Changes since version 0.8.0", you say "OpenMC now uses an HDF5 format for cross sections rather than ACE libraries" but I'm still using ace libraries and it doesn't report any error. Besides, you say "All energies are now in eV rather than MeV“, it seems that the energies in source file and source definition are still in MeV, is this just apply to the input xml files?

Best wishes,
Shawn

在 2017年1月4日星期三 UTC+8下午9:37:10,Paul Romano写道:

Paul Romano

unread,
Jan 9, 2017, 1:14:31 PM1/9/17
to Shawn, OpenMC Users Group
If you are using ACE libraries and your version of OpenMC is still working, then it must be a version from July 2016 or earlier. The switch to HDF5 data libraries was made in late July last year. The change of energy units affects everything -- cross section data, source files, input files, output files, etc.

To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages