0% found this document useful (0 votes)
70 views2 pages

Can HYSYS Calculate Exergy

Uploaded by

Alex Romero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views2 pages

Can HYSYS Calculate Exergy

Uploaded by

Alex Romero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Can HYSYS calculate exergy?

Products: Aspen HYSYS


Last Updated: 03-Nov-2020
Versions: V14.5, V14.3, V14.2, V14.0, V12.1, V12.0, V11.0, V10.0
Article ID: 000089835
Primary Subject: Basis Environment/Thermodynamics
Converted from "109771_Default.txt"

Applicable Version(s):
Applies to HYSYS Versions 2.4.1 - Current

Problem Statement:
Can HYSYS calculate exergy?

Solution:
HYSYS does not include exergy flow in its default calculations. However, you can use the flexible
customization capability of HYSYS to incorporate exergy calculations into your flowsheet.

What HYSYS provides are the values of enthalpy and entropy at the specified states for pure substances or
mixtures. Since the calculation of exergy requires the specified reference state for each substance or mixture
involved, it is up to you to define those crucial reference states for your system, find the corresponding values
of enthalpy and entropy at those states, and then calculate exergy values based on its definition.

Properties like exergy lend themselves to being user variables.

Attached is a user variable (exergy.huv) which can act as proof of concept.

To calculate the exergy for each stream, the user var creates a duplicate fluid, and flashes it at the reference T
& P. Then it uses: Exergy = (H - Href) - Tref(S - Sref)

Of course this isn't entirely correct, but if you have a more accurate way to calculate exergy, feel free to edit
the user var.

To add this user variable to your case, save the attached .huv file to your hard drive. Then, from within
HYSYS, select: Simulation | Import and Export User Variables
Press the Select button to browse for the file, and press OK once you have found it. Select the variable in the
User Variables list and Press the Import button. The Exergy User Variable should be added to all streams in
your case by default. It can be viewed by opening the stream property view and looking on the User
Variables tab.
Note that you will have to force a recalculation of the flowsheet (all of the exergy values in the streams will
be <empty> until you do this).

IMPORTANT NOTE: THIS EXAMPLE IS PROVIDED PURELY AS A PROOF OF CONCEPT. TO


IMPLEMENT AN EXERGY CALCULATION FOR YOUR SYSTEM, THIS EXAMPLE WOULD
PROPERLY BE USED SOLELY AS A STARTING POINT.

Sub PostExecute()

On Error GoTo EarlyGrave


Tref = 25.0
Pref = 101.325
Set refFluid = ActiveObject.DuplicateFluid
isOK = refFluid.TPFlash(Tref, Pref)
If Not isOK = fsFlashOK GoTo EarlyGrave
H = ActiveObject.MassEnthalpyValue
H0 = refFluid.MassEnthalpyValue
S = ActiveObject.MassEntropyValue
S0 = refFluid.MassEntropyValue
m = ActiveObject.MassFlowValue
Exergy = (H- H0) - (Tref + 273.15) * (S - S0)
ActiveVariableWrapper.Variable.Value = m * Exergy
Exit Sub

EarlyGrave:

ActiveVariableWrapper.Variable.Erase

End Sub

Keywords:
exergy analysis, availability, user variable

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy