SAnsell / CombLayer

MCNP(X) project builder using C++
GNU General Public License v3.0
13 stars 13 forks source link

mixtures #25

Open kbat opened 9 years ago

kbat commented 9 years ago

Hi Stuart,

I still do not understand how to create mixtures, even after studying the testDBMaterial file ;) Can you show an example how to add, say, an ortho/para mixture in the material database?

Konstantin

SAnsell commented 9 years ago

CombLayer has one generic method for doing mixtures and a few specific methods. First let us take a simple example :

 ./fullBuild -r -I chipIR AA

Now there is the variable chipGuideConcMat which sets the concrete material. So the following can be written:

 ./fullBuild -I chipIR -v chipGuideConcMat Aluminium%H2O%40.0 -r AA

This changes the concreate mixture into an aluminium water componsite with 40% H2O and 60% of the Aluminium materials (by atomic fraction).

The same syntax can be used for both variables in xml or directly in the code.

There are an additional two other versions. One is specifically for Uranium burnup approximation. The material UBurn%X creates an uranium burnup cell which is interpolated between previously calculated burnup fractions

The second is the material ParaOrtho%X which create a para/ortho H2 mixture based on using hydrogen zaid 1004 and the coped ortho/para thermal tables parah.99t and orthh.99t. If that does suit your needs for ortho/para then createOrthoParaMix should be edited directly [sorry].

Example:

    ./fullBuild -I chipIR -v chipGuideConcMat ParaOrtho%40.0 -r AA

Which produces 60% para/40% ortho hydrogen for the chipIR guide wall [Not exactly very realistic].