Пересчет на 11 атомов кислорода, 4 иона в IV координации.
Reference | TPF |
---|---|
Input | SiO2_wtp, Al2O3_wtp, TiO2_wtp, Cr2O3_wtp, Fe2O3_wtp, FeO_wtp, MnO_wtp, MgO_wtp, CaO_wtp, Na2O_wtp, K2O_wtp, BaO_wtp, NiO_wtp, ZnO_wtp, BeO_wtp, P2O5_wtp, V2O5_wtp, CoO_wtp, GeO2_wtp, ZrO2_wtp, Cs2O_wtp, PbO_wtp, SO3_wtp, CO2_wtp, F_wtp, Cl_wtp |
Output | Fe_p3_pfu, Fe_p2_pfu, Al_c4_pfu, Al_c6_pfu |
source('utilities_tpf.r') recalc.ms_tpf_realc0 <- function (wtp_data, ...) { return(tpf.recalc_minaral("MS",wtp_data)); } recalc.ms_tpf_realc0.test <- function () { src <- data.frame(Name='test',SiO2_wtp=c(46.920, 45.230), TiO2_wtp=c(0.500, 0.640), Al2O3_wtp=c(29.430, 30.630), FeO_wtp=c(3.610, 4.220), MnO_wtp=c(0.180, 0.010), MgO_wtp=c(2.280, 1.490), CaO_wtp=c(0.0, 0.270), Na2O_wtp=c(0.640, 0.690), K2O_wtp=c(9.330,9.470)); result <- recalc.ms_tpf_realc0 (src[2,]); result <- recalc.ms_tpf_realc0 (src); expect_equal(object = result[1,]$Si_pfu, 3.231, tolerance = 0.001); expect_equal(object = result[2,]$Si_pfu, 3.142, tolerance = 0.001); expect_equal(object = result[1,]$Al_pfu, 2.388, tolerance = 0.001); expect_equal(object = result[2,]$Al_pfu, 2.508, tolerance = 0.001); expect_equal(object = result[1,]$Al_c6_pfu, 1.619, tolerance = 0.001); expect_equal(object = result[2,]$Al_c6_pfu, 1.650, tolerance = 0.001); }