====== Grt-Cpx: Ganguly, 1979 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.grt_cpx_ganguly_1979 <- function(Grt, Cpx, P, ...){
Grt <- tpf.recalc_minaral("GRT",Grt);
Cpx <- tpf.recalc_minaral("CPX",Cpx);
X <- Grt$Fe_p2_pfu / Grt$Mg_pfu;
M <- Grt$Ca_pfu / (Grt$Fe_p2_pfu + Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu);
N <- Grt$Mn_pfu / (Grt$Fe_p2_pfu + Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu);
F <- Cpx$Fe_p2_pfu / Cpx$Mg_pfu;
R <- Cpx$Na2O_wtp;
if (R<3) {
TT <- ((4100 + 11.07 * P + 1586 * M + 1308 * N) / (log(X / F) + 2.4)) - 273.15;
TTT <- ((4801 + 11.07 * P + 1586 * M + 1308 * N) / (log(X / F) + 2.93)) - 273.15;
if (TT>1060) {
T <- TT;
}
if (TT<1060) {
T <- TTT;
}
}
if (R>3) {
warning(" IS NOT TO BE USED FOR NA2O IN CPX >3 W.");
}
return(data.frame(Name=paste0(Cpx$Name,"-", Grt$Name),P=P,T_calc=T));
}
sensors.t.grt_cpx_ganguly_1979.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Cpx");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.grt_cpx_ganguly_1979.test <- function(){
#
#}
{{tag> tpf Cpx Grt }}