Grt-Opx: Perchuk, Lavrenteva, 1989 <A>

Details

This sensor from TPF collection

Article
Collibration
Precision
Ranges
Renew sensors

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

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

Source

source("utilities_tpf.r");

sensors.t.grt_opx_perchuk_lavrenteva_1989_a <- function(Grt, Opx, P, ...){
    Opx <- tpf.recalc_minaral("OPX",Opx);
    Grt <- tpf.recalc_minaral("GRT",Grt);

    X <- Opx$Mg_pfu / (Opx$Mg_pfu + Opx$Fe_p2_pfu + Opx$Fe_p3_pfu + (Opx$Al_c4_pfu + Opx$Al_c6_pfu) / 2);
    Y <- (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu) / (Opx$Mg_pfu + Opx$Fe_p2_pfu + Opx$Fe_p3_pfu + (Opx$Al_c4_pfu + Opx$Al_c6_pfu) / 2);
    Z <- (Opx$Al_c4_pfu + Opx$Al_c6_pfu) / 2 / (Opx$Mg_pfu + Opx$Fe_p2_pfu + Opx$Fe_p3_pfu + (Opx$Al_c4_pfu + Opx$Al_c6_pfu) / 2);
    B <- (Opx$Fe_p2_pfu + Opx$Fe_p3_pfu) / Opx$Mg_pfu;
    A <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / Grt$Mg_pfu;
    C <- Grt$Ca_pfu;
    MF <- X - Y;
    T <- (4066 + 347 * MF - 17484 * Z + 0.02342 * P * 1000 + 1923 * C) /      (1.9872 * log(A / B) + 2.143 + 0.0929 * MF - 12.8994 * Z + 1.282 * C) - 273.15;
    warning(" ACCURACY +/-42 C");
    return(data.frame(Name=paste0(Grt$Name,"-", Opx$Name),P=P,T_calc=T));
}

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

#sensors.t.grt_opx_perchuk_lavrenteva_1989_a.test <- function(){
#
#}
, ,