## Objects

## Main.Objects History

Hide minor edits - Show changes to markup

Python GEKKO has equation functions and pre-built objects. Some of the pre-built objects and equation functions are:

Python GEKKO has equation functions and pre-built objects. GEKKO has objects in the Deep Learning (Brain) and Thermo & Flowsheet Chemical libraries. Some of the other pre-built objects and equation functions are:

**if3(cond,x1,x2)**switch between x1 (cond<0) and x2 (cond>=0)

Thermo objects access data from the underlying thermodynamic database. There are over 1700 compounds accessible in the database. To reduce the size of the APMonitor executable, only some of the more common compounds are currently incorporated. Additional compounds can be easily added but require a rebuild of the executable.

Thermo objects access data from the underlying thermodynamic database. There are many compounds accessible in the database. To reduce the size of the APMonitor executable, only some of the more common compounds are currently incorporated. Additional compounds can be easily added but require a rebuild of the executable.

**pwl**piece-wise linear function

**vsum(x)**vertical sum of a single variable in the data direction

**Array(type,size)**array of GEKKO objects

In Python GEKKO, objects are defined as components of the model as *m.object_name()*.

In Python GEKKO, objects are defined as components of the model such as *m.abs3()*.

(:sourceend:)

**Python GEKKO Example Usage (Array, abs3, sum)**

(:source lang=python:) from gekko import GEKKO import numpy as np m = GEKKO() x1 = m.Param(-2) x2 = m.Param(-1) x3 = np.linspace(0,1,6) x4 = m.Array(m.Param,3) y4 = m.Array(m.Var,3) for i in range(3):

x4[i].value=-0.2 y4[i] = m.abs3(x4[i])

- create variable

y = m.Var()

- y = 0.6 = -2 -1 + 3 + 0.6

m.Equation(y == sum([x1,x2]) + sum(x3) + sum(y4)) m.solve() # solve print('x1: ' + str(x1.value)) print('x2: ' + str(x2.value)) print('y: ' + str(y.value))

**sum**summation of elements in a list or numpy array

**abs2(x)**absolute value with MPCC (continuous first/second deriv)

**abs2(x)**absolute value with MPCC

**max2(x1,x2)**maximum value with MPCC**max3(x1,x2)**maximum value with binary variable for switch**min2(x1,x2)**minimum value with MPCC**min3(x1,x2)**minimum value with binary variable for switch

**sign2(x)**signum operator with MPCC (continuous first/second deriv)

**sign2(x)**signum operator with MPCC

**sign2(x)**signum operator with MPCC (continuous first/second deriv)**sign3(x)**signum operator with binary variable for switch

In Python GEKKO, some of the objects and functions are:

Python GEKKO has equation functions and pre-built objects. Some of the pre-built objects and equation functions are:

(:source lang=python:)

(:sourceend:)

