Grt-Bt: Fonarev, 1994 <C>

Details

This sensor from TPF collection

Article
Collibration
Precision
Ranges
Renew sensors

Использовать Проверить

  • заголовок
  • краткое описание
  • статья
  • ссылка
  • карточка
  • подробное описание
  • код
  • тест

Source

source("utilities_tpf.r");

sensors.t.grt_bt_fonarev_1994_c <- function(Grt, Bt, P, ...){
    Bt <- tpf.recalc_minaral("BT",Bt);
    Grt <- tpf.recalc_minaral("GRT",Grt);

    X <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
    Y <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
    Z <- Grt$Ca_pfu / (Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
    N <- Grt$Mg_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
    XX <- Grt$Mg_pfu / (Grt$Mg_pfu + Grt$Mn_pfu + Grt$Fe_p2_pfu + Grt$Fe_p3_pfu);
    C <- Grt$CaO_wtp;
    M <- (Bt$Fe_p2_pfu + Bt$Fe_p3_pfu) / Bt$Mg_pfu;
    MM <- Bt$Mg_pfu / (Bt$Fe_p2_pfu + Bt$Fe_p3_pfu);
    YY <- Bt$Mg_pfu / (Bt$Mg_pfu + Bt$Mn_pfu + Bt$Fe_p2_pfu + Bt$Fe_p3_pfu);
    QT <- Bt$Fe_p2_pfu + Bt$Fe_p3_pfu + Bt$Mg_pfu;
    FF <- F;
    if (C<4.00) {
    warning("  CANNOT BE USED FOR CAO IN GRT <4 WT.");
    }
    if (C>4.00) {
    FB <- FF / (2 * QT);
    A <- Z^2 + X * Z + Z * (1 - X - Y - Z) + Y * Z;
    T1 <- (12454 + 0.057 * P * 1000 + 3 * 3300 * A) / (4.662 + 3 * 1.5 * A - 3 * 1.9872 * log(N * M)) - 273;
    T2 <- ((1586 * Z + 1308 * (1 - X - Y - Z) + 2089 + 0.00956 * P * 1000) / (0.78198 - log(N / MM))) - 273;
    T3 <- (2089 + 0.00956 * P * 1000) / (0.7821 - log(N / MM) - 2.978 * Z + 5.906 * Z^2) - 273;
    T4 <- (3720 + 2871 * Z + (0.012 - 0.02 * FB) * P * 1000 + 2469 * FB) / (log(YY / (1 - YY) * (1 - XX) / XX)     + 2.868 + 0.625 * Z - 3.27 * FB) - 273;
    TT <- (T1 + T2 + T3 + T4) / 4;
    warning("  THE QUANTITY 'F' IN BT IS USED.");
    if (TT>550.00) {
    warning("  IS NOT TO BE USED FOR T>550 C");
    }
    if (TT<550.00) {
    T <- TT;
    }
    }
    return(data.frame(Name=paste0(Grt$Name,"-", Bt$Name),P=P,T_calc=T));
}

sensors.t.grt_bt_fonarev_1994_c.args <- function(){
    ars <- list();
    ars$minerals <- c("Grt", "Bt");
    ars$ranges <- c("P");
    return(ars);
}

#sensors.t.grt_bt_fonarev_1994_c.test <- function(){
#
#}
, ,
  • sensors/t/grt_bt_fonarev_1994_c.txt
  • Последние изменения: 2018/11/12 15:08
  • (внешнее изменение)