====== Opx-Mag-Ol: Fonarev, 1987 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Presition | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.f.opx_mag_ol_fonarev_1987 <- function(Opx, Mag, Ol, Temp, P, ...){
T <- Temp;
Opx <- tpf.recalc_minaral("OPX",Opx);
Ol <- tpf.recalc_minaral("OL",Ol);
X <- (Ol$Fe_p2_pfu + Ol$Fe_p3_pfu) / (Ol$Fe_p2_pfu + Ol$Fe_p3_pfu + Ol$Mg_pfu + Ol$Ca_pfu + Ol$Mn_pfu + Ol$Al_c6_pfu);
Y <- (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu) / (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu + Opx$Mg_pfu + Opx$Ca_pfu + Opx$Mn_pfu + Opx$Al_c6_pfu);
TT <- 1000 / (T + 273.15);
LgFO2 <- 10.3358 - 6 * log(X^2 / Y) + 1.98 * ((1 - X)^2 - 2.8808 * (1 - Y)^2 - 13.3852) * TT - 6.3597 * ((1 - X)^2 - 1.0414 * (1 - Y)^2 - 0.0233) * TT^2 + 63.1 * P * TT / 1000;
return(data.frame(Name=paste0(Ol$Name,"-", Opx$Name),Temp=Temp,P=P,LGFO2_calc=LGFO2));
}
sensors.f.opx_mag_ol_fonarev_1987.args <- function(){
ars <- list();
ars$minerals <- c("Opx", "Mag", "Ol");
ars$ranges <- c("Temp", "P");
return(ars);
}
#sensors.f.opx_mag_ol_fonarev_1987.test <- function(){
#
#}
{{tag> tpf Ol Opx }}