This sensor from TPF collection
Article | |
---|---|
Collibration | |
Presition | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.f.opx_fe_qtz_fonarev_1987 <- function(Opx, Fe, Qtz, Temp, P, ...){ T <- Temp; Opx <- tpf.recalc_minaral("OPX",Opx); X <- (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); Y <- - 32.544 + 0.038462 * (T + 273.15); if (P>Y) { TT <- 1000 / (T + 273.15); FO2 <- 8.9367 + 2 * log(X) - 1.9014 * ((1 - X)^2 + 15.9675) * TT + 2.2078 * ((1 - X)^2 + 0.0223) * TT^2 - 15.1 * P * TT / 1000; LGFO2 <- FO2; } if (P<Y) { TT <- 1000 / (T + 273.15); LgFO2 <- 9.1519 + 2 * log(X) - 1.9014 * ((1 - X)^2 + 16.0632) * TT + 2.2078 * ((1 - X)^2 + 0.0223) * TT^2 - 20.7 * P * TT / 1000; } return(data.frame(Name=paste0(Opx$Name),Temp=Temp,P=P,LGFO2_calc=LGFO2)); } sensors.f.opx_fe_qtz_fonarev_1987.args <- function(){ ars <- list(); ars$minerals <- c("Opx", "Fe", "Qtz"); ars$ranges <- c("Temp", "P"); return(ars); } #sensors.f.opx_fe_qtz_fonarev_1987.test <- function(){ # #}