Skip to content

individual scattering XS arrays #136

Answered by tkittel
vedantkm asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for taking so long to answer, the question arrived during my vacation and I missed it! Anyway, the answer is to use the comp cfg-string parameter to select out the component in question (read more about it on https://github.com/mctools/ncrystal/wiki/CfgRefDoc). Here is a complete script showing what I mean. It also shows how to use the detect_scattering_components function from the NCrystal.misc module to more generically detect the available components:

#!/usr/bin/env python3

import NCrystal as NC
import numpy as np

#Energy array (default NCrystal unit is eV):
energies = np.geomspace( 1e-7, 10.0, 10000 )

#cfg-string to be investigated:
mycfg = 'Al_sg225.ncmat;temp=200K'

#######…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tkittel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants