Point source at the origin

Hello Everyone,

I’m trying to simulate a point source at the origin and I was trying to run this code in the examples and this is the error I get, also to specify that it’s at the origin I should include this line: openmc.stats.Point(xyz=(0.0, 0.0, 0.0) )


Also I want to specify the material of the source as lithium to breed tritium, should I specify it like that, this is what I tried and I get this error:

Thank you so much for your help!

I have seen a similar topic and I tried the fix and I got this error:

Hi @Dalia ;

Just to try to answer about the first error “keyError : 1” it seems to be related to the tally id, you can verifiy by openning your tallies.xml file and look about ids used to identify your tally/tallies!!! or you can try [tallies.id] argument to avoir such like that error.

regards

Thank you a lot for your help! Is this what you meant? I tried it but I got this error:

Hi

I just wanted to drop this example in the chat as it contains a point source :white_check_mark: and tritium breeding tally from lithium :white_check_mark:.

All the best

Jon

This is amazing! Thank you so much I will go through it.