prod_mod_conc | R Documentation |
These functions calculates flux or concentration profile of a gas based on fixed production and known diffusion coefficient Ds. The basis is a step-wise calculation beginning from the bottom-most layer with incoming flux F0 and known concentration C0 at the lower end of the step.
The following input parameters must be vectors sorted from the lowest depth of the profile to the highest. Note that the assigned units are examples. However, units should be concise and match over all parameters. The functions are designed to be used in optimization and are hence as fast as possible.
prod_mod_conc(prod, height, DS, F0, C0)
prod_mod_flux(prod, height, F0)
prod |
the production assigned to this step production in
|
height |
the height of each step in m |
DS |
the diffusion coefficient DS in |
F0 |
(numeric) Incoming flux to lowest step in |
C0 |
(numeric) Concentration at the lower end of the lowest step in
|
conc
at top of each step in \mu mol/m^3
flux
at top of each step in \mu mol/m^2/s
prod_mod_flux()
: flux output only
examples prod_mod_flux(prod = c(0.01,0.02,0.65,0.5,0.4), height = c(0.5,0.2,0.1,0.03,0.02), F0=0 )
Other proflux:
prod_optim()
{
prod_mod_conc(prod = c(0.01,0.02,0.65,0.5,0.4),
height = c(0.5,0.2,0.1,0.03,0.02),
DS = c(rep(2.5E-7,3),rep(1E-6,2)),
F0=0,
C0=48000E-6)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.