====== Hbl: Blundy, Holland, 1990 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.p.hbl_blundy_holland_1990 <- function(Hbl, Temp, ...){
T <- Temp;
Hbl <- tpf.recalc_minaral("HBL",Hbl);
X <- 13 / (Hbl$Si_pfu + Hbl$Al_c4_pfu + Hbl$Al_c6_pfu + Hbl$Ti_pfu + Hbl$Cr_pfu + Hbl$Fe_p2_pfu + Hbl$Fe_p3_pfu + Hbl$Mg_pfu + Hbl$Mn_pfu);
XX <- 15 / (Hbl$Si_pfu + Hbl$Al_c4_pfu + Hbl$Al_c6_pfu + Hbl$Ti_pfu + Hbl$Cr_pfu + Hbl$Fe_p2_pfu + Hbl$Fe_p3_pfu + Hbl$Mg_pfu + Hbl$Mn_pfu + Hbl$Ca_pfu);
S <- Hbl$Al_pfu;
SS <- (X + XX) / 2 * S;
if (T>649) {
if (T<751) {
P <- 5.03 * SS - 3.53;
}
}
if (T<649) {
warning(" CANNOT BE USED FOR T<650 C.");
}
if (T>751) {
warning(" CANNOT BE USED FOR T>750 C.");
}
return(data.frame(Name=paste0(Hbl$Name),Temp=Temp,P_calc=P));
}
sensors.p.hbl_blundy_holland_1990.args <- function(){
ars <- list();
ars$minerals <- c("Hbl");
ars$ranges <- c("Temp");
return(ars);
}
#sensors.p.hbl_blundy_holland_1990.test <- function(){
#
#}
{{tag> tpf Hbl AP_igroup}}