out = al_be_E_forward(x,sample,consts,target,dflag)
This is the objective function used by get_al_be_erosion
to solve for the erosion rate.
The argument x
is the erosion rate.
The argument sample
is a structure containing abbreviated information about the sample. The fields are as follows:
sample.thickgcm2 | Sample thickness (g ![]() ![]() |
double |
sample.pressure | Atmospheric pressure at sample location (hPa) | double |
The argument consts
contains nuclide-specific constants. The fields are as follows:
consts.l | decay constant | yr![]() |
consts.Lsp | effective attenuation length for production by spallation | g ![]() ![]() |
consts.Psp0 | surface production rate by spallation at sample site | g ![]() ![]() |
consts.Natoms | number density of target atoms in quartz | atoms ![]() ![]() |
consts.k_neg | summary yield for production by negative muon capture in quartz | atoms ![]() ![]() ![]() |
consts.sigma190 | measured cross-section at 190 GeV for production by fast muon reactions | cm![]() |
The argument target
is the measured nuclide concentration (atoms g
), that is, the target that the objective function is trying to match.
The argument dflag
is a string variable telling the function what to return. If dflag
= `no,' the output is just the objective function value. If dflag
= `yes,' the output is a structure containing diagnostic information, as follows:
out.ver | Version number of this function | string |
out.N_mu | Nuclide concentration in sample attributable to production by muons at the given erosion rate | atoms ![]() ![]() |
out.N_sp | Nuclide concentration in sample attributable to production by spallation at the given erosion rate | atoms ![]() ![]() |
out.P_fast | Thickness-integrated nuclide production rate by fast muon reactions | atoms ![]() ![]() ![]() |
out.P_neg | Thickness-integrated nuclide production rate by negative muon capture | atoms ![]() ![]() ![]() |
out.P_sp | Thickness-integrated nuclide production rate by spallation | atoms ![]() ![]() ![]() |
This function calculates the following:
![]() |
(16) |
where is the erosion rate (the input argument
x
, here in g cm
yr
),
is the measured concentration of nuclide
(the input argument
target
), and
,
, and
are the production rates of nuclide
due to spallation, fast muon interactions, and negative muon capture, averaged over the sample thickness, as functions of depth.
The first term of this equation, that is, the nuclide concentration in the sample attributable to production by spallation, can be integrated analytically:
![]() |
(17) |
where
is the surface production rate of nuclide
due to spallation (atoms
g
yr
),
is the effective attenuation length for production by spallation (g
cm
),
is the sample thickness (g
cm
), and
is the decay constant for nuclide
(yr
).
The second term must be calculated numerically. This function uses the MATLAB numerical integration algorithm quad
to do the integral:
![]() |
(18) |
where
is calculated by the function
P_mu_total.m
. The upper limit of integration is either
(nuclide production is insignificant below
g
cm
) or five half-lives of the relevant nuclide (a negliible number of atoms produced before this time will still be present), whichever is smaller. The integration tolerance is set at
.