This sensor from TPF collection
Article | |
---|---|
Collibration | |
Precision | |
Ranges | |
Renew sensors |
source("utilities_tpf.r"); sensors.t.cpx_opx_nickel_brey_kogarko_1985 <- function(Cpx, Opx, P, ...){ Opx <- tpf.recalc_minaral("OPX",Opx); Cpx <- tpf.recalc_minaral("CPX",Cpx); X <- (Cpx$Al_c4_pfu + Cpx$Al_c6_pfu) / 2; Y <- Cpx$Ca_pfu; Z <- (Opx$Al_c4_pfu + Opx$Al_c6_pfu) / 2; F <- Opx$Ca_pfu; T <- 1617 + 287.9 * log(((1 - X) * (1 - Y)) / ((1 - Z) * (1 - F))) + 2.933 * P; warning(" ONLY FOR SISTEM: CA-AL-MG-SI-O"); return(data.frame(Name=paste0(Cpx$Name,"-", Opx$Name),P=P,T_calc=T)); } sensors.t.cpx_opx_nickel_brey_kogarko_1985.args <- function(){ ars <- list(); ars$minerals <- c("Cpx", "Opx"); ars$ranges <- c("P"); return(ars); } #sensors.t.cpx_opx_nickel_brey_kogarko_1985.test <- function(){ # #}