====== Kfs-Pl: Powell, Powell, 1977 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.kfs_pl_powell_powell_1977 <- function(Kfs, Pl, P, ...){
Pl <- tpf.recalc_minaral("PL",Pl);
Kfs <- tpf.recalc_minaral("KFS",Kfs);
X <- Kfs$K_pfu / (Kfs$K_pfufs$Ca_pfu + Kfs$K_pfufs$Na_pfu + Kfs$K_pfu);
Y <- Kfs$K_pfufs$Na_pfu / (Kfs$K_pfufs$Ca_pfu + Kfs$K_pfufs$Na_pfu + Kfs$K_pfu);
Z <- Pl$Na_pfu / (Pl$Ca_pfu + Pl$Na_pfu + Pl$K_pfu);
T <- (( - X^2 * (6330 + 0.093 * P * 1000 + 2 * Y * (1340 + 0.019 * P * 1000))) / (1.9872 * log(Y / Z) + X^2 * (1.54 * Y - 4.63))) - 273;
return(data.frame(Name=paste0(Pl$Name,"-", Kfs$Name),P=P,T_calc=T));
}
sensors.t.kfs_pl_powell_powell_1977.args <- function(){
ars <- list();
ars$minerals <- c("Kfs", "Pl");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.kfs_pl_powell_powell_1977.test <- function(){
#
#}
{{tag> tpf Pl Kfs }}