<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.iac.isu.edu/index.php?action=history&amp;feed=atom&amp;title=Vstar_Matlab_ActTime</id>
	<title>Vstar Matlab ActTime - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.iac.isu.edu/index.php?action=history&amp;feed=atom&amp;title=Vstar_Matlab_ActTime"/>
	<link rel="alternate" type="text/html" href="https://wiki.iac.isu.edu/index.php?title=Vstar_Matlab_ActTime&amp;action=history"/>
	<updated>2026-05-08T16:29:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.iac.isu.edu/index.php?title=Vstar_Matlab_ActTime&amp;diff=91886&amp;oldid=prev</id>
		<title>Foretony: Created page with &quot;This example was done for Bi-206.  %%%%%%%%%%%%%%%%%% clear all;  load bics.m % loads cross-section file: first column is energy, second column is c-s in b load flpb.m %loads pho…&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.iac.isu.edu/index.php?title=Vstar_Matlab_ActTime&amp;diff=91886&amp;oldid=prev"/>
		<updated>2014-04-03T19:52:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This example was done for Bi-206.  %%%%%%%%%%%%%%%%%% clear all;  load bics.m % loads cross-section file: first column is energy, second column is c-s in b load flpb.m %loads pho…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This example was done for Bi-206.&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%&lt;br /&gt;
clear all;&lt;br /&gt;
&lt;br /&gt;
load bics.m % loads cross-section file: first column is energy, second column is c-s in b&lt;br /&gt;
load flpb.m %loads photon flux file: first column is energy, second column is flux in photons/cm^2 per source electron&lt;br /&gt;
energy=bics(:, 1);&lt;br /&gt;
flux=flpb(:, 2);&lt;br /&gt;
cs=bics(:,2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%% Parameters (target parameters) (need to be entered every time program is compiled)&lt;br /&gt;
&lt;br /&gt;
% Below enter target mass in grams;&lt;br /&gt;
M = 1;&lt;br /&gt;
% Below enter target average atomic mass in amu;&lt;br /&gt;
m = 208;&lt;br /&gt;
% Below enter natural abundance of an isotope of interest;&lt;br /&gt;
abundance = 0.55;&lt;br /&gt;
% Below enter a half-life of the isotope of interest in hours:&lt;br /&gt;
halflife = 6.24*24;&lt;br /&gt;
% %If you want to know activity after certain time of irradiation, then below enter irradiation time in hours:&lt;br /&gt;
T = 1;&lt;br /&gt;
% %If you want to see activity as a function of time, then below enter irradiation time in hours:&lt;br /&gt;
t = [0:0.1:100];&lt;br /&gt;
%% Activity calculation is conducted below (don't edit)&lt;br /&gt;
&lt;br /&gt;
% Average number of electrons per second is calculated and stored in variable N (for 1 kW of&lt;br /&gt;
% beam power and 40 MeV electron beam):&lt;br /&gt;
N = (1 * 10^(-3)) / (40 * 1.6 * 10^(-19));&lt;br /&gt;
&lt;br /&gt;
% Photon flux - cross section overlap integral I (in s^-1) is calculated and stored in variable I:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I=0;&lt;br /&gt;
for i=1:length(cs),&lt;br /&gt;
I=I+flux(i).*cs(i);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
I = I*N * 10^(-27);&lt;br /&gt;
% Total number of the isotope of interest in the target is calculated and stored in variable Tot;&lt;br /&gt;
Tot = M * abundance / (m * 1.6605 * 10^(-24) );&lt;br /&gt;
&lt;br /&gt;
% Production rate (in s^-1) is calculated and stored in variable R:&lt;br /&gt;
R = Tot * I;&lt;br /&gt;
&lt;br /&gt;
% Activity obtained in uCi:&lt;br /&gt;
A0 = ( R * (1 - exp(-log(2)* T / halflife))) / (37000); %converted from Bq into microCi&lt;br /&gt;
&lt;br /&gt;
sprintf('Activity obtained is %g uCi/(%g g kW %g hours)', A0, T)&lt;br /&gt;
&lt;br /&gt;
A = ( R * (1 - exp(-log(2)* t / halflife))) / (37000); %converted from Bq into microCi&lt;br /&gt;
plot(t,A)&lt;/div&gt;</summary>
		<author><name>Foretony</name></author>
	</entry>
</feed>