TkN 2.1
Toolkit for Nuclei

Explore Fission Yields

This example macro fills the nuclear chart with fission yields.

Start tkn-root, compile and execute this macro :

tkn-root
_____ _ _ | Documentation: https://tkn.in2p3.fr/
(_ _) | \ | | | Source: https://gitlab.in2p3.fr/tkn/tkn-lib
| |_ _| \| | |
| | |/ / | | Version 2.1
| | <| |\ | |
|_|_|\_\_| \_| | Database: TkN_ensdf_250201_xundl_240130_v2.1.db
tkn [0]
tkn [0] .L draw_FY.C+
tkn [1] draw_FY252Cf()
tkn [2] draw_FY239Pu()
tkn [3] draw_cumulative_238U()

It produces the following plot for 252Cf:

and the following plot for 239Pu:

and the following plot for 238U:

Source code :

#include "Rtypes.h"
#include "Riostream.h"
#include "tkmanager.h"
#include "tknuclear_chart.h"
using namespace tkn;
void draw_FY239Pu(){
auto* nn = new tknuclear_chart("^{239}Pu fission yield (in %)",tknuclear_chart::kAll,1e-6,true);
for(const auto &nuc : dtm.get_nuclei()) {
double yy = nuc->get_fission_yield("239Pu",false);
if(yy>0) nn->set_value(nuc->get_z(), nuc->get_n(), yy*50);
}
nn->draw();
nn->save_as("draw_FY239Pu.png");
}
void draw_FY252Cf(){
auto* nn = new tknuclear_chart("^{252}Cf fission yield (in %)",tknuclear_chart::kAll,1e-6,true);
for(const auto &nuc : dtm.get_nuclei()) {
double yy = nuc->get_fission_yield("252Cf",false);
if(yy>0) nn->set_value(nuc->get_z(), nuc->get_n(), yy*50);
}
nn->draw();
nn->save_as("draw_FY252Cf.png");
}
void draw_cumulative_238U(){
auto* nn = new tknuclear_chart("^{238}U cumulative fission yield (in %)",tknuclear_chart::kAll,1e-6,true);
for(const auto &nuc : dtm.get_nuclei()) {
double yy = nuc->get_fission_yield("238U",true);
if(yy>0) nn->set_value(nuc->get_z(), nuc->get_n(), yy*50);
}
nn->draw();
nn->save_as("draw_cFY238U.png");
}
Manages the database loading and provides access to the physics properties.
Definition: tkmanager.h:55
vector< shared_ptr< tknucleus > > get_nuclei(std::function< bool(shared_ptr< tknucleus >)>const &_selection)
return a vector containing all the known nuclei filtered by the lambda function
Definition: tkmanager.cpp:367
nuclear chart plot with ROOT
Definition: tklog.cpp:39