[CHNOSZ-commits] r401 - in pkg/CHNOSZ: . R demo inst inst/extdata/OBIGT tests/testthat
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Feb 20 05:29:45 CET 2019
Author: jedick
Date: 2019-02-20 05:29:44 +0100 (Wed, 20 Feb 2019)
New Revision: 401
Added:
pkg/CHNOSZ/inst/extdata/OBIGT/AkDi.csv
Modified:
pkg/CHNOSZ/DESCRIPTION
pkg/CHNOSZ/R/info.R
pkg/CHNOSZ/R/util.data.R
pkg/CHNOSZ/demo/sources.R
pkg/CHNOSZ/inst/NEWS
pkg/CHNOSZ/inst/extdata/OBIGT/inorganic_gas.csv.xz
pkg/CHNOSZ/inst/extdata/OBIGT/organic_aq.csv.xz
pkg/CHNOSZ/inst/extdata/OBIGT/refs.csv
pkg/CHNOSZ/tests/testthat/test-eos.R
Log:
add Akinfiev-Diamond model parameters to OBIGT/AkDi.csv
Modified: pkg/CHNOSZ/DESCRIPTION
===================================================================
--- pkg/CHNOSZ/DESCRIPTION 2019-02-19 22:57:50 UTC (rev 400)
+++ pkg/CHNOSZ/DESCRIPTION 2019-02-20 04:29:44 UTC (rev 401)
@@ -1,6 +1,6 @@
Date: 2019-02-20
Package: CHNOSZ
-Version: 1.2.0-8
+Version: 1.2.0-9
Title: Thermodynamic Calculations and Diagrams for Geochemistry
Authors at R: c(
person("Jeffrey", "Dick", , "j3ffdick at gmail.com", role = c("aut", "cre"),
Modified: pkg/CHNOSZ/R/info.R
===================================================================
--- pkg/CHNOSZ/R/info.R 2019-02-19 22:57:50 UTC (rev 400)
+++ pkg/CHNOSZ/R/info.R 2019-02-20 04:29:44 UTC (rev 401)
@@ -249,7 +249,7 @@
}
# if we got here there were no approximate matches
# 20190127 look for the species in optional data files
- for(opt in c("SLOP98", "SUPCRT92", "OldAA")) {
+ for(opt in c("SLOP98", "SUPCRT92", "OldAA", "AkDi")) {
optdat <- read.csv(system.file(paste0("extdata/OBIGT/", opt, ".csv"), package="CHNOSZ"), as.is=TRUE)
if(species %in% optdat$name) {
message('info.approx: ', species, ' is in an optional database; use add.obigt("', opt, '", "', species, '") to load it')
Modified: pkg/CHNOSZ/R/util.data.R
===================================================================
--- pkg/CHNOSZ/R/util.data.R 2019-02-19 22:57:50 UTC (rev 400)
+++ pkg/CHNOSZ/R/util.data.R 2019-02-20 04:29:44 UTC (rev 401)
@@ -265,6 +265,7 @@
else if(what=="SUPCRT92") tdata <- read.csv(system.file("extdata/OBIGT/SUPCRT92.csv", package="CHNOSZ"), as.is=TRUE)
else if(what=="OldAA") tdata <- read.csv(system.file("extdata/OBIGT/OldAA.csv", package="CHNOSZ"), as.is=TRUE)
else if(what=="AS04") tdata <- read.csv(system.file("extdata/OBIGT/AS04.csv", package="CHNOSZ"), as.is=TRUE)
+ else if(what=="AkDi") tdata <- read.csv(system.file("extdata/OBIGT/AkDi.csv", package="CHNOSZ"), as.is=TRUE)
ntot <- nrow(tdata)
# where to keep the results
DCp <- DV <- DG <- rep(NA,ntot)
@@ -401,7 +402,7 @@
isAkDi <- is.na(obigt$z.T)
# remove scaling factors for the HKF species, but not for the AkDi species
obigt[!isAkDi, 13:20] <- t(t(obigt[!isAkDi, 13:20]) * 10^c(-1,2,0,4,0,4,5,0))
- # for AkDi specie, set NA values in remaining columns (for display only)
+ # for AkDi species, set NA values in remaining columns (for display only)
obigt[isAkDi, 16:19] <- NA
# if all of the species are AkDi, change the variable names
if(all(isAkDi)) colnames(obigt)[13:20] <- c('a','b','xi','XX1','XX2','XX3','XX4','Z')
Modified: pkg/CHNOSZ/demo/sources.R
===================================================================
--- pkg/CHNOSZ/demo/sources.R 2019-02-19 22:57:50 UTC (rev 400)
+++ pkg/CHNOSZ/demo/sources.R 2019-02-20 04:29:44 UTC (rev 401)
@@ -22,8 +22,11 @@
tdata <- read.csv(system.file("extdata/OBIGT/AS04.csv", package="CHNOSZ"), as.is=TRUE)
os9 <- gsub("\ .*", "", tdata$ref1)
os10 <- gsub("\ .*", "", tdata$ref2)
+tdata <- read.csv(system.file("extdata/OBIGT/AkDi.csv", package="CHNOSZ"), as.is=TRUE)
+os11 <- gsub("\ .*", "", tdata$ref1)
+os12 <- gsub("\ .*", "", tdata$ref2)
# all of the thermodynamic data sources - some of them might be NA
-obigt.source <- unique(c(ps1, ps2, os1, os2, os3, os4, os5, os6, os7, os8, os9, os10))
+obigt.source <- unique(c(ps1, ps2, os1, os2, os3, os4, os5, os6, os7, os8, os9, os10, os11, os12))
obigt.source <- obigt.source[!is.na(obigt.source)]
# these all produce character(0) if the sources are all accounted for
print("missing these sources for thermodynamic properties:")
Modified: pkg/CHNOSZ/inst/NEWS
===================================================================
--- pkg/CHNOSZ/inst/NEWS 2019-02-19 22:57:50 UTC (rev 400)
+++ pkg/CHNOSZ/inst/NEWS 2019-02-20 04:29:44 UTC (rev 401)
@@ -1,4 +1,4 @@
-CHANGES IN CHNOSZ 1.2.0-8 (2019-02-20)
+CHANGES IN CHNOSZ 1.2.0-9 (2019-02-20)
--------------------------------------
CRAN COMPLIANCE
@@ -32,6 +32,9 @@
- Move H2AsO3- from OBIGT/SLOP98.csv to OBIGT/SUPCRT92.csv.
+- Add OBIGT/AkDi.csv as optional data file for species using
+ Akinfiev-Diamond model.
+
DOCUMENTATION
- In demo/NaCl.R, indicate region not considered by Shock et al., 1992
Added: pkg/CHNOSZ/inst/extdata/OBIGT/AkDi.csv
===================================================================
--- pkg/CHNOSZ/inst/extdata/OBIGT/AkDi.csv (rev 0)
+++ pkg/CHNOSZ/inst/extdata/OBIGT/AkDi.csv 2019-02-20 04:29:44 UTC (rev 401)
@@ -0,0 +1,11 @@
+name,abbrv,formula,state,ref1,ref2,date,G,H,S,Cp,V,a1.a,a2.b,a3.c,a4.d,c1.e,c2.f,omega.lambda,z.T
+Ar,NA,Ar,aq,AD03,NA,20.Feb.19,NA,NA,NA,NA,NA,-8.5139,11.921,0.0733,NA,NA,NA,NA,NA
+H2S,NA,H2S,aq,AD03,NA,20.Feb.19,NA,NA,NA,NA,NA,-11.2303,12.6104,-0.2102,NA,NA,NA,NA,NA
+O2,NA,O2,aq,AD03,NA,20.Feb.19,NA,NA,NA,NA,NA,-9.754,12.9411,0.026,NA,NA,NA,NA,NA
+N2,NA,N2,aq,AD03,NA,20.Feb.19,NA,NA,NA,NA,NA,-11.538,14.6278,-0.032,NA,NA,NA,NA,NA
+NH3,NA,NH3,aq,AD03,NA,20.Feb.19,NA,NA,NA,NA,NA,-4.7245,4.9782,-0.0955,NA,NA,NA,NA,NA
+H2,NA,H2,aq,AD03,NA,20.Feb.19,NA,NA,NA,NA,NA,-8.4596,10.8301,0.309,NA,NA,NA,NA,NA
+methane,NA,CH4,aq,AD03,NA,20.Feb.19,NA,NA,NA,NA,NA,-11.8462,14.8615,-0.1131,NA,NA,NA,NA,NA
+CO2,NA,CO2,aq,AD03,NA,20.Feb.19,NA,NA,NA,NA,NA,-8.8321,11.2684,-0.085,NA,NA,NA,NA,NA
+benzene,NA,C6H6,aq,AD03,NA,20.Feb.19,NA,NA,NA,NA,NA,-21.0084,22.934,-1.101,NA,NA,NA,NA,NA
+HCl,NA,HCl,aq,AD03,NA,20.Feb.19,NA,NA,NA,NA,NA,11.642,-7.4244,-0.28,NA,NA,NA,NA,NA
Modified: pkg/CHNOSZ/inst/extdata/OBIGT/inorganic_gas.csv.xz
===================================================================
--- pkg/CHNOSZ/inst/extdata/OBIGT/inorganic_gas.csv.xz 2019-02-19 22:57:50 UTC (rev 400)
+++ pkg/CHNOSZ/inst/extdata/OBIGT/inorganic_gas.csv.xz 2019-02-20 04:29:44 UTC (rev 401)
@@ -1,5 +1,5 @@
-ý7zXZ æÖ´F ! t/å£à.}] 7Iýúb¿ñ9²¶Ë¦¨TB;qý"½qù¦cL;ù"ß<²ëbï¨gò;ø¥Kä¥f1Æw?ozÆCþaì]IبÝ5i*s@/¦L¶eßEJd1
-~HtÙ«ëpÃ<¤¬×üzGÕÛ?ÄÌÞ¡e©½X¼ÐÓE¡agÐQ9ÊÇW=Bã
-ZPî¬
-Æès¬ôVN÷I,ÆçËsÍź3¥\\Þ6^ï*6û_NÜ`øËaî>¥ÌÇ!ïáÀ{îßQ,ì0ªuYÔ dý¼Þ
×Ö
f¶²ù¼ì°Y¤© fÈbQ£ÑÍ*ÐvtPt°Ý?¥âÀÚ7ÅA+øa0"c1ÛÍ<êEâ²9ªEú<é¨
,£3âUÆ0_pYp'ðSÆö·ôRf¤«W<ìÞ:Vâçá'äSg4n¿r' ½ÝAOü¸Il+q¥DÒ,âÐwÎöæ¥Ñ§ÅNé3ãÍeöÿ&cãÊ7Ç u|Xå-_£:´H$=øäμcäc+r÷&§,Ø[î|ijEÔpóè°ÍÞ¶
Y)Ço-Ü Ê;Î\}qÂ¥zb¹¥«¥~£ö^)1Í=3ù¥WðÜQåÌÚ®@V×ÎÆ"ÓN§ï÷U?ª`ÞA1Âà ÀÉDîÕbec¯~Xñcn±Õ
-8¿.©xD'°n;ûe{-Ù¨. Ýuäw1Ø3§ø\ø )kqÀýÞ#X ¯ 8J.±Ägû YZ
\ No newline at end of file
+ý7zXZ æÖ´F ! t/å£àýÇ] 7Iýúb¿ñ9²¶Ë¦¨TB;qý"½qù¦cL;ù"ß<²ëbï¨gò;ø¥Kä¥f1Æw?ozÆCþaì]IبÝ5i*s@/¦L¶eßEEK8uÊAÂÂÑ*sÁæÓ7dõ/Ñô= ¨CÙxÇ+Z§x¢ù°:ÆyÏÏ;Hæw i«p/½|ÜýA¥ÍaCÄõG!âV- @´A"Iö#ÿ\zNù¢u© ¦õWu,a2¢
&T#IîéOå9Ä}©¾Ïv/ûC¹Ï8aUØGñ¯ç_ÒÕ¡Xå-:;t 2:ü²HbC*3¨ÈEôÓÖ0´T¨ÎÒ¬9~bÿ|øúm©Ý"qÙõ>ãWIªçãåþûÖuw(¦ÇkÐní§»Õf;¸
+ëµ?«}zÕ
+yõà`¦IxÓ}i£ÔçÕzÕ;vùÇ}ªüXÀÃqìQNI_ySÍ?Ù²¡ËqLHÒ0Óy ëÔ¼£
+Y-¨W_4&}Ó_WVè]eF<Ö ¢ù%H¸ìEçÒÕ[(3«ÿÕ³u³D[C
+õDç´7r|\ì ÅQ»"½ku¥ú(&}Ϧ7Áùwã¿Ñ%U¾ ¼¨éEÀ1[£éTQü}_JÆ¢×$´õ}q§¥Dc`o*&:fDÐñ`7×=gòûÀþæVRHd·'ÚÚ&Ûïý/«¡H_ÈÇíÜ$º(pfÁÖ(ÍË¥ÎÏéð£
íÝáýþz×Êg×õé§gK÷üà mÌ;ôe_{&geéy!LqÒÚKt.³¬dzÍ(YhðµSGq®PU õMøÊr~ ¤¹
ÒЬ ãþ (ö±Ägû YZ
\ No newline at end of file
Modified: pkg/CHNOSZ/inst/extdata/OBIGT/organic_aq.csv.xz
===================================================================
--- pkg/CHNOSZ/inst/extdata/OBIGT/organic_aq.csv.xz 2019-02-19 22:57:50 UTC (rev 400)
+++ pkg/CHNOSZ/inst/extdata/OBIGT/organic_aq.csv.xz 2019-02-20 04:29:44 UTC (rev 401)
@@ -1,4 +1,4 @@
-ý7zXZ æÖ´F ! t/å£áj¥hå] 7Iýúb¿ñ9²¶Ë¦¨TB;qý"½qù¦cL;ù"ß<²ëbï¨gò;ø¥Kä¥f1Æw?ozÆCþaì]IبÝ5i¢ñü<ó¾Ã!A êeôC;иMÜ'ö~1ëÝhJOÙq=Ñ{
+ý7zXZ æÖ´F ! t/å£ájhØ] 7Iýúb¿ñ9²¶Ë¦¨TB;qý"½qù¦cL;ù"ß<²ëbï¨gò;ø¥Kä¥f1Æw?ozÆCþaì]IبÝ5i¢ñü<ó¾Ã!A êeôC;иMÜ'ö~1ëÝhJOÙq=Ñ{
!Sá¡l®J0woÖ±Ó¢VÏ)*+Fº·~ p60p¤¼
%ñ¹údôH4Z¼Äÿës÷9ð¨låuA at +ômÌGá]#ú|AnÂØcB½°.*ãÎöÐi¶6Y6½lÊ×>ò x!#×ï0Nïûéþ®øVqËëP×@oî*å~ç!Á~&¸Æüð§xú{;Å ÏQ(T{ÁµÜê~W¹ÿUÏ@Ñ»
rà&3¨íf1(\F¶^è=W<϶OöN ³È߶ãD?|ùï}É%¬biΰ6¨¹÷N_[6¦³çD *Þ¢üÍåÿd1*÷|ÕøÔQUè1õö¬³uüPúµ/aËvT¯¢ºÜö"Jþ.!f³Ò§ìt
@@ -196,21 +196,16 @@
GzXq%Â!¯à@b3³G¥µN:µÔÎp at JàðÑÐòQñ&¢#fïVuJ ˨¬a
Z;ÌðÞèüjúì¯\ÂÑ<Àjß"O`L3°ü%Ç* ï5Ûp©®£Kd¦<?uöèBÇ*ÎßOÚ0
V¯ùoVãüò^Ñøû[µåÕ7Ýq-iYd~K-ñ9i}ë)]dq?YKÛ¤FÌ)haêμ2v´Oçïgb7v-^¬£ÂÈè\?WH3ÌÙæTi£y¶BVAO °Ú®®Oú(¾`¨$l²é2Ë@hùÙ,:0¹1q¯éqÉTß\jz 3Éìßmx<`æé7LbÔoÉ W\ÌÚõ» %YÜÎÊMøÉÉv.Æî¿{§ñò¸ÌÖ4ÀÅV/¢=ûµÅíI¢³9% $ xÒFÊ2Î"6 í}`ù/ñ:*¥<ÍNùª[×Þ¿Ùõü¦nªÜS½xFúCÑæéÈñêÖÐB,TH×hYc¤}Ý¢zá
¢¤ZÄ Nv}b¤f-¾iN#øM\ZØÉÈÜO9åýI{³
-ßúÑ%_ölrëø²øùéP{:IYnc8×ò÷:ÿ¾Ü©ÐøL¯Cwn6¾áKÇÝs=i»Ià ݵE6ØTéÙ#FbÍUßÙI+Å
òÛ²ê}c ©¡ÖUýÙîYå¹±ÍÐ1N ²+X«Yæ&0qLʼ^UØV«ãTÒPæ&æÏSe?Y %Þ
-Zøô65
-1¥;xö£_õ¤ý:?oAMMÅÅëÚu
-ÔZôõø¿KB¬üÔ ±ôxuêÖnî=àZ>¢xõø]ëw»gõºO|X®G¡ÒÉfOtOA¯òûÆYï|ÈN¾²tg!3|Îò
-<!N»Î$Ë仡ÒE7À^©_¬©¦§Óñh
-SqRóz\mØaEä@Lû
-JäÙ2§KëAØÖm{ªÒ]#_ó'uc@î!ÐNè'È^E#1'jëÑ0(6^áê¡sÁ´+føûª«vL¤Á¤á5ò¸HÒeàÑí£ü`·làaÔ)!)Ïb×âÆëlÂòPDz2ÜíâK3¡Sf/·½×übÓ'èvGÅÛ¥û- £º ÇßnvtS/JÂPà+4a)(ãlزç3z[Ĭ,Ç*Ö%bFé"°5WìúƬØWÛÚìëÙ%³åJ~~'ïê¸sH
-ÈI§Óx°ÝU<-j_M>§+Çm°ìþÑÝyè«'ÑcðUmÍVVÎíl
-l¬Ïé9à ~ø½T
Þ$ÕÖ(e&ÞÏïtJ£bÙbâ£* ôïmÀ¾¦ªÞ©+&¼k½±v\W¤84àyCdØH&¸ÎrÃ
-Ò¿¼-;âË Z5¥Ï(ÇÖNäoA¡´5ô¬ÕÅrKrñ´A°=¶<d%ëQã"I!ÍTc¯~ÀL~<ål¦S^üþ?´³Sftã0ªYë7>Þoöa\ò7·èqÒ îÕ½1¸Ï¦ñ̤Üùµ®JÁê¡ôvªÌJ£ø#2~óK¶_TaYKóÕ³+ØÛnf}÷
-¯§vJ#ZÝò>dÌAÖ¬î |_jï>w©@
Ö®EQ[õRmº¿½ÿçÇ쫳ÚãÄLÉçd{µáX[ót ½¿~Ú´ôýÐ<×V`A0//
-DÿÅ3{?ÄDµ(©]ï8u¼ ÛY»¯ir.æ
vV¤É¡K3«ïî 3pºLæ¼ò÷áó÷¸ñ¿0ª©
µ^²ä¸¶){§¨?,Ô20cÍ˪ûtÕ8¡¡þP^å4D4ÖeZqS¤82²'¬·`v¿8ËTãÒÃ
-ë5U« "h<Ñ×B MÀR¤keÓÚ²@ù·
-èƶÐ~½ë&À)0pù`º-ù½bã®%t7»¬óy{Düúr¦-²x/oÄÙù«oìî.¯®¬©³F|÷KÚ¾õ4ò
-DϹÈÖ
-ÏhË56Ú[nJ_à°rs)||=tP¥E;n+ÓôDc9Õ*´Døè(ý¤Ûõ×L°DUÄa/ª´V i@ÒC%G6ªùÔX½s1§¥1¨oûÞ8~(9èèaîí
-bæ¯¿å¿ `Ô:¯Í<ªÃl at QÔ"Úå~ªI7wOfIÚQo÷äi=É(¯ÞV'O)5Ï i²½ùD!qFR*o×ÌðvWG(ÀOM*
F-Ä纤QxKÙu ùvª´³×\ý5Kƽ[V8tþý)tÇQ¼6PVÿֶ袸u¾À dÃ@,nVÐ>9.ÓñÍ¥[ñ]f¹ñí!
-Þ©;¾TÙïªDô®Çµ ^¤Ø ®n$ø£ÂE8üB"É»¹Ö¡zÑbÓNŤЬå§ùú9>öíT2YYHBÈÔ lUÆßû Ò¦Õû¼à±Ägû YZ
\ No newline at end of file
+ßúÑ%_ölrëø²øùéP{:IYnc8×ò÷:KÄÒ ÆÜfú ճÿ<ï.r@ßÝ%NÉÌ
+>Tø.îÄyR*ÜôOææÃÙ M?í:'4] ²ùû£%ÑùÈ, at e¢*VjýsL{¨×}Ç°éZ `ÐóHê!6 üýîjRóÍLú!Åjm]$ö@W[æsëËiûKÔÌ°2GK¯!ù@ºõü6/KÞãr~ÉbSA·_mFhqÈ+{³û½@ÛmýGåRÔ÷ÖGû¸O']Ó
+_§éåð.Ìñ§§LXÃ3z72>¥bè
+Âu+à2TULúÞêëqkKÞÅÁüÒ)<ýÁùáÂÇ$£oNΡ¶&¬£:;Ñ*9§y¦M¯À®ú%(?rå¥Ï{]ô×
ÙZsU/æ}øÀÂñ-8xcðJ6дû§ÎܾÏ
+^ø)ñf¸´'v$Æ-Å{H3ðËÏÎ(Ó
<XmÜ@&BGúzKÇÖR^#ºèÈî® XþZÉ\Å÷¾ØPåÿ¿5[ܺcnoöhai±7D©BüÑ!àD-ýÜuEÁ\i9_ j|î[óJ¯*X´ðÁ$墼LþJáÊìgwO8ËÆL´¤%Ï¿Ì{nZÕ?k/bpü÷ynyÏÍ|ÑÊoQ°ÑQQ¼aÔ÷Üþ:Þ?qRâµ]ñòª{
-þH y»t1¨h{hÞô0YA±Lb¼u°UÛ¨.Pn¦°E
+-ë
âÅhð:X¶o ·ÎÒƽM¹q ´¡ïfÎ3¡åÇÔ{;eÍÙ]ZV¦m'Ã-*hSzÞT ´¡8Æú¡gdÚ£uþ]¿Ã Þâp? eMw¦É£ùÏÓæÂÄÁ³)<´Z3}|þÉaî¿ËfQ÷ÿ!âÙ¡Û¶ñdÃg\L¦¬§4Á3Úq¨-⽤2P.سYq§<ÄÆü¢ÏþÛþ£ô³' m4AÜ¡ý0{¹^ z(/÷¼êûÁ18
+':¶à7cMk²A+!£&
,åµù®×ù~ÚÓyvÚþ7$ó§uY^ßE0F5kVß«õËæ5ýiâÀj)Í°ÝMõÜ{úùF<N¼eÔÈÔ¥û7í2lÁ"ÕRÍ ¯6g=É[ÀB&CUê%L¡ï|c¥8¤ú3á²ð5Å
+0Ãj»T8¹ëfÓ¥ÏØüÄ(òÜM@ìF¿á}"8&©×Ø(6ºÕ{gÞÎQéîÃan9é½~i,·W ÷|¶z6pQþI*>yU9l*_¬DV.7uîëÎêî'è2"³ªä_X<CÚ6*Ø
IÑ ·ÎÉÅ=«ççÖ¼âþ)`y Ð'%£Ö¯é'I
+d-ÍQô©á2<4dál
+ëß~
+aq&Ã0Ô©|ÍʯTMHnÌNOxÕyjqó~øð^3ZñKíxM.ò5cÜU%¬Lnà#(ES®l
+iÔ/_ À<üåÍÒGSQD/¾S®+ú6Oï?í,ø¡Åo-ð; ÆØpS Q±£ùL®Eg×9â°ÙK3HÑK
+`êíÕÇZÈ 2Wóú"»`&BÔ~̤} ã¹ÎÎeX|9Yõ#{ätØhÈßµ)d¨öE´$c³þSIÒwsÊéO©'üãળQ:ëÚ4rÆÀ]Ë ¼*9ÆkíBWamùôUþݤ^a_ù{¬÷ÍÈxîÑþvÞLïÊ!ѵ:l)*Ó§Ây6æ\hjñt·ì5a¹f«Èìªè$ÔYJûÆ(·9Ûøàzåßè×WIV·è²z§cD×MH.>¯PÃî Ì £ÉH ôÑ Õë&"±Ägû YZ
\ No newline at end of file
Modified: pkg/CHNOSZ/inst/extdata/OBIGT/refs.csv
===================================================================
--- pkg/CHNOSZ/inst/extdata/OBIGT/refs.csv 2019-02-19 22:57:50 UTC (rev 400)
+++ pkg/CHNOSZ/inst/extdata/OBIGT/refs.csv 2019-02-20 04:29:44 UTC (rev 401)
@@ -57,10 +57,11 @@
PH95,"V. A. Pokrovskii and H. C. Helgeson",1995,"Am. J. Sci. 295, 1255-1342","aluminum species",https://doi.org/10.2475/ajs.295.10.1255
PK95,"V. B. Parker and I. L. Khodakovskii",1995,"J. Phys. Chem. Ref. Data 24, 1699-1745",melanterite,https://doi.org/10.1063/1.555964
RH95,"R. A. Robie and B. S. Hemingway",1995,"U. S. Geological Survey Bull. 2131","gypsum GHS",http://pubs.er.usgs.gov/publication/b2131
+RH95.1,"R. A. Robie and B. S. Hemingway",1995,"U. S. Geological Survey Bull. 2131","hydrogen chloride (HCl gas)",http://pubs.er.usgs.gov/publication/b2131
SK95,"E. L. Shock and C. M. Koretsky",1995,"Geochim. Cosmochim. Acta 59, 1497-1532","metal-organic acid complexes",https://doi.org/10.1016/0016-7037(95)00058-8
SK95.1,"E. L. Shock and C. M. Koretsky",1995,"Geochim. Cosmochim. Acta 59, 1497-1532","alanate, glycinate and their complexes with metals. Values are taken from slop98.dat, which notes corrected values for some species.",https://doi.org/10.1016/0016-7037(95)00058-8
Sho95,"E. L. Shock",1995,"Am. J. Sci. 295, 496-580","carboxylic acids",https://doi.org/10.2475/ajs.295.5.496
-DPS+96,"I. Diakonov, G. Pokrovski et al.",1996,"Geochim. Cosmochim. Acta 60, 197-211",NaAl(OH)<sub>4</sub>,http://dx.doi.org/10.1016/0016-7037(95)00403-3
+DPS+96,"I. Diakonov, G. Pokrovski et al.",1996,"Geochim. Cosmochim. Acta 60, 197-211",NaAl(OH)<sub>4</sub>,https://doi.org/10.1016/0016-7037(95)00403-3
AH97b,"J. P. Amend and H. C. Helgeson",1997,"J. Chem. Soc., Faraday Trans. 93, 1927-1941","amino acids GHS",https://doi.org/10.1039/A608126F
AH97b.1,"J. P. Amend and H. C. Helgeson",1997,"J. Chem. Soc., Faraday Trans. 93, 1927-1941","alanate and glycinate GHS",https://doi.org/10.1039/A608126F
AH97b.2,"J. P. Amend and H. C. Helgeson",1997,"J. Chem. Soc., Faraday Trans. 93, 1927-1941","glycine, glycinium, and methionine GHS",https://doi.org/10.1039/A608126F
@@ -106,10 +107,11 @@
PS01,"A. V. Plyasunov and E. L. Shock",2001,"Geochim. Cosmochim. Acta 65, 3879-3900","aqueous nonelectrolytes",https://doi.org/10.1016/S0016-7037(01)00678-0
PS01.1,"A. V. Plyasunov and E. L. Shock",2001,"Geochim. Cosmochim. Acta 65, 3879-3900","acetic acid, propanoic acid, and methane",https://doi.org/10.1016/S0016-7037(01)00678-0
Ric01,"L. Richard",2001,"Geochim. Cosmochim. Acta 65, 3827-3877","organic sulfur compounds",https://doi.org/10.1016/S0016-7037(01)00761-X
-Ste01,"A. Stefansson",2001,"Chem. Geol. 172, 225-250","aqueous H<sub>4</sub>SiO<sub>4</sub>",http://dx.doi.org/10.1016/S0009-2541(00)00263-1
+Ste01,"A. Stefansson",2001,"Chem. Geol. 172, 225-250","aqueous H<sub>4</sub>SiO<sub>4</sub>",https://doi.org/10.1016/S0009-2541(00)00263-1
SSW01,"M. D. Schulte, E. L. Shock and R. H. Wood",2001,"Geochim. Cosmochim. Acta 65, 3919-3930","AsH<sub>3</sub>, CF<sub>4</sub>, CH<sub>3</sub>F, Cl<sub>2</sub>, ClO<sub>2</sub>, N<sub>2</sub>O, NF<sub>3</sub>, NO, PH<sub>3</sub>, and SF<sub>6</sub>",https://doi.org/10.1016/S0016-7037(01)00717-7
-TS01,"B. Tagirov and J. Schott",2001,"Geochim. Cosmochim. Acta 65, 3965-3992","aqueous Al species",http://dx.doi.org/10.1016/S0016-7037(01)00705-0
-GKL02,"R. N. Goldberg et al.",2002,"J. Phys. Chem. Ref. Data 31, 231-370","glycine, diglycine, and triglycine (+1 and -1 ions) GHS",http://dx.doi.org/10.1063/1.1416902
+TS01,"B. Tagirov and J. Schott",2001,"Geochim. Cosmochim. Acta 65, 3965-3992","aqueous Al species",https://doi.org/10.1016/S0016-7037(01)00705-0
+GKL02,"R. N. Goldberg et al.",2002,"J. Phys. Chem. Ref. Data 31, 231-370","glycine, diglycine, and triglycine (+1 and -1 ions) GHS",https://doi.org/10.1063/1.1416902
+AD03,"N. N. Akinfiev and L. W. Diamond",2003,"Geochim. Cosmochim. Acta 67, 613-629","aqueous nonelectrolytes",https://doi.org/10.1016/S0016-7037(02)01141-9
MGN03,"J. Majzlan, K.-D. Grevel and A. Navrotsky",2003,"Am. Mineral. 88, 855-859","goethite, lepidocrocite, and maghemite GHS",https://doi.org/10.2138/am-2003-5-614
NA03,"D. K. Nordstrom and D. G. Archer",2003,"Arsenic thermodynamic data and environmental geochemistry. In Arsenic in Groundwater, eds. Welch and Stollenwerk, Kluwer","As oxide and sulfide minerals",
NA03.1,"D. K. Nordstrom and D. G. Archer",2003,"Arsenic thermodynamic data and environmental geochemistry. In Arsenic in Groundwater, eds. Welch and Stollenwerk, Kluwer","aqueous As oxides and sulfides",
Modified: pkg/CHNOSZ/tests/testthat/test-eos.R
===================================================================
--- pkg/CHNOSZ/tests/testthat/test-eos.R 2019-02-19 22:57:50 UTC (rev 400)
+++ pkg/CHNOSZ/tests/testthat/test-eos.R 2019-02-20 04:29:44 UTC (rev 401)
@@ -80,7 +80,7 @@
test_that("AkDi produces expected results", {
# 20190220
- # add an aqueous species conforming to the AkDi model: it has NA for Z
+ # modify aqueous CO2 to use the AkDi model: it has NA for Z
iCO2 <- mod.obigt("CO2", a=-8.8321, b=11.2684, c=-0.0850, z=NA)
# do the properties we calculate match previously calculated values?
P <- "Psat"
@@ -99,7 +99,19 @@
G_calc <- convert(G_calc, "J", T=convert(T, "K"))
expect_equal(round(G_calc, 1), G_ref)
+ # compare Gibbs energies at 25 degrees calculatwith with AkDi model to database values
+ iAkDi <- add.obigt("AkDi")
+ # this would produce an error if any of the corresponding gases were unavailable
+ sAkDi <- subcrt(iAkDi, T = 25)
+ GAkDi <- do.call(rbind, sAkDi$out)$G
+ # now get the parameters from default OBIGT
reset()
+ GOBIGT <- info(iAkDi)$G
+ # calculate the differences and add names
+ Gdiff <- GAkDi - GOBIGT
+ names(Gdiff) <- info(iAkDi)$name
+ # the differences are not that big, except for HCl(aq)
+ expect_lt(max(abs(Gdiff)), 300)
})
# reference
More information about the CHNOSZ-commits
mailing list