Вы находитесь на странице: 1из 9

HSC Chemistry 5.

1 add-in functions in MS Excel 2000


Examples
Functions
General
UNITS(T;E)
BAL(Equation)
SPECIES(DBNo,Position)
Species
H(Species;T)
HKG(Species;T)
HNM3 or HCM(Species;T)
HLAT(Species;T)
S(Species;T)
CP(Species;T)
G(Species;T)
Reaction equation
H(Equation;T)
HKG(Equation;T)
S(Equation;T)
CP(Equation;T)
G(Equation;T)
K(Equation;T)
Iteration (reverse)
TATH(Species;H)
TATHKG(Species;H)
TATHNM3 or TATHCM(Species;H)
TATHLAT(Species;H)
TATS(Species;S)
TATCP(Species;CP)
TATG(Species;G)
Stream/Flow
STREAMH(Species;Amount;T)
FLOWH(Species;Amount;T)

Return Values
Return Value
#ADDIN?
#ADDIN?
#ADDIN?
Return Value
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
Return Value
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
Return Value
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
Return Value
#ADDIN?

STREAMHKG(Species;Amount;T)
FLOWHKG(Species;Amount;T)

#ADDIN?

STREAMHNM3(Species;Amount;T)
FLOWHNM3(Species;Amount;T)

#ADDIN?

STREAMHLAT(Species;Amount;T)
FLOWHLAT(Species;Amount;T)

#ADDIN?

STREAMS(Species;Amount;T)
FLOWS(Species;Amount;T)

#ADDIN?

STREAMCP(Species;Amount;T)
FLOWCP(Species;Amount;T)

#ADDIN?

STREAMG(Species;Amount;T)
FLOWG(Species;Amount;T)

#ADDIN?

DensityA(Species;Amount;T)

Stream/Flow iteration (reverse)


STREAMTH(Species;Amount;H;Tmin;TMax)
FLOWTH(Species;Amount;H;Tmin;TMax)

#ADDIN?

Return Value
#ADDIN?

STREAMTHKG(Species;Amount;H;TMin;TMax)
FLOWTHKG(Species;Amount;H;Tmin;TMax)

#ADDIN?

STREAMTHNM3(Species;Amount;H;Tmin;TMax)
FLOWTHNM3(Species;Amount;H;Tmin;TMax)

#ADDIN?

STREAMTHLAT(Species;Amount;H;Tmin;TMax)
FLOWTHLAT(Species;Amount;H;Tmin;TMax)

#ADDIN?

STREAMTS(Species;Amount;S;Tmin;TMax)
FLOWTS(Species;Amount;S;Tmin;TMax)

#ADDIN?

STREAMTCP(Species;Amount;CP;Tmin;TMax)
FLOWTH(Species;Amount;H;Tmin;TMax)

#ADDIN?

STREAMTG(Species;Amount;G;Tmin;TMax)
FLOWTG(Species;Amount;G;Tmin;TMax)

#ADDIN?

Temp. independent
STRUCT(Species)
CHNAME(Species)
CONAME(Species)
CAN(Species)
MW(Species)
DE(Species)
MP(Species)
BP(Species)
PHASE(Species)
RGBCOLOR(Species)
REF(Species)
REL(Species)
Percentage
MOLP(Species1;Species2)
WTP(Species1;Species2)
CP-function related
CPFUNCTION(Species)
CPA(Species)
CPB(Species)
CPC(Species)
CPD(Species)
TMIN(Species)
TMAX(Species)

Return Value
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
Return Value
#ADDIN?
#ADDIN?
Return Value
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?

Equilibrium Calculations AddIn: StreamEQ Array Formula


Note: = Phase name flag !
Temperature

Pressure
SPECIES:
PHASE 1:
CO(g)
CO2(g)
N(g)
N2(g)
NO(g)
N2O3(g)
N2O4(g)
N2O5(g)
O2(g)
PHASE 2:
C

Input
25
0

3.02

0.8
25
1

Red values are argument (input) values.

Arguments
Argument 1
C
H2(g)+O2(g)=H2O(g)
2
Argument 1
CO2(g)
FeS
N2(g)
H2O(l)
H2O(l)
CH4(a)
He(g)
Argument 1
2H2(g) + O2(g) = 2H2O(g)
2H2(g) + O2(g) = 2H2O(g)
2H2(g) + O2(g) = 2H2O(g)
2H2(g) + O2(g) = 2H2O(g)
2H2(g) + O2(g) = 2H2O(g)
2H2(g) + O2(g) = 2H2O(g)
Argument 1
CO2(g)
FeS
N2(g)
H2O(l)
H2O(l)
CH4(a)
He(g)
Argument 1
Fe
Cu
Zn
Cu(+2a)
Fe(+2a)
Zn(+2a)
N2(g)
O2(g)
Ar(g)
Cu2S
FeS
ZnS
N2(g)
O2(g)
Ar(g)
N2(g)
O2(g)
Ar(g)
N2(g)
O2(g)
Ar(g)

Arg. 2
MJ
200
Arg. 2
100
100
100
25
45435
100
100
Arg. 2
100
100
100
100
100
100
Arg. 2
-93.35
-0.26
0.02
0.00
20.77
49.04
-11.29
Arg. 2
1
1
1
21.85
6.72
2
17.78
4.79
0.23
1
1
1
0.78
0.21
0.01
0.78
0.21
0.01
0.78
0.21
0.01

Arg. 3

Arg. 4

Arg. 5

Arg. 3

Arg. 4

Arg. 5

Arg. 3

Arg. 4

Arg. 5

Arg. 3

