# The difference flux between openMC and MCNP(MCX)

**URL:** <https://openmc.discourse.group/t/the-difference-flux-between-openmc-and-mcnp-mcx/4879>\
**Category:** Validation and Verification\
**Created:** [October 11, 2024, 5:34pm UTC](https://openmc.discourse.group/t/the-difference-flux-between-openmc-and-mcnp-mcx/4879 "2024-10-11T17:34:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tRNA](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@tRNA](https://openmc.discourse.group/u/tRNA)\
**Post date:** [October 11, 2024, 5:34pm UTC](https://openmc.discourse.group/t/the-difference-flux-between-openmc-and-mcnp-mcx/4879/1 "2024-10-11T17:34:07Z")

</div>

hi,nowadays I try to use openMC to calculate the flux about BSA in BNCT  
openMC flux=20.3288  
MCNP flux=44.667  
MCX(a MC program developped by XJTU) flux=45.13  
I dont know how to solve it

---

<div class="post-metadata">

**Author:** ![tRNA](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@tRNA](https://openmc.discourse.group/u/tRNA)\
**Post date:** [October 11, 2024, 5:44pm UTC](https://openmc.discourse.group/t/the-difference-flux-between-openmc-and-mcnp-mcx/4879/2 "2024-10-11T17:44:45Z")

</div>

I cant upload files，I really hope anyone can connect me by email：rbj810124130@gmail.com

---

<div class="post-metadata">

**Author:** ![tRNA](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@tRNA](https://openmc.discourse.group/u/tRNA)\
**Post date:** [October 11, 2024, 7:22pm UTC](https://openmc.discourse.group/t/the-difference-flux-between-openmc-and-mcnp-mcx/4879/3 "2024-10-11T19:22:41Z")

</div>

after some test, a strange result appear：  
if I change the energy in openMC from 1 to 1000，flux=45.5616

I try this energy with other different source position，and get the same conclusion: flux with 1000 times more energy in openMC can match the flux in mcnp

my code about source：  
`source = openmc.Source() source.space = openmc.stats.Point((0,0,0)) source.angle = openmc.stats.Isotropic() source.energy = openmc.stats.Discrete([1000.0], [1.0]) source.particle = 'neutron' `
