====== Ol-Opx-Cpx: Kohler, Brey, 1989 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.p.ol_opx_cpx_kohler_brey_1989 <- function(Ol, Opx, Cpx, Temp, ...){
T <- Temp;
Ol <- tpf.recalc_minaral("OL",Ol);
X <- Ol$Ca_pfu;
Y <- Ol$Mg_pfu / (Ol$Mg_pfu + Ol$Fe_pfu);
if (Y>0.879999) {
if (T>1099.9999) {
P <- ( - (T + 273) * log(X) - 9495 + 1.5 * (T + 273)) / 50.7;
}
if (T<1099.9999) {
P <- ( - (T + 273) * log(X) - 5754 - 1.3 * (T + 273)) / 46.9;
}
}
if (Y<0.879999) {
warning(" CANNOT BE USED FOR MG/(MG+FE) IN OL <0.88, ACCURACY +/-1.7 KBAR");
}
return(data.frame(Name=paste0(Ol$Name),Temp=Temp,P_calc=P));
}
sensors.p.ol_opx_cpx_kohler_brey_1989.args <- function(){
ars <- list();
ars$minerals <- c("Ol", "Opx", "Cpx");
ars$ranges <- c("Temp");
return(ars);
}
#sensors.p.ol_opx_cpx_kohler_brey_1989.test <- function(){
#
#}
{{tag> tpf Ol }}