QQ登录

只需要一步,快速开始

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

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

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

1

主题

0

听众

2

积分

升级  40%

该用户从未签到

自我介绍
学生
跳转到指定楼层
1#
发表于 2012-12-6 22:56 |只看该作者 |倒序浏览
|招呼Ta 关注Ta
各位好!我下载了一个关于矿物化学成分软件是基于Mathematica软件的,之前我有一点学习VB语言的基础,在用软件的过程中,可能是一个调用“B88”总是显示红色,不知是不是这个Mathematica软件不识别我下载的这个矿物化学成分计算软件:
" l. s. A' ^# C9 R% E
: C5 j, r2 [* D9 g(* This notebook contains examples for the PET-functions# }( g# X8 |) G3 z9 t
-CalcFormula- calculate mineral formulae (and mole fractions)" S2 f6 ?# K7 w4 \
-TransformDatFile- transform microprobe data-files (JEOL_JX \
* p# D1 ^5 ~# g9 L8 |! |7 H8600) to PET-readable format
9 ~0 d3 F3 ^- h  [3 ^-MakeAnalysisTable- make a usual table of mineralchemical \
* {, y) _; Z/ q9 z( Yanalyses (wt.% and formula units) *)
9 y0 o% |' ^* F1 X9 X/ z5 n/ `- b(* This top-cell must be run once before any example can be \
! d/ F5 z3 |2 N/ H+ ~1 ^. Operformed. *)
# W1 o* t. [* \& d3 A
$ o# Z0 e5 P( Z; q: u% _2 s0 X4 N1 W(* Define the directory, where the PET-files reside (e.g. C:\Eigene \6 v' Y; i  C5 ~; b  }# P
Dateien\Pet) and load PET. *)+ K9 o+ d- O1 N% b& W5 A
$PetDirectory = "C:\Eigene Dateien\Pet";3 ?- {( J0 r' @* z% D% s" n! J0 P
SetDirectory[$PetDirectory];
* M/ a4 ]9 r$ s4 _DeclarePackage["DEFDAT`", {"Dataset"}];& e# y! c7 u3 g; ^1 x) C/ Z  J0 ?
Dataset[Dataset -> B88];
0 K1 \0 Y9 Z' z8 t& c! |$ z* T
8 r; e8 s* C/ a8 p. ^  @# W6 @2 e, c6 U; U7 i0 V1 T& A
( ?$ ]0 J# r- ?4 N0 S9 m" c8 p& ?

3 R6 P4 B1 r" \& d  Z3 [7 D5 K# [% |+ z$ M2 ?2 {
另一个相关的“DEFDAT”:) m- u7 e# ?  x* V/ U1 O7 k
(* Name: DEFDAT` ) t2 `. `8 ]' l& |
package of PET: Petrological Elementary Tools
* P1 Q9 a2 W: u4 M$ W" f- TComputers & Geoscience 24:219-235 *)
: d. B& P& r3 T# F
5 _$ O: P# N6 L2 V% w4 b(* Summary: this package declares various PET-functions *)6 ]6 G5 C5 c* t5 h: C

, j. C& b: u7 E, w(* Author: Edgar Dachs, Department of Mineralogy
. n% b' _/ ^3 J  l, l+ _& `University of Salzburg, Austria' [4 M+ D5 T4 p6 h2 `2 K& s
email: edgar.dachs@sbg.ac.at2 Y) K  `( `9 G9 n1 D
last update: 11-2002 *)
9 s! C2 ], i8 Y5 H2 n. F3 p
' X5 M- v. L# |7 OBeginPackage["DEFDAT`"]
. d$ {  i- p  M& \7 G! b
+ l# v3 h( P3 g" C  U7 UDataset::usage = "Dataset[Dataset-> ...] selects the thermodynamic dataset to be used.\n\n
* A, }2 f; W4 W- |, B- @The following data sets are available, loaded with:\n\n
6 k) g# c9 j% M3 M/ N- [# ]& _Berman (1988) J Petrol 29:445-522 Dataset[Dataset -> B88]\n
" w# z3 L7 t- @3 I% p0 V, l/ HHolland & Powell (1998) J metam Geol 16:309-343 Dataset[Dataset -> HP31], or\n7 j5 J, E  S) A5 w9 \
Dataset[Dataset -> HP32]\n ' s% v( M) P$ f( C/ D. |. S
Gottschalk (1997) Eur J Mineral 9:175-223 Dataset[Dataset -> G97]\n\n1 ~" H. @, g- C/ ?
See G::usage for more details.\n& L; l7 S' z0 @, W# p7 L
\"31\" or \"32\" following \"HP\" indicates that the thermodynamic data have been\n) B$ z; H0 w, ^( ^
converted from THERMOCALC-versions 3.1 or 3.2 of Holland & Powell respectively.\n
: P1 w6 H6 ~9 w) w: f! \When you start PET, a subdirectory \"/work\" is created by default, from which all user-files\n
3 V" s9 T) K; t( N9 K(e.g. mineralchemical data files) are read and all files produced by PET are written to.\n
- j( o5 `9 X. X, E( ^4 x8 ATo create a new subdirectory for that purpose, you can use the option:\n  b9 M* y! P4 Y& k! \' }* X
WorkDirectory -> \"/directory_name\"\n# W7 K& _& j" j3 p$ c: v) z
Example: Dataset[Dataset -> B88, WorkDirectory -> \"sample_xy\"]\n; s( [) k, X, N3 {& }9 c
This loads PET with the Berman data set and reads/writes all user files from/to the\n% e, `- I9 _5 P3 v2 @
subdirectory named \"sample_xy\".\n. N2 K  ~& M) j3 F9 o/ K2 R6 s
Called from: User.\n
' n" V4 z9 `+ `# L; I# JPackage name: DEFDAT.m\n( B- |) ~2 i# P8 h- p/ s& L1 Q2 P
PET: Petrological Elementary Tools, (c) Edgar Dachs."
- L  q" p) _) ^
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, 2026-6-3 11:08 , Processed in 0.479334 second(s), 60 queries .

回顶部