====== Kfs-Pl: Stormer, Jr, 1975 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.kfs_pl_stormer_jr_1975 <- function(Kfs, Pl, P, ...){
Pl <- tpf.recalc_minaral("PL",Pl);
Kfs <- tpf.recalc_minaral("KFS",Kfs);
X <- Kfs$K_pfufs$Na_pfu / (Kfs$K_pfufs$Ca_pfu + Kfs$K_pfufs$Na_pfu + Kfs$K_pfu);
Y <- Pl$Na_pfu / (Pl$Ca_pfu + Pl$Na_pfu + Pl$K_pfu);
T <- (6326.7 - 9963.2 * X + 943.3 * X^2 + 2690.2 * X^3 + (0.0925 - 0.1458 * X + 0.0141 * X^2 + 0.0392 * X^3) * 1000 * P) / ( - 1.9872 * log(X / Y) + 4.6321 - 10.815 * X + 7.7345 * X^2 - 1.5512 * X^3) - 273;
return(data.frame(Name=paste0(Pl$Name,"-", Kfs$Name),P=P,T_calc=T));
}
sensors.t.kfs_pl_stormer_jr_1975.args <- function(){
ars <- list();
ars$minerals <- c("Kfs", "Pl");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.kfs_pl_stormer_jr_1975.test <- function(){
#
#}
{{tag> tpf Pl Kfs }}