====== Grt-Opx: Fonarev, 1994 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_opx_fonarev_1994 <- function(Grt, Opx, P, ...){
Opx <- tpf.recalc_minaral("OPX",Opx);
Grt <- tpf.recalc_minaral("GRT",Grt);
X <- Opx$Mg_pfu / (Opx$Mg_pfu + Opx$Fe_p2_pfu + Opx$Fe_p3_pfu + (Opx$Al_c4_pfu + Opx$Al_c6_pfu) / 2);
Y <- (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu) / (Opx$Mg_pfu + Opx$Fe_p2_pfu + Opx$Fe_p3_pfu + (Opx$Al_c4_pfu + Opx$Al_c6_pfu) / 2);
Z <- (Opx$Al_c4_pfu + Opx$Al_c6_pfu) / 2 / (Opx$Mg_pfu + Opx$Fe_p2_pfu + Opx$Fe_p3_pfu + (Opx$Al_c4_pfu + Opx$Al_c6_pfu) / 2);
B <- (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu) / Opx$Mg_pfu;
A <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu;
C <- Grt$Ca_pfu;
MF <- X - Y;
TT <- (4066 + 347 * MF - 17484 * Z + 0.02342 * P * 1000 + 1923 * C) / (1.9872 * log(A / B) + 2.143 + 0.0929 * MF - 12.8994 * Z + 1.282 * C) - 273.15;
T <- TT * 1.044 - 7;
return(data.frame(Name=paste0(Grt$Name,"-", Opx$Name),P=P,T_calc=T));
}
sensors.t.grt_opx_fonarev_1994.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Opx");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_opx_fonarev_1994.test <- function(){
#
#}
{{tag> tpf Grt Opx }}