====== Kfs-Pl: Ferry, 1978 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.kfs_pl_ferry_1978 <- 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);
L <- Kfs$K_pfu / (Kfs$K_pfufs$Ca_pfu + Kfs$K_pfufs$Na_pfu + Kfs$K_pfu);
M <- Pl$K_pfu / (Pl$Ca_pfu + Pl$Na_pfu + Pl$K_pfu);
if (P<4.001) {
if (P>2.999) {
T <- (L^2 * (964.4 * X - 8358.2) / (1.9872 * log(X / Y) - 6.48 * L^2 + 8.62 * L^2 * X)) - 273;
}
}
if (P>4.001) {
warning(" IS NOT TO BE USED FOR P>4 KBAR");
}
if (P<2.999) {
warning(" IS NOT TO BE USED FOR P<3 KBAR");
}
return(data.frame(Name=paste0(Pl$Name,"-", Kfs$Name),P=P,T_calc=T));
}
sensors.t.kfs_pl_ferry_1978.args <- function(){
ars <- list();
ars$minerals <- c("Kfs", "Pl");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.kfs_pl_ferry_1978.test <- function(){
#
#}
{{tag> tpf Pl Kfs }}