Skip to content

Commit

Permalink
tree PoC: add some SF uranium #1164
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Feb 22, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent be7a216 commit c6e3b10
Showing 2 changed files with 76 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/tree.c
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ nctree_inner_create(ncplane* n, const struct nctree_options* opts){
free(ret);
return NULL;
}
//fprintf(stderr, "MAXDEPTH: %u\n", maxdepth);
//fprintf(stderr, "MAXDEPTH: %u\n", ret->maxdepth);
if(prep_initial_path(ret, ret->maxdepth)){
free_tree_items(&ret->items);
free(ret);
79 changes: 75 additions & 4 deletions src/poc/tree.c
Original file line number Diff line number Diff line change
@@ -17,7 +17,27 @@ static nctree_item alphaUs[] = {
.subs = NULL,
.subcount = 0,
.curry = "²¹⁷U",
},
}, {
.subs = NULL,
.subcount = 0,
.curry = "²¹⁸U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²¹⁹U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²²¹U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²²²U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²⁴⁰U",
}
};

static nctree_item alphaU = {
@@ -40,7 +60,26 @@ static nctree_item doubleU = {
.curry = "ββ-emitting U",
};

static nctree_item betaminusUs[] = {
{
.subs = NULL,
.subcount = 0,
.curry = "²³⁹U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²⁴⁰U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²⁴²U",
}
};

static nctree_item betaminus = {
.subs = betaminusUs,
.subcount = sizeof(betaminusUs) / sizeof(*betaminusUs),
.curry = "β-emitting U",
};

static nctree_item betaplusUs[] = {
@@ -58,12 +97,44 @@ static nctree_item betaplusUs[] = {
static nctree_item betaplus = {
.subs = betaplusUs,
.subcount = sizeof(betaplusUs) / sizeof(*betaplusUs),
.curry = "β+-emitting U",
};

static nctree_item gammas = {
};

static nctree_item sfissionUs[] = {
{
.subs = NULL,
.subcount = 0,
.curry = "²³⁰U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²³²U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²³³U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²³⁴U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²³⁵U",
}, {
.subs = NULL,
.subcount = 0,
.curry = "²³⁶U",
},
};

static nctree_item sfissions = {
.subs = sfissionUs,
.subcount = sizeof(sfissionUs) / sizeof(*sfissionUs),
.curry = "spontaneously fissioning U",
};

static nctree_item radUs[] = {
@@ -77,19 +148,19 @@ static nctree_item radUs[] = {
.curry = "ββ emitters",
}, {
.subs = &betaminus,
.subcount = 0,
.subcount = 1,
.curry = "β- emitters",
}, {
.subs = &betaplus,
.subcount = 0,
.subcount = 1,
.curry = "β+ emitters",
}, {
.subs = &gammas,
.subcount = 0,
.curry = "γ emitters",
}, {
.subs = &sfissions,
.subcount = 0,
.subcount = 1,
.curry = "spontaneous fissions",
},
};

0 comments on commit c6e3b10

Please sign in to comment.