Arg. 4

Arg. 5

Arg. 3
100

Arg. 4

Arg. 5

100

100

100

100

100

100

NaCl
FeSO4
Argument 1
Fe
Cu
Zn
Cu(+2a)
Fe(+2a)
Zn(+2a)
N2(g)
O2(g)
Ar(g)
Cu2S
FeS
ZnS
N2(g)
O2(g)
Ar(g)
N2(g)
O2(g)
Ar(g)
N2(g)
O2(g)
Ar(g)
Argument 1
C3H8(a)
C3H8(a)
H2O(l)
H2O(l)
C4H12(a)
H2O(l)
H2O(l)
H2O(l)
C
H2O(l)
H2O(l)
H2O(l)
Argument 1
ZnO
ZnO
Argument 1

0.2
0.1

50

Arg. 2
1
1
1
21.85
6.72
2
17.779049
4.786145
0.227884
1
1
1
0.78
0.21
0.01
0.78
0.21
0.01
0.78
0.21
0.01
Arg. 2

Arg. 3
#ADDIN?

Arg. 4
0

Arg. 5
1000

#ADDIN?

1000

#ADDIN?

1000

#ADDIN?

1000

#ADDIN?

1000

#ADDIN?

1000

#ADDIN?

1000

Arg. 3

Arg. 4

Arg. 5

Arg. 2
ZnO*Fe2O3
ZnO*Fe2O3
Arg. 2
H2O(l)
H2O(l)
H2O(l)
H2O(l)
H2O(l)
H2O(l)
H2O(l)

Arg. 3

Arg. 4

Arg. 5

Arg. 3

Arg. 4

Arg. 5

1500 C

1
Output
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?
#ADDIN?

bar
C
mol
mol
mol
mol
mol
mol
mol
mol
mol
C
mol

Edit an array formula:


1. Select any Array Formula Cell
2. Edit formula in Edit Bar
3. Keep CTRL + SHIFT keys down and press ENTER

Descriptions (Return values)


Description (Return value):
Changes the temperature and energy units
Balanced reaction equation
Species formula in given database and record number
Description (Return value):
Enthalpy (per kmol) of species at given temperature
Enthalpy (per kg) of species at given temperature
Enthalpy (per Nm) of species at given temperature
Enthalpy excluding phase transformations (per mol) of species at given temperature
Entropy (per Mmol) of species at given temperature
Heat capacity (per Mmol) of species at given temperature
Gibbs energy (per kmol) of species at given temperature
Description (Return value):
Enthalpy difference (per kmol) of reaction equation at given temperature.
Enthalpy difference (per kg) of reaction equation at given temperature
Entropy difference (per Mmol) of reaction equation at given temperature
Heat capacity difference (per Mmol) of reaction equation at given temperature
Gibbs energy difference (per kmol) of reaction equation at given temperature
Equilibrium constant of reaction equation at given temperature
Description (Return value):
Temperature of species at given enthalpy (per kmol)
Temperature of species at given enthalpy (per kg)
Temperature of species at given enthalpy (per Nm3)
Temperature of species (per kmol) at given enthalpy excluding phase transformations
Temperature of species at given entropy (per Mmol).
Temperature of species at given heat capacity (per Mmol)
Temperature of species at given Gibbs energy (per kmol)
Description (Return value):
Enthalpy of the specified stream/flow (species in kmol) at given temperature

Enthalpy of the specified stream/flow (species in kg) at given temperature

Enthalpy of the specified stream/flow (species in Nm3) at given temperature

Enthalpy excluding phase transformations of the specified stream/flow (species in kmol) at given temperature

Entropy of specified stream/flow (species in Mmol) at given temperature

Heat capacity of specified stream/flow (species in Mmol) at given temperature

Gibbs energy of specified stream/flow (species in kmol) at given temperature

Density of aqueous solution (kg/m3)


Arg. 2 = Weight fractions, max = 1, Arg. 3 = temperature C
Description (Return value):
Temperature of stream/flow (species in kmol) at given enthalpy between Tmin and Tmax
Outside range returns #VALUE!
Temperature of stream/flow (species in kg) at given enthalpy between Tmin and Tmax
Outside range returns #VALUE!
Temperature of stream/flow (species in Nm3) at given enthalpy between Tmin and Tmax
Outside range returns #VALUE!
Temperature of stream/flow (species in kmol) at given enthalpy excluding phase transformations between Tmin and Tmax
Outside range returns #VALUE!
Temperature of stream/flow (species in Mmol) at given entropy between Tmin and Tmax
Outside range returns #VALUE!
Temperature of stream/flow (species in Mmol) at given heat capacity between Tmin and Tmax
Outside range returns #VALUE!
Temperature of stream/flow (species in kmol) at given gibbs energy between Tmin and Tmax
Outside range returns #VALUE!
Description (Return value):
Structural formula of given species
Chemical name of given species
Common name of given species
Chemical abstract number of given species
Molecular weight of given species [kg/kmol]
Density of given species [kg/l]
Melting point of given species
Boiling point of given species
Phase type of given species
RGB color code of given species
Reference of given species
Reliability class of given species
Description (Return value):
Species 1 content in Species 2 in mol-%
Species 1 content in Species 2 in wt-%
Description (Return value):
Heat capacity (Cp) polynomial function of given species
A coefficient in Cp-function of given species
B coefficient in Cp-function of given species
C coefficient in Cp-function of given species
D coefficient in Cp-function of given species
Lower limit of Cp-function temperature range
Upper limit of Cp-function temperature range

Formula Cell

HIFT keys down and press ENTER