QQ登录

只需要一步,快速开始

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

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

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

1

主题

0

听众

2

积分

升级  40%

该用户从未签到

自我介绍
学生
跳转到指定楼层
1#
发表于 2012-12-6 22:56 |只看该作者 |倒序浏览
|招呼Ta 关注Ta
各位好!我下载了一个关于矿物化学成分软件是基于Mathematica软件的,之前我有一点学习VB语言的基础,在用软件的过程中,可能是一个调用“B88”总是显示红色,不知是不是这个Mathematica软件不识别我下载的这个矿物化学成分计算软件:
) n3 Q* L$ W5 t
) C* j$ P6 d+ B- F7 l(* This notebook contains examples for the PET-functions
3 j" m8 L1 o) Y5 w8 |3 |) |-CalcFormula- calculate mineral formulae (and mole fractions)
4 L* |1 D4 L3 n& i% ~4 X$ i6 g-TransformDatFile- transform microprobe data-files (JEOL_JX \
! y' o7 B0 Y5 f1 w! l" r  N4 ?- P8600) to PET-readable format
2 L4 V# k3 P4 _5 @-MakeAnalysisTable- make a usual table of mineralchemical \- \1 ^9 v( k1 ?1 ?
analyses (wt.% and formula units) *): v3 K' H3 B9 n4 J
(* This top-cell must be run once before any example can be \& V* L* u3 D: b! G
performed. *)6 Y( q7 U, v$ b7 J3 ]; B

, x; p" i0 [" {4 Y9 A(* Define the directory, where the PET-files reside (e.g. C:\Eigene \
# ]. ~$ _* G8 U/ W) r9 l- RDateien\Pet) and load PET. *)1 }# F8 z5 e8 k0 t: T) w) q
$PetDirectory = "C:\Eigene Dateien\Pet";8 ?5 b- {) z. Y. N" Q; n
SetDirectory[$PetDirectory];
$ T9 q* j, {6 h7 K: s6 y& wDeclarePackage["DEFDAT`", {"Dataset"}];' G" I7 C+ E$ H
Dataset[Dataset -> B88];
2 B2 T3 v& j/ ^" ^, M$ H1 n" \; u& W5 P" v1 q: M: q3 T: V
/ I/ Z, @6 p5 Z* a3 D. S6 D, V/ \2 S6 f
  j! {/ W- c' K, C+ j5 ^' I: A8 Q
2 Y1 @1 s- y$ ^6 _
3 _6 [9 k6 i3 F; n4 H/ n
另一个相关的“DEFDAT”:
8 E, {" W/ Q- q; o# Q(* Name: DEFDAT`
0 k5 n% [2 K2 x, Apackage of PET: Petrological Elementary Tools
; n( h; E/ n: t2 L$ y! nComputers & Geoscience 24:219-235 *)( Q$ Q2 w( `2 U: b* e

5 K9 n0 t) _" p; n8 G$ @7 f(* Summary: this package declares various PET-functions *). |5 z% G0 m7 [: C& F5 B
/ R4 S8 `1 G" }, Z, A4 i! F
(* Author: Edgar Dachs, Department of Mineralogy! `) T" w4 M# j  z" g! U0 X
University of Salzburg, Austria& t# g0 |7 b9 z  f3 Z9 r* d( ?# y1 v
email: edgar.dachs@sbg.ac.at; c" w$ ~3 t- E# s
last update: 11-2002 *): L5 {+ G  f8 L3 `0 D8 S1 C

# b% a" C7 V! ]9 u) T% q4 lBeginPackage["DEFDAT`"]8 J) G! I/ k4 o1 _
$ v7 T4 `9 P! H; G3 X0 @! |
Dataset::usage = "Dataset[Dataset-> ...] selects the thermodynamic dataset to be used.\n\n6 ~3 H4 x: X# G2 c) U. X
The following data sets are available, loaded with:\n\n
1 j' O; [: e+ W9 JBerman (1988) J Petrol 29:445-522 Dataset[Dataset -> B88]\n2 L* r& w+ q# {$ a; ^' L  X$ j
Holland & Powell (1998) J metam Geol 16:309-343 Dataset[Dataset -> HP31], or\n
' ]! ~5 |( |7 O. b$ ~$ Z7 bDataset[Dataset -> HP32]\n 7 ^9 k7 R4 ?3 D# B
Gottschalk (1997) Eur J Mineral 9:175-223 Dataset[Dataset -> G97]\n\n
2 s5 g8 Z% U4 |  B, G9 f: ?- ^See G::usage for more details.\n
+ g4 e- ^# I9 L\"31\" or \"32\" following \"HP\" indicates that the thermodynamic data have been\n
; }7 y" F) b% m- Zconverted from THERMOCALC-versions 3.1 or 3.2 of Holland & Powell respectively.\n
' }! j2 h5 b7 A6 Q3 x  o5 }When you start PET, a subdirectory \"/work\" is created by default, from which all user-files\n
- _( g4 e5 |8 E9 G7 ^6 a7 f(e.g. mineralchemical data files) are read and all files produced by PET are written to.\n
8 D8 f" s" S" C/ uTo create a new subdirectory for that purpose, you can use the option:\n
( D& D! ~7 l, r( V" }WorkDirectory -> \"/directory_name\"\n) ^' z, @# Q3 n+ z) A& Z- E
Example: Dataset[Dataset -> B88, WorkDirectory -> \"sample_xy\"]\n. _$ C6 l$ Q/ A/ P- [
This loads PET with the Berman data set and reads/writes all user files from/to the\n
+ }* P" R8 K, B. R- }* csubdirectory named \"sample_xy\".\n% N& @8 R. j: l& f/ Z, }6 @
Called from: User.\n
, [. [4 I( ?- L9 Y& a& ?9 s# aPackage name: DEFDAT.m\n
6 h( r6 U" P3 b5 ]PET: Petrological Elementary Tools, (c) Edgar Dachs."  q" O9 Z$ U, J# j
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-10-10 04:53 , Processed in 1.619149 second(s), 61 queries .

回顶部