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

HSC Chemistry 5.

1 add-in functions in MS Excel 2000


Examples
Functions Return Values
General Return Value
UNITS(T;E) #NAME?
BAL(Equation) #NAME?
SPECIES(DBNo,Position) #NAME?
Species Return Value
H(Species;T) #NAME?
HKG(Species;T) #NAME?
HNM3 or HCM(Species;T) #NAME?
HLAT(Species;T) #NAME?
S(Species;T) #NAME?
CP(Species;T) #NAME?
G(Species;T) #NAME?
Reaction equation Return Value
H(Equation;T) #NAME?
HKG(Equation;T) #NAME?
S(Equation;T) #NAME?
CP(Equation;T) #NAME?
G(Equation;T) #NAME?
K(Equation;T) #NAME?
Iteration (reverse) Return Value
TATH(Species;H) #NAME?
TATHKG(Species;H) #NAME?
TATHNM3 or TATHCM(Species;H) #NAME?
TATHLAT(Species;H) #NAME?
TATS(Species;S) #NAME?
TATCP(Species;CP) #NAME?
TATG(Species;G) #NAME?
Stream/Flow Return Value
STREAMH(Species;Amount;T) #NAME?
FLOWH(Species;Amount;T)
STREAMHKG(Species;Amount;T) #NAME?
FLOWHKG(Species;Amount;T)
STREAMHNM3(Species;Amount;T) #NAME?
FLOWHNM3(Species;Amount;T)
STREAMHLAT(Species;Amount;T) #NAME?
FLOWHLAT(Species;Amount;T)
STREAMS(Species;Amount;T) #NAME?
FLOWS(Species;Amount;T)
STREAMCP(Species;Amount;T) #NAME?
FLOWCP(Species;Amount;T)
STREAMG(Species;Amount;T) #NAME?
FLOWG(Species;Amount;T)
DensityA(Species;Amount;T) #NAME?
Densitykg(Species;Amount) #NAME?
DensityNm3(Species;Amount) #NAME?
Stream/Flow iteration (reverse) Return Value
STREAMTH(Species;Amount;H;Tmin;TMax) #NAME?
FLOWTH(Species;Amount;H;Tmin;TMax)
STREAMTHKG(Species;Amount;H;TMin;TMax) #NAME?
FLOWTHKG(Species;Amount;H;Tmin;TMax)
STREAMTHNM3(Species;Amount;H;Tmin;TMax) #NAME?
FLOWTHNM3(Species;Amount;H;Tmin;TMax)
STREAMTHLAT(Species;Amount;H;Tmin;TMax) #NAME?
FLOWTHLAT(Species;Amount;H;Tmin;TMax)
STREAMTS(Species;Amount;S;Tmin;TMax) #NAME?
FLOWTS(Species;Amount;S;Tmin;TMax)
STREAMTCP(Species;Amount;CP;Tmin;TMax) #NAME?
FLOWTH(Species;Amount;H;Tmin;TMax)
STREAMTG(Species;Amount;G;Tmin;TMax) #NAME?
FLOWTG(Species;Amount;G;Tmin;TMax)
Temp. independent Return Value
STRUCT(Species) #NAME?
CHNAME(Species) #NAME?
CONAME(Species) #NAME?
CAN(Species) #NAME?
MW(Species) #NAME?
DE(Species) #NAME?
MP(Species) #NAME?
BP(Species) #NAME?
PHASE(Species) #NAME?
RGBCOLOR(Species) #NAME?
REF(Species) #NAME?
REL(Species) #NAME?
Percentage Return Value
MOLP(Species1;Species2) #NAME?
WTP(Species1;Species2) #NAME?
CP-function related Return Value
CPFUNCTION(Species) #NAME?
CPA(Species) #NAME?
CPB(Species) #NAME?
CPC(Species) #NAME?
CPD(Species) #NAME?
TMIN(Species) #NAME?
TMAX(Species) #NAME?
Equilibrium Calculations AddIn: StreamEQ Array Formula
Note: = Phase name flag !
Temperature
Pressure
SPECIES: Input
PHASE 1: 25
CO(g) 0
CO2(g)
N(g)
N2(g) 3.02
NO(g)
N2O3(g)
N2O4(g)
N2O5(g)
O2(g) 0.8
PHASE 2: 25
C 1
Red values are argument (input) values.
Arguments
Argument 1 Arg. 2 Arg. 3 Arg. 4 Arg. 5
C MJ
H2(g)+O2(g)=H2O(g)
2 200
Argument 1 Arg. 2 Arg. 3 Arg. 4 Arg. 5
CO2(g) 100
FeS 100
N2(g) 100
H2O(l) 25
H2O(l) 45435
CH4(a) 100
He(g) 100
Argument 1 Arg. 2 Arg. 3 Arg. 4 Arg. 5
2H2(g) + O2(g) = 2H2O(g) 100
2H2(g) + O2(g) = 2H2O(g) 100
2H2(g) + O2(g) = 2H2O(g) 100
2H2(g) + O2(g) = 2H2O(g) 100
2H2(g) + O2(g) = 2H2O(g) 100
2H2(g) + O2(g) = 2H2O(g) 100
Argument 1 Arg. 2 Arg. 3 Arg. 4 Arg. 5
CO2(g) -93.35
FeS -0.26
N2(g) 0.02
H2O(l) 0.00
H2O(l) 20.77
CH4(a) 49.04
He(g) -11.29
Argument 1 Arg. 2 Arg. 3 Arg. 4 Arg. 5
Fe 1 100
Cu 1
Zn 1
Cu(+2a) 21.85 100
Fe(+2a) 6.72
Zn(+2a) 2
N2(g) 17.78 100
O2(g) 4.79
Ar(g) 0.23
Cu2S 1 100
FeS 1
ZnS 1
N2(g) 0.78 100
O2(g) 0.21
Ar(g) 0.01
N2(g) 0.78 100
O2(g) 0.21
Ar(g) 0.01
N2(g) 0.78 100
O2(g) 0.21
Ar(g) 0.01
NaCl 0.2 50
FeSO4 0.1
NaCl 0.2
FeSO4 0.1
N2(g) 1
SO2(g) 2
Argument 1 Arg. 2 Arg. 3 Arg. 4 Arg. 5
Fe 1 #NAME? 0 1000
Cu 1
Zn 1
Cu(+2a) 21.85 #NAME? 0 1000
Fe(+2a) 6.72
Zn(+2a) 2
N2(g) 17.779049 #NAME? 0 1000
O2(g) 4.786145
Ar(g) 0.227884
Cu2S 1 #NAME? 0 1000
FeS 1
ZnS 1
N2(g) 0.78 #NAME? 0 1000
O2(g) 0.21
Ar(g) 0.01
N2(g) 0.78 #NAME? 0 1000
O2(g) 0.21
Ar(g) 0.01
N2(g) 0.78 #NAME? 0 1000
O2(g) 0.21
Ar(g) 0.01
Argument 1 Arg. 2 Arg. 3 Arg. 4 Arg. 5
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 Arg. 2 Arg. 3 Arg. 4 Arg. 5
ZnO ZnO*Fe2O3
ZnO ZnO*Fe2O3
Argument 1 Arg. 2 Arg. 3 Arg. 4 Arg. 5
H2O(l)
H2O(l)
H2O(l)
H2O(l)
H2O(l)
H2O(l)
H2O(l)
500 C
1 bar
Output
#NAME? C Edit an array formula:
#NAME? kmol 1. Select any Array Formula Cell
#NAME? kmol 2. Edit formula in Edit Bar
#NAME? kmol 3. Keep CTRL + SHIFT keys down and press ENTER
#NAME? kmol
#NAME? kmol
#NAME? kmol
#NAME? kmol
#NAME? kmol
#NAME? kmol
#NAME? C
#NAME? kmol
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
Density of mixture (kg/m3) (Note: Use only when needed, because may slow down calculation speed)
Arg. 2 = Amount g, kg or tons
Density of gas (kg/m3)
Arg. 2 = Amount in Nm3
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
3. Keep CTRL + SHIFT keys down and press ENTER

Вам также может понравиться