====== Grt-Ep: Perchuk, Aranovich, 1979 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_ep_perchuk_aranovich_1979 <- function(Grt, Ep, P, ...){
Ep <- tpf.recalc_minaral("EP",Ep);
Grt <- tpf.recalc_minaral("GRT1",Grt);
X <- Grt$Fe_p3_pfu / (Grt$Fe_p3_pfu + Grt$Al_pfu);
Y <- Ep$Fe_p3_pfu / (Ep$Fe_p3_pfu + Ep$Al_pfu);
A <- 37.3 * Y^3 - 20.047 * Y^2 - 22.8998 * Y^4;
B <- 16966.5 * Y^2 - 30188.4 * Y^3 + 18266.7 * Y^4 + 0.193606 * P * Y^2;
R <- 0.193606 - 0.387213 * Y + 0.193606 * Y^2;
C <- 7961.4 + R * P - 33933 * Y + 62248.6 * Y^2 - 54543.9 * Y^3 + 18266.7 * Y^4;
D <- 40.0942 * Y - 75.9957 * Y^2 + 67.832 * Y^3 - 22.9 * Y^4 - 9.031;
T <- (1365.17 - 279 * P + C - B) / (1.987 * log(X * (1 - Y) / (1 - X) / Y) - 0.2143 - D + A) - 273;
return(data.frame(Name=paste0(Ep$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_ep_perchuk_aranovich_1979.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Ep");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_ep_perchuk_aranovich_1979.test <- function(){
#
#}
{{tag> tpf Ep Grt }}