This sensor from TPF collection
Article | |
---|---|
Collibration | |
Presition | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.f.opx_fe_ol_fonarev_1987 <- function(Opx, Fe, 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 <- 8.5414 + 2 * log(X^2 / Y) - 0.66 * ((1 - X)^2 - 2.8808 * (1 - Y)^2 + 45.7255) * TT + 2.1199 * ((1 - X)^2 - 1.0414 * (1 - Y)^2 - 0.0233) * TT^2 + 14.288 * P * TT / 1000; return(data.frame(Name=paste0(Ol$Name,"-", Opx$Name),Temp=Temp,P=P,LGFO2_calc=LGFO2)); } sensors.f.opx_fe_ol_fonarev_1987.args <- function(){ ars <- list(); ars$minerals <- c("Opx", "Fe", "Ol"); ars$ranges <- c("Temp", "P"); return(ars); } #sensors.f.opx_fe_ol_fonarev_1987.test <- function(){ # #}