====== Grt-Cpx: Ryburn, Raheim, Green, 1976 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_cpx_ryburn_raheim_green_1976 <- function(Grt, Cpx, P, ...){
Grt <- tpf.recalc_minaral("GRT",Grt);
Cpx <- tpf.recalc_minaral("CPX",Cpx);
MC <- Cpx$Mg_pfu;
KC <- Cpx$Si_pfu + Cpx$Mn_pfu + Cpx$Ti_pfu + Cpx$Al_c4_pfu + Cpx$Al_c6_pfu + Cpx$Cr_pfu + Cpx$Na_pfu + Cpx$K_pfu + Cpx$Mg_pfu + Cpx$Fe_p2_pfu + Cpx$Fe_p3_pfu + Cpx$Ca_pfu;
FC <- Cpx$Fe_p2_pfu + Cpx$Fe_p3_pfu;
SC <- Cpx$Si_pfu + Cpx$Ti_pfu;
AC <- Cpx$Al_c4_pfu + Cpx$Al_c6_pfu + Cpx$Cr_pfu - Cpx$Na_pfu - Cpx$K_pfu;
AGR <- Grt$Al_c6_pfu + Grt$Cr_pfu + Grt$Al_c4_pfu;
MGR <- Grt$Mg_pfu;
KGR <- Grt$Si_pfu + Grt$Ti_pfu + Grt$Mn_pfu + Grt$Al_c4_pfu + Grt$Al_c6_pfu + Grt$Cr_pfu + Grt$Na_pfu + Grt$K_pfu + Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Ca_pfu;
FGR <- Grt$Fe_p2_pfu + Grt$Fe_p3_pfu;
SGR <- Grt$Si_pfu + Grt$Ti_pfu;
KP <- 4 / KC;
FEIII <- 4 - 2 * SC * KP - AC * KP;
KPG <- 8 / KGR;
FEIIIG <- 8 - 2 * SGR * KPG - AGR * KPG;
if (FEIII<0) {
FEIII <- 0;
FEII <- FC * KP - FEIII;
X <- FEII / MC;
FEIIIG <- 0;
FEIIG <- FGR * KPG - FEIIIG;
Y <- FEIIG / MGR;
T <- (3686 + 28.35 * P) / (log(Y / X) + 2.33) - 273;
}
if (FEIII>0) {
FEII <- FC * KP - FEIII;
X <- FEII / MC;
FEIIG <- FGR * KPG - FEIIIG;
Y <- FEIIG / MGR;
T <- (3686 + 28.35 * P) / (log(Y / X) + 2.33) - 273;
}
return(data.frame(Name=paste0(Cpx$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_cpx_ryburn_raheim_green_1976.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Cpx");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_cpx_ryburn_raheim_green_1976.test <- function(){
#
#}
{{tag> tpf Cpx Grt }}