====== Grt-Cpx: Schliestedt, 1986* ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_cpx_schliestedt_1986* <- function(Grt, Cpx, P, ...){
Grt <- tpf.recalc_minaral("GRT2",Grt);
Cpx <- tpf.recalc_minaral("CPX1",Cpx);
X <- 8 - 2 * Grt$Si_pfu - Grt$Al_c4_pfu - Grt$Al_c6_pfu - 2 * Grt$Ti_pfu;
Y <- Grt$Fe_p2_pfu + Grt$Fe_p3_pfu;
Z <- Grt$Ca_pfu;
F <- Grt$Mg_pfu + Grt$Mn_pfu + Grt$Ca_pfu;
E <- Grt$Mg_pfu;
A <- Cpx$Fe_p2_pfu / Cpx$Mg_pfu;
B <- Y - X;
C <- Z / (B + F);
D <- B / E;
K <- D / A;
T <- ( - 5708 * C^2 + 6555 * C + 1869 + 10.86 * P) / (log(K) + 1.3963) - 273;
return(data.frame(Name=paste0(Cpx$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_cpx_schliestedt_1986*.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Cpx");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_cpx_schliestedt_1986*.test <- function(){
#
#}
{{tag> tpf Cpx Grt }}