====== Cpx-Cum: Fonarev, 1987 ======
=== Details ===
This sensor from [[:about_tpf|TPF]] collection
^ Article | |
^ Collibration | |
^ Precision | |
^ Ranges | |
^ Renew sensors | |
* заголовок
* краткое описание
* статья
* ссылка
* карточка
* подробное описание
* код
* тест
=== Source ===
source("utilities_tpf.r");
sensors.t.cpx_cum_fonarev_1987 <- function(Cpx, Cum, P, ...){
Cum <- tpf.recalc_minaral("CUM",Cum);
Cpx <- tpf.recalc_minaral("CPX",Cpx);
X <- (Cum$Fe_p2_pfu + Cum$Fe_p3_pfu) / (Cum$Mg_pfu + Cum$Fe_p2_pfu + Cum$Fe_p3_pfu + Cum$Ca_pfu);
Y <- (Cpx$Fe_p2_pfu + Cpx$Fe_p3_pfu) / (Cpx$Mg_pfu + Cpx$Fe_p2_pfu + Cpx$Fe_p3_pfu + Cpx$Ca_pfu);
Z <- Cpx$Al2O3_wtp + Cpx$Na2O_wtp + Cpx$TiO2_wtp + Cpx$MnO_wtp;
if (Y>0.05) {
if (Y<0.55) {
if (Z<3) {
if (P<10) {
A <- 0.780 * X - 7.357 * X^2 + 49.074 * X^3 - 53.494 * X^4 - Y * (1.00985)^P / 1.07105;
B <- - 0.520 * X + 26.482 * X^2 - 126.862 * X^3 + 126.661 * X^4;
G <- - 18.319 * X^2 + 75.816 * X^3 - 70.995 * X^4;
T <- (2 * G * 1000 / ( - B - sqrt(B^2 - 4 * A * G))) - 273.15;
if (T<820) {
if (T>500) {
if (T>820) {
warning(" IS NOT TO BE USED FOR T>820 C");
}
if (T<500) {
warning(" IS NOT TO BE USED FOR T<500 C");
}
}
if (P>10) {
warning(" IS NOT TO BE USED FOR P>10 KBAR");
}
}
if (Z>3) {
warning(" IS NOT TO BE USED FOR (AL2O3+TIO2+MNO+NA2O) IN CPX >3 W.");
}
}
if (Y>0.55) {
warning(" IS NOT TO BE USED FOR FE/(FE+MG+CA) IN CPX >0.55");
}
}
if (Y<0.05) {
warning(" IS NOT TO BE USED FOR FE/(FE+MG+CA) IN CPX <0.55");
}}}
return(data.frame(Name=paste0(Cpx$Name,"-", Cum$Name),P=P,T_calc=T));
}
sensors.t.cpx_cum_fonarev_1987.args <- function(){
ars <- list();
ars$minerals <- c("Cpx", "Cum");
ars$ranges <- c("P");
return(ars);
}
#sensors.t.cpx_cum_fonarev_1987.test <- function(){
#
#}
{{tag> tpf Cpx Cum }}