(:table border=1 width=100% align=left bgcolor=#EEEEEE cellspacing=0:) (:cellnr:)

(:source lang=python:)

(:tableend:)

(:sourceend:)

Some pre-built objects are available in the APMonitor language to facilitate flowsheets of processing equipment while others are to simplify model building.

Objects are available in Python GEKKO and the APMonitor language to simplify the description of complex models.

- abs(x) absolute value |x|
- abs2(x) absolute value with MPCC (continuous first/second deriv)
- abs3(x) absolute value with binary variable for switch
- acos(x) inverse cosine, cos^-1(x)
- acosh(x) inverse hyperbolic cosine, cosh^-1(x)
- arx auto-regressive exogenous input (time series) model
- asin(x) inverse sine, sin^-1(x)
- asinh(x) inverse hyperbolic sine, sinh^-1(x)
- atan(x) inverse tangent, tan^-1(x)
- atanh(x) inverse hyperbolic tangent, tanh^-1(x)
- bspline bspline for 2D data
- cos(x) cosine
- cspline cubic spline for 1D data
- erf(x) error function
- erfc(x) complementary error function
- exp(x) e^x
- log(x) log_e (x), natural log
- log10(x) log_10 (x), log base 10
- periodic periodic (initial=final) for dynamic problems
- sin(x) sine
- sinh(x) hyperbolic sine
- sqrt(x) square root
- state_space continuous/discrete and dense/sparse state space
- tan(x) tangent
- tanh(x) hyperbolic tangent

**Python GEKKO Example (abs3)**

**abs(x)**absolute value |x|**abs2(x)**absolute value with MPCC (continuous first/second deriv)**abs3(x)**absolute value with binary variable for switch**acos(x)**inverse cosine, cos^-1(x)**acosh(x)**inverse hyperbolic cosine, cosh^-1(x)**arx**auto-regressive exogenous input (time series) model**asin(x)**inverse sine, sin^-1(x)**asinh(x)**inverse hyperbolic sine, sinh^-1(x)**atan(x)**inverse tangent, tan^-1(x)**atanh(x)**inverse hyperbolic tangent, tanh^-1(x)**bspline**bspline for 2D data**cos(x)**cosine**cspline**cubic spline for 1D data**erf(x)**error function**erfc(x)**complementary error function**exp(x)**e^x**log(x)**log_e (x), natural log**log10(x)**log_10 (x), log base 10**periodic**periodic (initial=final) for dynamic problems**sin(x)**sine**sinh(x)**hyperbolic sine**sqrt(x)**square root**state_space**continuous/discrete and dense/sparse state space**tan(x)**tangent**tanh(x)**hyperbolic tangent

**Python GEKKO Example Usage (abs3)**

In Python GEKKO, objects are defined as components of the model.

### Python GEKKO Object Library

In Python GEKKO, some of the objects and functions are:

- abs(x) absolute value |x|
- abs2(x) absolute value with MPCC (continuous first/second deriv)
- abs3(x) absolute value with binary variable for switch
- acos(x) inverse cosine, cos^-1(x)
- acosh(x) inverse hyperbolic cosine, cosh^-1(x)
- arx auto-regressive exogenous input (time series) model
- asin(x) inverse sine, sin^-1(x)
- asinh(x) inverse hyperbolic sine, sinh^-1(x)
- atan(x) inverse tangent, tan^-1(x)
- atanh(x) inverse hyperbolic tangent, tanh^-1(x)
- bspline bspline for 2D data
- cos(x) cosine
- cspline cubic spline for 1D data
- erf(x) error function
- erfc(x) complementary error function
- exp(x) e^x
- log(x) log_e (x), natural log
- log10(x) log_10 (x), log base 10
- periodic periodic (initial=final) for dynamic problems
- sin(x) sine
- sinh(x) hyperbolic sine
- sqrt(x) square root
- state_space continuous/discrete and dense/sparse state space
- tan(x) tangent
- tanh(x) hyperbolic tangent

**Python GEKKO Example (abs3)**

In Python GEKKO, objects are defined as components of the model such as *m.abs3()*.

### APMonitor Object Library

### Python GEKKO Object Library

In Python GEKKO, some of the objects and functions are:

- abs(x) absolute value |x|
- abs2(x) absolute value with MPCC (continuous first/second deriv)
- abs3(x) absolute value with binary variable for switch
- acos(x) inverse cosine, cos^-1(x)
- acosh(x) inverse hyperbolic cosine, cosh^-1(x)
- arx auto-regressive exogenous input (time series) model
- asin(x) inverse sine, sin^-1(x)
- asinh(x) inverse hyperbolic sine, sinh^-1(x)
- atan(x) inverse tangent, tan^-1(x)
- atanh(x) inverse hyperbolic tangent, tanh^-1(x)
- bspline bspline for 2D data
- cos(x) cosine
- cspline cubic spline for 1D data
- erf(x) error function
- erfc(x) complementary error function
- exp(x) e^x
- log(x) log_e (x), natural log
- log10(x) log_10 (x), log base 10
- periodic periodic (initial=final) for dynamic problems
- sin(x) sine
- sinh(x) hyperbolic sine
- sqrt(x) square root
- state_space continuous/discrete and dense/sparse state space
- tan(x) tangent
- tanh(x) hyperbolic tangent

### APMonitor Object Library

In Python GEKKO, some of the objects are:

- abs2 = absolute value with MPCC (continuous first/second deriv)
- abs3 = absolute value with binary variable for switch
- arx = auto-regressive exogenous input (time series) model
- bspline = bspline for 2D data
- cspline = cubic spline for 1D data
- periodic = periodic (initial=final) for dynamic problems
- state_space = continuous/discrete and dense/sparse state space

In Python GEKKO, objects are defined as components of the model.

(:source lang=python:) from gekko import GEKKO

- define new GEKKO model

m = GEKKO()

- variable

x = m.Var(-0.5)

- calculate y=abs(x) with abs3

y = m.abs3(x)

- solve with APOPT (MINLP solver)

m.solve()

- print solution

print('x: ' + str(x.value)) print('y: ' + str(y.value)) (:sourceend:)

### Object Library

### Python GEKKO Object Library

In Python GEKKO, some of the objects and functions are:

- abs(x) absolute value |x|
- abs2(x) absolute value with MPCC (continuous first/second deriv)
- abs3(x) absolute value with binary variable for switch
- acos(x) inverse cosine, cos^-1(x)
- acosh(x) inverse hyperbolic cosine, cosh^-1(x)
- arx auto-regressive exogenous input (time series) model
- asin(x) inverse sine, sin^-1(x)
- asinh(x) inverse hyperbolic sine, sinh^-1(x)
- atan(x) inverse tangent, tan^-1(x)
- atanh(x) inverse hyperbolic tangent, tanh^-1(x)
- bspline bspline for 2D data
- cos(x) cosine
- cspline cubic spline for 1D data
- erf(x) error function
- erfc(x) complementary error function
- exp(x) e^x
- log(x) log_e (x), natural log
- log10(x) log_10 (x), log base 10
- periodic periodic (initial=final) for dynamic problems
- sin(x) sine
- sinh(x) hyperbolic sine
- sqrt(x) square root
- state_space continuous/discrete and dense/sparse state space
- tan(x) tangent
- tanh(x) hyperbolic tangent

### APMonitor Object Library

Pre-build objects are available in the APMonitor language to facilitate flowsheets of chemical processing equipment. Objects are defined in the *Objects ... End Objects* section of the model file. New instances of an object are defined by declaring a new object name equal to the parent object type.

Some pre-built objects are available in the APMonitor language to facilitate flowsheets of processing equipment while others are to simplify model building.

In Python GEKKO, some of the objects are:

- abs2 = absolute value with MPCC (continuous first/second deriv)
- abs3 = absolute value with binary variable for switch
- arx = auto-regressive exogenous input (time series) model
- bspline = bspline for 2D data
- cspline = cubic spline for 1D data
- periodic = periodic (initial=final) for dynamic problems
- state_space = continuous/discrete and dense/sparse state space

In APMonitor, objects are defined in the *Objects ... End Objects* section of the model file. New instances of an object are defined by declaring a new object name equal to the parent object type.

- ARX, Linear Time Invariant Model

- VSum - Summation of a single variable in data dimension

! example use of ABS as MPEC

c = abs

a = abs

Connections x = a.x y = a.y End Connections Parameters x = -5 End Parameters Variables y End Variables

Objects c = abs End Objects

The object library consists of chemical processing equipment such as feed streams, reactors, pumps, mixers, flash columns, vessels, and distillation stages. It also includes other elements that support distributed control system emulation such as a LAG and a PID controller.

The object library consists of common mathematical functions and chemical processing equipment such as feed streams, reactors, pumps, mixers, flash columns, vessels, and distillation stages. It also includes other elements that support distributed control system emulation such as a LAG and a PID controller.

## Objects

(:table border=1 width=80%:)

(:table border=1 width=100%:)

(:table border=1 width=80%:)

(:table border=1 width=100%:)

(:table border=1 width=50% align=left bgcolor=#EEEEEE cellspacing=0:)

(:table border=1 width=100% align=left bgcolor=#EEEEEE cellspacing=0:)

- LTI - Linear time-invariant, discrete or continuous

- PWL - Piece-wise Linear

- Abs - Absolute value (MPEC)

- Max - Maximum value (MPEC)
- Min - Minimum value (MPEC)

- Periodic - Periodic boundary condition

- Sign - Number Sign (-1 or 1)

(:tableend:)

(:tableend:)

## Example - Mixer Application

- Solve Mixer Example Problem

- Sum - Summation of multiple parameters and/or variables

- Table - Data table that creates parameters or initializes variables

(:cellnr:) thermo_sh (:cell:) Solid Enthalpy (:cell:) J/kmol (:cellnr:) thermo_lh (:cell:) Liq Enthalpy (:cell:) J/kmol (:cellnr:) thermo_vh (:cell:) Vap Enthalpy (:cell:) J/kmol

- [https://apmonitor.com/online/view_pass.php?f=min.apm | Solve MPEC form of the MIN function]

- Solve MPEC form of the MIN function
- []

## Example - MIN Function

- [https://apmonitor.com/online/view_pass.php?f=min.apm | Solve MPEC form of the MIN function]

- Abs - Absolute value (MPEC)

- Fabs - Absolute value
- Fmax - Maximum value
- Fmin - Minimum value
- Fsign - Number Sign (-1 or 1)

- Max - Maximum value (MPEC)
- Min - Minimum value (MPEC)

- Sign - Number Sign (-1 or 1)

hydrogen

hydrogen

distill.feed.* = distill.feed_lag.inlet.* distill.feed_lag.outlet.* = distill.feed_cooler.inlet.* distill.feed_cooler.outlet.* = distill.feed_flash.inlet.* distill.feed_flash.outlet_vap.* = distill.vap_mixer.inlet1.* distill.feed_flash.outlet_liq.* = distill.liq_mixer.inlet1.*

feed.* = feed_lag.inlet.* feed_lag.outlet.* = feed_cooler.inlet.* feed_cooler.outlet.* = feed_flash.inlet.* feed_flash.outlet_vap.* = vap_mixer.inlet[1].* feed_flash.outlet_liq.* = liq_mixer.inlet[1].*

distill.liq_mixer.inlet[2].* = distill.stage[1].l_out.* distill.liq_mixer.outlet.* = distill.stage[2].l_in.* distill.stage[2:7].l_out.* = distill.stage[3:8].l_in.* distill.stage[8].l_out.* = distill.sump.inlet.*

liq_mixer.inlet[2].* = stage[1].l_out.* liq_mixer.outlet.* = stage[2].l_in.* stage[2:7].l_out.* = stage[3:8].l_in.* stage[8].l_out.* = sump.inlet.*

distill.sump.outlet.* = distill.reboiler.inlet.* distill.reboiler.outlet.* = distill.reboiler_flash.inlet.*

sump.outlet.* = reboiler.inlet.* reboiler.outlet.* = reboiler_flash.inlet.*

distill.reboiler_flash.outlet_vap.* = distill.stage[8].v_in.* distill.stage[3:8].v_out.* = distill.stage[2:7].v_in.* distill.vap_mixer.inlet[2].* = distill.stage[2].v_out.* distill.vap_mixer.outlet.* = distill.stage[1].v_in.*

reboiler_flash.outlet_vap.* = stage[8].v_in.* stage[3:8].v_out.* = stage[2:7].v_in.* vap_mixer.inlet[2].* = stage[2].v_out.* vap_mixer.outlet.* = stage[1].v_in.*

distill.stage[1].v_out.* = distill.condenser.inlet.* distill.condenser.outlet.* = distill.drum.inlet.* distill.drum.outlet_liq.* = distill.reflux.inlet.* distill.reflux.outlet[2].* = distill.stage[1].l_in.*

stage[1].v_out.* = condenser.inlet.* condenser.outlet.* = drum.inlet.* drum.outlet_liq.* = reflux.inlet.* reflux.outlet[2].* = stage[1].l_in.*

distill.sump.reserve.* = distill.sump_mass.acc.* distill.feed.* = distill.feed_massflow.stream.* distill.drum.outlet_vap.* = distill.cleu_massflow.stream.* distill.reboiler_flash.outlet_liq.* = distill.btms_massflow.stream.*

sump.reserve.* = sump_mass.acc.* feed.* = feed_massflow.stream.* drum.outlet_vap.* = cleu_massflow.stream.* reboiler_flash.outlet_liq.* = btms_massflow.stream.*

strm_p = distill.stage[1].v_out.p strm_p = distill.stage[2:8].l_out.p strm_p = distill.stage[3:8].v_out.p

strm_p = stage[1].v_out.p strm_p = stage[2:8].l_out.p strm_p = stage[3:8].v_out.p

fd_p = distill.stage[1:8].l_res.p

fd_p = stage[1:8].l_res.p

fd_t = distill.feed.t fd_p = distill.feed.p fd_c2h4 = distill.feed.x[1] fd_c3h6 = distill.feed.x[2] fd_c3h8 = distill.feed.x[3] fd_h2 = distill.feed.x[4] fd_mdot = distill.feed_massflow.mdot fd_ndot = distill.feed.ndot

fd_t = feed.t fd_p = feed.p fd_c2h4 = feed.x[1] fd_c3h6 = feed.x[2] fd_c3h8 = feed.x[3] fd_h2 = feed.x[4] fd_mdot = feed_massflow.mdot fd_ndot = feed.ndot

- Info_SVM - Measured State Variable
- Info_CVM - Measured Controlled Variable

(:table border=1 width=100%:)

Temperature independent property data do not vary with temperature. They are defined as constants for each of the species declared in the Compounds ... End Compounds section of the model. If the Compounds ... End Compounds section is missing, all available compounds are included in the model.

(:table border=1 width=80%:)

#### Temperature Dependent Property Data

#### Temperature Dependent Property Data

(:table border=1 width=100%:)

(:table border=1 width=80%:)

#### Temperature Dependent Property Data

Thermo objects access data from the underlying thermodynamic database. There are over 1700 compounds accessible in the database. To reduce the size of the APMonitor executable, only some of the more common compounds are currently incorporated. Additional compounds can be easily added but require a rebuild of the executable.

#### Temperature Independent Property Data

The temperature dependent thermo objects produce values based on a specified temperature. When a temperature dependent property object is declared, a new temperature variable will be created. This variable can be adjusted or linked to an existing temperature of interest.

- Thermo - Thermodynamic properties

- Thermo_* - Thermodynamic properties (* see below for specific properties)

#### Temperature Dependent Property Data

Temperature independent properties

(:cellnr:) mw

(:cellnr:) thermo_mw

(:cellnr:) tc

(:cellnr:) thermo_tc

(:cellnr:) pc

(:cellnr:) thermo_pc

(:cellnr:) vc

(:cellnr:) thermo_vc

(:cellnr:) ccf

(:cellnr:) thermo_ccf

(:cellnr:) mp

(:cellnr:) thermo_mp

(:cellnr:) tpt

(:cellnr:) thermo_tpt

(:cellnr:) tpp

(:cellnr:) thermo_tpp

(:cellnr:) nbp

(:cellnr:) thermo_nbp

(:cellnr:) lmv

(:cellnr:) thermo_lmv

(:cellnr:) ighf

(:cellnr:) thermo_ighf

(:cellnr:) iggf

(:cellnr:) thermo_iggf

(:cellnr:) igae

(:cellnr:) thermo_igae

(:cellnr:) shf

(:cellnr:) thermo_shf

(:cellnr:) sgf

(:cellnr:) thermo_sgf

(:cellnr:) sae

(:cellnr:) thermo_sae

(:cellnr:) hfmp

(:cellnr:) thermo_hfmp

(:cellnr:) snhc

(:cellnr:) thermo_snhc

(:cellnr:) af

(:cellnr:) thermo_af

(:cellnr:) rg

(:cellnr:) thermo_rg

(:cellnr:) sp

(:cellnr:) thermo_sp

(:cellnr:) dm

(:cellnr:) thermo_dm

(:cellnr:) r

(:cellnr:) thermo_r

(:cellnr:) q

(:cellnr:) thermo_q

(:cellnr:) ri

(:cellnr:) thermo_ri

(:cellnr:) fp

(:cellnr:) thermo_fp

(:cellnr:) lfl

(:cellnr:) thermo_lfl

(:cellnr:) ufl

(:cellnr:) thermo_ufl

(:cellnr:) lflt

(:cellnr:) thermo_lflt

(:cellnr:) uflt

(:cellnr:) thermo_uflt

(:cellnr:) ait

(:cellnr:) thermo_ait

Temperature Dependent Property Data

(:tableend:)

#### Temperature Dependent Property Data

(:cellnr:) sd

(:cellnr:) thermo_sd

(:cellnr:) ld

(:cellnr:) thermo_ld

(:cellnr:) svp

(:cellnr:) thermo_svp

(:cellnr:) lvp

(:cellnr:) thermo_lvp

(:cellnr:) hvap

(:cellnr:) thermo_hvap

(:cellnr:) scp

(:cellnr:) thermo_scp

(:cellnr:) lcp

(:cellnr:) thermo_lcp

(:cellnr:) igcp

(:cellnr:) thermo_igcp

(:cellnr:) svc

(:cellnr:) thermo_svc

(:cellnr:) lv

(:cellnr:) thermo_lv

(:cellnr:) vv

(:cellnr:) thermo_vv

(:cellnr:) sk

(:cellnr:) thermo_sk

(:cellnr:) lk

(:cellnr:) thermo_lk

(:cellnr:) vk

(:cellnr:) thermo_vk

(:cellnr:) st

(:cellnr:) thermo_st

Temperature independent properties

Temperature independent properties

(:cellnr:) mw (:cell:) Molecular Weight (:cell:) kg/kmol (:cellnr:) tc (:cell:) Critical Temperature (:cell:) K (:cellnr:) pc (:cell:) Critical Pressure (:cell:) Pa (:cellnr:) vc (:cell:) Critical Volume (:cell:) m^3/kmol (:cellnr:) ccf (:cell:) Crit Compress Factor (:cell:) unitless (:cellnr:) mp (:cell:) Melting Point (:cell:) K (:cellnr:) tpt (:cell:) Triple Pt Temperature (:cell:) K (:cellnr:) tpp (:cell:) Triple Pt Pressure (:cell:) Pa (:cellnr:) nbp (:cell:) Normal Boiling Point (:cell:) K (:cellnr:) lmv (:cell:) Liq Molar Volume (:cell:) m^3/kmol (:cellnr:) ighf (:cell:) IG Heat of Formation (:cell:) J/kmol (:cellnr:) iggf (:cell:) IG Gibbs of Formation (:cell:) J/kmol (:cellnr:) igae (:cell:) IG Absolute Entropy (:cell:) J/kmol*K (:cellnr:) shf (:cell:) Std Heat of Formation (:cell:) J/kmol (:cellnr:) sgf (:cell:) Std Gibbs of Formation (:cell:) J/kmol (:cellnr:) sae (:cell:) Std Absolute Entropy (:cell:) J/kmol*K (:cellnr:) hfmp (:cell:) Heat Fusion at Melt Pt (:cell:) J/kmol (:cellnr:) snhc (:cell:) Std Net Heat of Comb (:cell:) J/kmol (:cellnr:) af (:cell:) Acentric Factor (:cell:) unitless (:cellnr:) rg (:cell:) Radius of Gyration (:cell:) m (:cellnr:) sp (:cell:) Solubility Parameter (:cell:) (J/m^3)^0.5 (:cellnr:) dm (:cell:) Dipole Moment (:cell:) c*m (:cellnr:) r (:cell:) van der Waals Volume (:cell:) m^3/kmol (:cellnr:) q (:cell:) van der Waals Area (:cell:) m^2 (:cellnr:) ri (:cell:) Refractive Index (:cell:) unitless (:cellnr:) fp (:cell:) Flash Point (:cell:) K (:cellnr:) lfl (:cell:) Lower Flammability Limit (:cell:) K (:cellnr:) ufl (:cell:) Upper Flammability Limit (:cell:) K (:cellnr:) lflt (:cell:) Lower Flamm Limit Temp (:cell:) K (:cellnr:) uflt (:cell:) Upper Flamm Limit Temp (:cell:) K (:cellnr:) ait (:cell:) Auto Ignition Temp (:cell:) K

Temperature Dependent Property Data

(:cellnr:) mw (:cell:) Molecular Weight (:cell:) kg/kmol (:cellnr:) tc (:cell:) Critical Temperature (:cell:) K (:cellnr:) pc (:cell:) Critical Pressure (:cell:) Pa (:cellnr:) vc (:cell:) Critical Volume (:cell:) m^3/kmol (:cellnr:) ccf (:cell:) Crit Compress Factor (:cell:) unitless (:cellnr:) mp (:cell:) Melting Point (:cell:) K (:cellnr:) tpt (:cell:) Triple Pt Temperature (:cell:) K (:cellnr:) tpp (:cell:) Triple Pt Pressure (:cell:) Pa (:cellnr:) nbp (:cell:) Normal Boiling Point (:cell:) K (:cellnr:) lmv (:cell:) Liq Molar Volume (:cell:) m^3/kmol (:cellnr:) ighf (:cell:) IG Heat of Formation (:cell:) J/kmol (:cellnr:) iggf (:cell:) IG Gibbs of Formation (:cell:) J/kmol (:cellnr:) igae (:cell:) IG Absolute Entropy (:cell:) J/kmol*K (:cellnr:) shf (:cell:) Std Heat of Formation (:cell:) J/kmol (:cellnr:) sgf (:cell:) Std Gibbs of Formation (:cell:) J/kmol (:cellnr:) sae (:cell:) Std Absolute Entropy (:cell:) J/kmol*K (:cellnr:) hfmp (:cell:) Heat Fusion at Melt Pt (:cell:) J/kmol (:cellnr:) snhc (:cell:) Std Net Heat of Comb (:cell:) J/kmol (:cellnr:) af (:cell:) Acentric Factor (:cell:) unitless (:cellnr:) rg (:cell:) Radius of Gyration (:cell:) m (:cellnr:) sp (:cell:) Solubility Parameter (:cell:) (J/m^3)^0.5 (:cellnr:) dm (:cell:) Dipole Moment (:cell:) c*m (:cellnr:) r (:cell:) van der Waals Volume (:cell:) m^3/kmol (:cellnr:) q (:cell:) van der Waals Area (:cell:) m^2 (:cellnr:) ri (:cell:) Refractive Index (:cell:) unitless (:cellnr:) fp (:cell:) Flash Point (:cell:) K (:cellnr:) lfl (:cell:) Lower Flammability Limit (:cell:) K (:cellnr:) ufl (:cell:) Upper Flammability Limit (:cell:) K (:cellnr:) lflt (:cell:) Lower Flamm Limit Temp (:cell:) K (:cellnr:) uflt (:cell:) Upper Flamm Limit Temp (:cell:) K (:cellnr:) ait (:cell:) Auto Ignition Temp (:cell:) K

Temperature Dependent Property Data

(:cellnr:) sd (:cell:) Solid Density (:cell:) kmol/m^3 (:cellnr:) ld (:cell:) Liquid Density (:cell:) kmol/m^3 (:cellnr:) svp (:cell:) Solid Vapor Pressure (:cell:) Pa (:cellnr:) lvp (:cell:) Liquid Vapor Pressure (:cell:) Pa (:cellnr:) hvap (:cell:) Heat of Vaporization (:cell:) J/kmol (:cellnr:) scp (:cell:) Solid Heat Capacity (:cell:) J/kmol*K (:cellnr:) lcp (:cell:) Liquid Heat Capacity (:cell:) J/kmol*K (:cellnr:) igcp (:cell:) Ideal Gas Heat Capacity (:cell:) J/kmol*K (:cellnr:) svc (:cell:) Second Virial Coefficient (:cell:) m^3/kmol (:cellnr:) lv (:cell:) Liquid Viscosity (:cell:) Pa*s (:cellnr:) vv (:cell:) Vapor Viscosity (:cell:) Pa*s (:cellnr:) sk (:cell:) Solid Thermal Conductivity(:cell:) W/m*K (:cellnr:) lk (:cell:) Liq Thermal Conductivity (:cell:) W/m*K (:cellnr:) vk (:cell:) Vap Thermal Conductivity (:cell:) W/m*K (:cellnr:) st (:cell:) Surface Tension (:cell:) N/m

(:cellnr:) sd (:cell:) Solid Density (:cell:) kmol/m^3 (:cellnr:) ld (:cell:) Liquid Density (:cell:) kmol/m^3 (:cellnr:) svp (:cell:) Solid Vapor Pressure (:cell:) Pa (:cellnr:) lvp (:cell:) Liquid Vapor Pressure (:cell:) Pa (:cellnr:) hvap (:cell:) Heat of Vaporization (:cell:) J/kmol (:cellnr:) scp (:cell:) Solid Heat Capacity (:cell:) J/kmol*K (:cellnr:) lcp (:cell:) Liquid Heat Capacity (:cell:) J/kmol*K (:cellnr:) igcp (:cell:) Ideal Gas Heat Capacity (:cell:) J/kmol*K (:cellnr:) svc (:cell:) Second Virial Coefficient (:cell:) m^3/kmol (:cellnr:) lv (:cell:) Liquid Viscosity (:cell:) Pa*s (:cellnr:) vv (:cell:) Vapor Viscosity (:cell:) Pa*s (:cellnr:) sk (:cell:) Solid Thermal Conductivity (:cell:) W/m*K (:cellnr:) lk (:cell:) Liq Thermal Conductivity (:cell:) W/m*K (:cellnr:) vk (:cell:) Vap Thermal Conductivity (:cell:) W/m*K (:cellnr:) st (:cell:) Surface Tension (:cell:) N/m

### Thermo objects

Temperature independent properties

(:table border=1 width=100%:) (:cellnr:) mw (:cell:) Molecular Weight (:cell:) kg/kmol (:cellnr:) tc (:cell:) Critical Temperature (:cell:) K (:cellnr:) pc (:cell:) Critical Pressure (:cell:) Pa (:cellnr:) vc (:cell:) Critical Volume (:cell:) m^3/kmol (:cellnr:) ccf (:cell:) Crit Compress Factor (:cell:) unitless (:cellnr:) mp (:cell:) Melting Point (:cell:) K (:cellnr:) tpt (:cell:) Triple Pt Temperature (:cell:) K (:cellnr:) tpp (:cell:) Triple Pt Pressure (:cell:) Pa (:cellnr:) nbp (:cell:) Normal Boiling Point (:cell:) K (:cellnr:) lmv (:cell:) Liq Molar Volume (:cell:) m^3/kmol (:cellnr:) ighf (:cell:) IG Heat of Formation (:cell:) J/kmol (:cellnr:) iggf (:cell:) IG Gibbs of Formation (:cell:) J/kmol (:cellnr:) igae (:cell:) IG Absolute Entropy (:cell:) J/kmol*K (:cellnr:) shf (:cell:) Std Heat of Formation (:cell:) J/kmol (:cellnr:) sgf (:cell:) Std Gibbs of Formation (:cell:) J/kmol (:cellnr:) sae (:cell:) Std Absolute Entropy (:cell:) J/kmol*K (:cellnr:) hfmp (:cell:) Heat Fusion at Melt Pt (:cell:) J/kmol (:cellnr:) snhc (:cell:) Std Net Heat of Comb (:cell:) J/kmol (:cellnr:) af (:cell:) Acentric Factor (:cell:) unitless (:cellnr:) rg (:cell:) Radius of Gyration (:cell:) m (:cellnr:) sp (:cell:) Solubility Parameter (:cell:) (J/m^3)^0.5 (:cellnr:) dm (:cell:) Dipole Moment (:cell:) c*m (:cellnr:) r (:cell:) van der Waals Volume (:cell:) m^3/kmol (:cellnr:) q (:cell:) van der Waals Area (:cell:) m^2 (:cellnr:) ri (:cell:) Refractive Index (:cell:) unitless (:cellnr:) fp (:cell:) Flash Point (:cell:) K (:cellnr:) lfl (:cell:) Lower Flammability Limit (:cell:) K (:cellnr:) ufl (:cell:) Upper Flammability Limit (:cell:) K (:cellnr:) lflt (:cell:) Lower Flamm Limit Temp (:cell:) K (:cellnr:) uflt (:cell:) Upper Flamm Limit Temp (:cell:) K (:cellnr:) ait (:cell:) Auto Ignition Temp (:cell:) K

Temperature Dependent Property Data

(:table border=1 width=100%:) (:cellnr:) sd (:cell:) Solid Density (:cell:) kmol/m^3 (:cellnr:) ld (:cell:) Liquid Density (:cell:) kmol/m^3 (:cellnr:) svp (:cell:) Solid Vapor Pressure (:cell:) Pa (:cellnr:) lvp (:cell:) Liquid Vapor Pressure (:cell:) Pa (:cellnr:) hvap (:cell:) Heat of Vaporization (:cell:) J/kmol (:cellnr:) scp (:cell:) Solid Heat Capacity (:cell:) J/kmol*K (:cellnr:) lcp (:cell:) Liquid Heat Capacity (:cell:) J/kmol*K (:cellnr:) igcp (:cell:) Ideal Gas Heat Capacity (:cell:) J/kmol*K (:cellnr:) svc (:cell:) Second Virial Coefficient (:cell:) m^3/kmol (:cellnr:) lv (:cell:) Liquid Viscosity (:cell:) Pa*s (:cellnr:) vv (:cell:) Vapor Viscosity (:cell:) Pa*s (:cellnr:) sk (:cell:) Solid Thermal Conductivity(:cell:) W/m*K (:cellnr:) lk (:cell:) Liq Thermal Conductivity (:cell:) W/m*K (:cellnr:) vk (:cell:) Vap Thermal Conductivity (:cell:) W/m*K (:cellnr:) st (:cell:) Surface Tension (:cell:) N/m (:tableend:)

- Feed
- Flash
- Flash_column
- Lag
- Massflow
- Mixer
- PID
- Poly_reactor
- Pump
- Reactor
- Splitter
- Stage_1
- Stage_2
- Stream_lag
- Vessel
- Vesselm

- Feed - Feed stream
- Fabs - Absolute value
- Fmax - Maximum value
- Fmin - Minimum value
- Fsign - Number Sign (-1 or 1)
- Flash - Flash
- Flash_column - Flash column
- Info - Info file for variable classification
- Info_FV - Fixed Variable
- Info_MV - Manipulated Variable
- Info_SV - State Variable
- Info_CV - Controlled Variable
- Info_SVM - Measured State Variable
- Info_CVM - Measured Controlled Variable

- Lag - First order lag
- Lookup - Lookup table
- LTI - Linear time-invariant, discrete or continuous
- Mass - Mass of a reserve
- Massflow - Massflow of a stream
- Massflows - Massflows of a stream
- Mixer - Mixer of 2 or more streams
- PID - Proportional Integral Derivative Controller
- Poly_reactor - Polymerization reactor
- Pump - Pump for changes in pressure
- PWL - Piece-wise Linear
- Reactor - Vessel with reaction of individual species
- Recovery - Separation by recovery
- Splitter - Split of one stream into 2 or more streams
- Stage_1 - Distillation stage (type 1)
- Stage_2 - Distillation stage (type 2)
- Stream_lag - First order lag of streams
- Vessel - Molar reserve with multiple inlet streams
- Vesselm - Mass reserve with multiple inlet streams

distill.liq_mixer.inlet2.* = distill.stage[1].l_out.*

distill.liq_mixer.inlet[2].* = distill.stage[1].l_out.*

distill.vap_mixer.inlet2.* = distill.stage[2].v_out.*

distill.vap_mixer.inlet[2].* = distill.stage[2].v_out.*

distill.reflux.outlet2.* = distill.stage[1].l_in.*

distill.reflux.outlet[2].* = distill.stage[1].l_in.*

fd_c2h4 = distill.feed.x(1) fd_c3h6 = distill.feed.x(2) fd_c3h8 = distill.feed.x(3) fd_h2 = distill.feed.x(4)

fd_c2h4 = distill.feed.x[1] fd_c3h6 = distill.feed.x[2] fd_c3h8 = distill.feed.x[3] fd_h2 = distill.feed.x[4]