====== Grt-Opx: Carswell, Harley, 1990 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_opx_carswell_harley_1990 <- function(Grt, Opx, P, ...){
Opx <- tpf.recalc_minaral("OPX",Opx);
Grt <- tpf.recalc_minaral("GRT",Grt);
X <- (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu) / Opx$Mg_pfu;
Y <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu;
C <- Grt$Ca_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Ca_pfu + Grt$Mg_pfu + Grt$Mn_pfu);
M <- Grt$Mn_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Ca_pfu + Grt$Mg_pfu + Grt$Mn_pfu);
T <- (1920 + 11.9 * P + 700 * (C + M)) / (log(Y / X) + 0.975) - 273.15;
warning(" ONLY FOR GARNET PERIDOTITES AND ECLOGITES");
return(data.frame(Name=paste0(Grt$Name,"-", Opx$Name),P=P,T_calc=T));
}
sensors.t.grt_opx_carswell_harley_1990.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Opx");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_opx_carswell_harley_1990.test <- function(){
#
#}
{{tag> tpf Grt Opx }}