====== Grt-Cpx: Sengupta, 1989 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_cpx_sengupta_1989 <- function(Grt, Cpx, P, ...){
Grt <- tpf.recalc_minaral("GRT2",Grt);
Cpx <- tpf.recalc_minaral("CPX1",Cpx);
X <- Grt$Fe_p2_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
Y <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
Z <- Grt$Ca_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
M <- Grt$Mn_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
G <- Grt$Fe_p2_pfu / Grt$Mg_pfu;
C <- Cpx$Fe_p2_pfu / Cpx$Mg_pfu;
if (X>0.650) {
warning(" CANNOT BE USED FOR FE2/(FE2+MG+CA+MN) IN GRT >0.65");
}
if (X<0.650) {
LK <- log(G / C);
LFG <- Z^2 * (1.52 - 5.17 * X) + Y^2 * (0.1 + 2.26 * X) + Z * Y * (3.01 - 6.67 * X + 1.5 * Z - 1.5 * Y) + Z * M * (0.98 - 4.08 * X) + Y * M * (0.02 + 3.71 * X);
LMG <- X^2 * (1.23 - 2.26 * Y) + Z^2 * ( - 0.26 + 3 * Y) + X * Z * (3.53 - 4.85 * Y + 2.58 * X - 2.58 * Z) + X * M * (1.3 - 2.75 * Y) + M^2 * 0.78 + Z * M * (1.27 + 3 * Y);
T <- (3030 + 10.86 * P) / (LK + 1.9034 + LFG - LMG) - 273;
warning(" CANNOT BE USED FOR ECLOGITE");
}
return(data.frame(Name=paste0(Cpx$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_cpx_sengupta_1989.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Cpx");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_cpx_sengupta_1989.test <- function(){
#
#}
{{tag> tpf Cpx Grt }}