Grt-Opx: Bertrand, Sotin, 1986 <B>

Details

This sensor from TPF collection

Article
Collibration
Precision
Ranges
Renew sensors

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

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

Source

source("utilities_tpf.r");

sensors.p.grt_opx_bertrand_sotin_1986_b <- function(Grt, Opx, Temp, ...){
T <- Temp;
    Opx <- tpf.recalc_minaral("OPX",Opx);
    Grt <- tpf.recalc_minaral("GRT",Grt);

    X <- Opx$Ca_pfu;
    Y <- Opx$Al_c4_pfu + Opx$Al_c6_pfu + Opx$Cr_pfu - 0.82 * Opx$Na_pfu;
    A <- Grt$Ca_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu);
    B <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mg_pfu);
    C <- (Grt$Al_pfu + Grt$Cr_pfu) / 2;
    K <- (1 - X)^2 * Y / (1 - A)^3 / C^2;
    TT <- T + 273.15;
    P <- (25134 - 23.177 * TT + 8.314 * TT * log(K) + 20835 * B^2 + A * (1 - A) * (0.147 - A) * 6440535) /      (149065.4 * A * (1 - A) * (0.147 - A) - 994.17);
    warning(" FOR GARNET PERIDOTITES");
    return(data.frame(Name=paste0(Grt$Name,"-", Opx$Name),Temp=Temp,P_calc=P));
}

sensors.p.grt_opx_bertrand_sotin_1986_b.args <- function(){
    ars <- list();
    ars$minerals <- c("Grt", "Opx");
    ars$ranges <- c("Temp");
    return(ars);
}

#sensors.p.grt_opx_bertrand_sotin_1986_b.test <- function(){
#
#}
, ,