Grt-Opx-Sil-Qtz: Avchenko, Kuznetsova, 1988

Details

This sensor from TPF collection

Article
Collibration
Precision
Ranges
Renew sensors

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

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

Source

source("utilities_tpf.r");

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

    M <- Opx$Mg_pfu;
    X <- (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu) / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu);
    Y <- Grt$Ca_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu);
    Z <- Grt$Mg_pfu / (Grt$Fe_p2_pfu + Grt$Fe_p3_pfu + Grt$Mg_pfu + Grt$Ca_pfu + Grt$Mn_pfu);
    AE <- log((M / 2)^2);
    TT <- T + 273;
    PI <- ((3300 - 1.5 * TT) * Y^2 + (5704 - 1.242 * TT) * Y * X) / 1.9872 / TT;
    AP <- 3 * log(Z) + 3 * PI;
    if (T>750.0) {
    if (T<1050.0) {
    if (Z>0.1) {
    A <- 3095;
    B <-  - 1.137;
    P <- (A + B * TT + 1.9872 * TT * (2 / 3 * AP - AE)) / 0.119 / 1000;
    }
    }
    }
    if (Y<0.08) {
    warning(" IS NOT TO BE USED FOR CA/(MG+MN+FE+CA) IN GRT <0.08");
    }
    if (Z<0.1) {
    warning(" IS NOT TO BE USED FOR MG/(MG+MN+FE+CA) IN GRT <0.1");
    }
    if (T<750.0) {
    warning(" IS NOT TO BE USED FOR T<750 C");
    }
    if (T>1050.0) {
    warning(" IS NOT TO BE USED FOR T>1050 C");
    }
    return(data.frame(Name=paste0(Grt$Name,"-", Opx$Name),Temp=Temp,P_calc=P));
}

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

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