One source with cosine flux along Z plane

I Want to know how to make a source with different flux values - ( 6.233E12-8.340E12-9.345e12 -9.701E12 -10.39E12-10.35E12 -9.855E12 -8.614E12 -8.020E12) each flux value at certain point at Z plane .

Hi Mohamed,

This can be done using a Cartesian-independent spatial distribution, which allows you to give separate distributions for the x-, y-, and z- coordinates of source sites. I’ve put together a quick example notebook showing what it would look like to create such a source distribution using OpenMC’s Python API as well as what the resulting settings.xml file would contain. Let me know if you have any questions about it.

Best regards,
Paul