====== Grt-Crd: Fonarev, 1994 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_crd_fonarev_1994 <- function(Grt, Crd, P, ...){
Grt <- tpf.recalc_minaral("GRT",Grt);
Crd <- tpf.recalc_minaral("CRD",Crd);
X1 <- (Crd$Fe_p2_pfu + Crd$Fe_p3_pfu) / Crd$Mg_pfu;
Y1 <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu;
X2 <- (Crd$Fe_p2_pfu + Crd$Fe_p3_pfu) / Crd$Mg_pfu;
Y2 <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu;
X3 <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
Z3 <- Crd$Mg_pfu / (Crd$Mg_pfu + Crd$Mn_pfu + Crd$Fe_p2_pfu + Crd$Fe_p3_pfu);
X4 <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu;
Y4 <- (Crd$Fe_p2_pfu + Crd$Fe_p3_pfu) / Crd$Mg_pfu;
T1 <- (2725 + P * 1000 * 0.0155) / (0.896 + log(Y1 / X1)) - 273;
T2 <- (6150 + P * 1000 * 0.0303) / (2.69 - 1.98721 * log(X2 / Y2)) - 273;
K <- (Z3 / (1 - Z3)) * ((1 - X3) / X3);
T3 <- (3126 + 0.0178 * (P * 1000 - 6000)) / (log(K) + 1.287) - 273;
T4 <- 2879 / (log(X4 / Y4) + 1.0) - 273;
T <- (T1 + T2 + T3 + T4) / 4;
return(data.frame(Name=paste0(Crd$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_crd_fonarev_1994.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Crd");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_crd_fonarev_1994.test <- function(){
#
#}
{{tag> tpf Crd Grt }}