QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 2673|回复: 0
打印 上一主题 下一主题

Mathematica不能识别一个计算矿物化学式的软件?

[复制链接]
字体大小: 正常 放大

1

主题

0

听众

2

积分

升级  40%

该用户从未签到

自我介绍
学生
跳转到指定楼层
1#
发表于 2012-12-6 22:56 |只看该作者 |倒序浏览
|招呼Ta 关注Ta
各位好!我下载了一个关于矿物化学成分软件是基于Mathematica软件的,之前我有一点学习VB语言的基础,在用软件的过程中,可能是一个调用“B88”总是显示红色,不知是不是这个Mathematica软件不识别我下载的这个矿物化学成分计算软件:4 O) E' S( [1 q9 H* L7 `
3 ?8 O4 M9 w) n6 S' ^% v
(* This notebook contains examples for the PET-functions
  ?9 a5 F3 ^! N$ H-CalcFormula- calculate mineral formulae (and mole fractions); P9 h3 I3 ^: J) C
-TransformDatFile- transform microprobe data-files (JEOL_JX \
, h9 [3 E7 d, r! L2 D8600) to PET-readable format% K; @7 d- g  i3 {  G% O
-MakeAnalysisTable- make a usual table of mineralchemical \
! ?% w0 D' S- x1 M! a0 Aanalyses (wt.% and formula units) *), A" u  [& X# G2 ?* Y4 `: x3 }
(* This top-cell must be run once before any example can be \
0 l4 S2 Z" v+ l6 jperformed. *)+ \7 t- w  K5 p5 h% f/ f( e

: O* B! [( |/ i' d0 l(* Define the directory, where the PET-files reside (e.g. C:\Eigene \
# S  I; {9 O& ~- o+ i& I3 Z1 ?Dateien\Pet) and load PET. *)
0 \4 `4 b" q; a. `# t$PetDirectory = "C:\Eigene Dateien\Pet";
  B" T& m% }, D( NSetDirectory[$PetDirectory];
% \* d1 p0 X/ ?0 VDeclarePackage["DEFDAT`", {"Dataset"}];
- ^2 {( J4 Z$ u8 t+ m; zDataset[Dataset -> B88];
7 E2 x! y4 m6 V! P3 J& J" b
4 \4 i) p6 U4 q$ N6 i* U7 I4 \6 Q. @' }

& h0 t: `' \5 r7 x% V. D7 }; e- u! d8 A" w$ @! b

# M( A' T  B1 [" ]* w! V) s另一个相关的“DEFDAT”:  R: O3 B! W; U" _% L) s$ P
(* Name: DEFDAT` . O1 q* z7 g5 H' a" d8 e8 }
package of PET: Petrological Elementary Tools
- ?4 J+ ~7 ]7 }/ R, W& s8 fComputers & Geoscience 24:219-235 *)2 i5 ]  I9 ~, C1 n/ b/ T1 i; N

2 }' J9 j: m4 f! _* b) h2 ~(* Summary: this package declares various PET-functions *)
& N% @1 O0 P  k7 A* ?( i/ `0 e. r4 W6 _/ U$ q4 _- ~, d% _
(* Author: Edgar Dachs, Department of Mineralogy6 L; L) U/ k+ q! u% E
University of Salzburg, Austria2 H+ u# c- a, {! \$ l/ j
email: edgar.dachs@sbg.ac.at
  J" D: {: q. q! e9 z* U8 a" C4 z( qlast update: 11-2002 *)
4 u" U- V+ ]8 l) O
5 @) o) h) M+ e# ^6 w$ R4 TBeginPackage["DEFDAT`"]
# h+ v. u: w8 {. g: H* W9 m9 {& w  }1 Z6 i2 _
Dataset::usage = "Dataset[Dataset-> ...] selects the thermodynamic dataset to be used.\n\n( P4 j1 Y' ?; c. m9 p9 q. A! O( I
The following data sets are available, loaded with:\n\n: D4 d2 X9 J! K" F
Berman (1988) J Petrol 29:445-522 Dataset[Dataset -> B88]\n: U+ j5 b' z, g( t8 N6 H- p
Holland & Powell (1998) J metam Geol 16:309-343 Dataset[Dataset -> HP31], or\n
9 |: D7 G, e  l, V, V/ C( jDataset[Dataset -> HP32]\n 8 j& U! A( ?4 I5 m
Gottschalk (1997) Eur J Mineral 9:175-223 Dataset[Dataset -> G97]\n\n, }" F$ O9 L% z; n3 z. D+ P
See G::usage for more details.\n- F; i! V% N, I
\"31\" or \"32\" following \"HP\" indicates that the thermodynamic data have been\n
# @4 U7 _1 Q% j1 J7 uconverted from THERMOCALC-versions 3.1 or 3.2 of Holland & Powell respectively.\n
1 n3 A1 `0 f& o; q0 F6 FWhen you start PET, a subdirectory \"/work\" is created by default, from which all user-files\n
3 W4 o+ u1 ^5 D(e.g. mineralchemical data files) are read and all files produced by PET are written to.\n
* i  ^4 P: L% t3 R8 x, [2 WTo create a new subdirectory for that purpose, you can use the option:\n: x0 C, \8 y% `
WorkDirectory -> \"/directory_name\"\n" j( i  m' V! H0 c
Example: Dataset[Dataset -> B88, WorkDirectory -> \"sample_xy\"]\n
" \+ ?; x8 C1 \3 LThis loads PET with the Berman data set and reads/writes all user files from/to the\n
4 p5 d* a$ S8 V5 N* l- wsubdirectory named \"sample_xy\".\n/ j4 V, M, @. T5 j6 Q2 L
Called from: User.\n) X3 |. y& A+ x& b0 }- K/ F. K
Package name: DEFDAT.m\n" z9 V0 v! [& p+ \/ M# I4 s
PET: Petrological Elementary Tools, (c) Edgar Dachs."
2 J3 `) p: q7 i8 i8 O8 `
zan
转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信
您需要登录后才可以回帖 登录 | 注册地址

qq
收缩
  • 电话咨询

  • 04714969085
fastpost

关于我们| 联系我们| 诚征英才| 对外合作| 产品服务| QQ

手机版|Archiver| |繁體中文 手机客户端  

蒙公网安备 15010502000194号

Powered by Discuz! X2.5   © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 )     论坛法律顾问:王兆丰

GMT+8, 2025-5-31 01:27 , Processed in 0.328372 second(s), 60 queries .

回顶部