====== Grt-Opx-Pl-Qtz-Au: Bhattacharya, 1991 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.p.grt_opx_pl_qtz_au_bhattacharya_1991 <- function(Grt, Opx, Pl, Qtz, Au, Temp, ...){
T <- Temp;
Opx <- tpf.recalc_minaral("OPX",Opx);
Pl <- tpf.recalc_minaral("PL",Pl);
Grt <- tpf.recalc_minaral("GRT",Grt);
MGR <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
CGR <- Grt$Ca_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
FGR <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
MNG <- Grt$Mn_pfu / (Grt$Mg_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mn_pfu + Grt$Ca_pfu);
FOP <- (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu) / (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu + Opx$Mg_pfu);
MOP <- Opx$Mg_pfu / (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu + Opx$Mg_pfu);
CPL <- Pl$Ca_pfu / (Pl$Ca_pfu + Pl$Na_pfu + Pl$K_pfu);
AEN <- MOP * exp(0.477 * (1 - MOP)^2);
AFS <- (1 - MOP) * exp(0.477 * MOP^2);
APY <- MGR * exp(0.906 * CGR^2 + FGR * (0.746 - 1.22 * MGR) + CGR * FGR * (1.346 - 0.61 * MGR));
AAL <- FGR * exp((0.136 + 1.22 * FGR) * MGR^2 + CGR * MGR * ( - 0.465 + 0.61 * FGR));
AGR <- CGR * exp(0.906 * MGR^2 + FGR * MGR * (0.465 - 0.61 * (FGR - MGR)));
APL <- (1 / 4) * CPL * (1 + CPL)^2 * exp((1 - CPL)^2 * (1.009 + 4.62 * CPL));
KK <- APY^2 * AGR / APL / AEN^2;
P <- (3944 + 13.07 * (T + 273) + 3.5038 * (T + 273) * log(KK)) / 1000;
warning(" THERE IS FORMULATIONS FOR THE MG- MEMBER EQUILIBRIA");
return(data.frame(Name=paste0(Pl$Name,"-", Grt$Name,"-", Opx$Name),Temp=Temp,P_calc=P));
}
sensors.p.grt_opx_pl_qtz_au_bhattacharya_1991.args <- function(){
ars <- list();
ars$minerals <- c("Grt", "Opx", "Pl", "Qtz", "Au");
ars$ranges <- c("Temp");
return(ars);
}
#sensors.p.grt_opx_pl_qtz_au_bhattacharya_1991.test <- function(){
#
#}
{{tag> tpf Pl Grt Opx }}