Main

## Main.Objects History

February 14, 2019, at 03:25 PM by 10.37.111.106 -
* '''Array(type,size)''' array of GEKKO objects
In [[https://gekko.readthedocs.io/en/latest/overview.html|Python GEKKO]], objects are defined as components of the model as ''m.object_name()''.
Deleted lines 44-45:
In [[https://gekko.readthedocs.io/en/latest/overview.html|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))
February 14, 2019, at 03:10 PM by 10.37.111.106 -
* '''sum''' summation of elements in a list or numpy array
February 14, 2019, at 03:08 PM by 10.37.111.106 -
Changed line 8 from:
* '''abs2(x)''' absolute value with MPCC (continuous first/second deriv)
to:
* '''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
Changed line 30 from:
* '''sign2(x)''' signum operator with MPCC (continuous first/second deriv)
to:
* '''sign2(x)''' signum operator with MPCC
February 14, 2019, at 02:18 PM by 10.37.111.106 -
* '''sign2(x)''' signum operator with MPCC (continuous first/second deriv)
* '''sign3(x)''' signum operator with binary variable for switch
February 14, 2019, at 01:40 PM by 10.37.111.106 -
Changed line 5 from:
In [[https://gekko.readthedocs.io/en/latest/model_methods.html?highlight=objects#pre-built-objects|Python GEKKO]], some of the objects and functions are:
to:
[[https://gekko.readthedocs.io/en/latest/|Python GEKKO]] has [[https://gekko.readthedocs.io/en/latest/model_methods.html?highlight=objects#equation-functions|equation functions]] and [[https://gekko.readthedocs.io/en/latest/model_methods.html?highlight=objects#pre-built-objects|pre-built objects]]. Some of the pre-built objects and equation functions are:
February 14, 2019, at 01:13 PM by 10.37.111.106 -
(:source lang=python:)
(:sourceend:)
February 14, 2019, at 01:12 PM by 10.37.111.106 -
Changed lines 300-301 from:
(:table border=1 width=100% align=left bgcolor=#EEEEEE cellspacing=0:)
(:cellnr
:)
to:
(:source lang=python:)
Changed line 422 from:
(:tableend:)
to:
(:sourceend:)
February 14, 2019, at 01:11 PM by 10.37.111.106 -
Changed line 1 from:
Some pre-built objects are available in the %blue%A%red%P%black%Monitor language to facilitate flowsheets of processing equipment while others are to simplify model building.
to:
Objects are available in Python GEKKO and the %blue%A%red%P%black%Monitor language to simplify the description of complex models.
February 14, 2019, at 01:09 PM by 10.37.111.106 -
February 14, 2019, at 01:07 PM by 10.37.111.106 -
Changed lines 7-33 from:
* 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)'''
to:
* '''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)'''
February 14, 2019, at 01:05 PM by 10.37.111.106 -
Changed lines 3-4 from:
In [[https://gekko.readthedocs.io/en/latest/overview.html|Python GEKKO]], objects are defined as components of the model.
to:
!!! Python GEKKO Object Library

In [[https://gekko.readthedocs.io/en/latest/model_methods.html?highlight=objects#pre-built-objects|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 [[https://gekko.readthedocs.io/en/latest/overview.html|Python GEKKO]], objects are defined as components of the model such as ''m.abs3()''.

!!! APMonitor Object Library
Deleted lines 75-106:
!!! Python GEKKO Object Library

In [[https://gekko.readthedocs.io/en/latest/model_methods.html?highlight=objects#pre-built-objects|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

Deleted line 117:
February 14, 2019, at 01:02 PM by 10.37.111.106 -
Changed lines 3-12 from:
In [[https://gekko.readthedocs.io/en/latest/model_methods.html?highlight=objects#pre-built-objects|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

to:
In [[https://gekko.readthedocs.io/en/latest/overview.html|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:)

Changed lines 42-72 from:
!!! Object Library
to:
!!! Python GEKKO Object Library

In [[https://gekko.readthedocs.io/en/latest/model_methods.html?highlight=objects#pre-built-objects|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
February 14, 2019, at 12:56 PM by 10.37.111.106 -
Changed line 39 from:
* [[Apps/MpecExamples|Abs - Absolute value (MPEC)]]
to:
* [[Apps/MpecExamples|Abs - Absolute value]]
February 14, 2019, at 12:53 PM by 10.37.111.106 -
Changed lines 1-13 from:
Pre-build objects are available in the %blue%A%red%P%black%Monitor 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.
to:
Some pre-built objects are available in the %blue%A%red%P%black%Monitor language to facilitate flowsheets of processing equipment while others are to simplify model building.

In [[https://gekko.readthedocs.io/en/latest/model_methods.html?highlight=objects#pre-built-objects|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.
Changed line 28 from:
* ARX, Linear Time Invariant Model
to:
* [[Apps/ARXTimeSeries|ARX, Linear Time Invariant Model]]
* VSum - Summation of a single variable in data dimension
* ARX, Linear Time Invariant Model
October 17, 2018, at 03:58 AM by 64.129.101.54 -
Changed lines 28-29 from:
* [[Main/ObjectCspline|Cubic spline]]
to:
* [[Main/ObjectBspline|Basis spline (b-spline)]]
* [[Main/ObjectCspline|Cubic spline (c-spline)
]]
! example use of ABS as MPEC
Changed line 7 from:
c = abs
to:
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

Changed lines 11-12 from:
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.
to:
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.
* [[Main/ObjectCspline|Cubic spline]]
June 16, 2015, at 06:50 PM by 45.56.3.184 -
Deleted lines 0-1:
!! Objects
Changed line 55 from:
(:table border=1 width=80%:)
to:
(:table border=1 width=100%:)
Changed line 155 from:
(:table border=1 width=80%:)
to:
(:table border=1 width=100%:)
Changed line 228 from:
(:table border=1 width=50% align=left bgcolor=#EEEEEE cellspacing=0:)
to:
(:table border=1 width=100% align=left bgcolor=#EEEEEE cellspacing=0:)
May 28, 2014, at 11:03 PM by 107.188.175.164 -
Changed line 23 from:
* LTI - Linear time-invariant, discrete or continuous
to:
* [[Apps/LinearStateSpace|LTI - Linear time-invariant, discrete or continuous]]
Changed line 34 from:
* PWL - Piece-wise Linear
to:
* [[Apps/PiecewiseLinear|PWL - Piece-wise Linear]]
May 28, 2014, at 11:01 PM by 107.188.175.164 -
Changed line 11 from:
* Abs - Absolute value (MPEC)
to:
* [[Apps/MpecExamples|Abs - Absolute value (MPEC)]]
Changed lines 27-28 from:
* Max - Maximum value (MPEC)
* Min - Minimum value (MPEC)
to:
* [[Apps/MpecExamples|Max - Maximum value (MPEC)]]
* [[Apps/MpecExamples|Min - Minimum value (MPEC)]]
Changed line 30 from:
* Periodic - Periodic boundary condition
to:
* [[Apps/PeriodicBoundaryConditions|Periodic - Periodic boundary condition]]
Changed line 37 from:
* Sign - Number Sign (-1 or 1)
to:
* [[Apps/MpecExamples|Sign - Number Sign (-1 or 1)]]
Changed line 353 from:
(:tableend:)
to:
(:tableend:)
May 28, 2014, at 10:58 PM by 107.188.175.164 -
* Periodic - Periodic boundary condition
May 24, 2014, at 04:43 PM by 66.87.126.139 -

----

!! Example - Mixer Application

* %list list-page% [[https://apmonitor.com/online/view_pass.php?f=mixer.apm | Solve Mixer Example Problem]]
August 06, 2012, at 11:56 PM by 69.169.131.76 -
* Sum - Summation of multiple parameters and/or variables
June 17, 2012, at 05:45 AM by 69.169.131.76 -
* Table - Data table that creates parameters or initializes variables
May 24, 2012, at 11:49 PM by 128.187.97.24 -
(: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
May 06, 2011, at 08:25 AM by 158.35.225.231 -
* Feedback - Internal feedback
April 08, 2011, at 06:36 PM by 158.35.225.228 -
Deleted lines 205-206:

* []
April 08, 2011, at 06:35 PM by 158.35.225.228 -
Changed lines 205-207 from:
* [https://apmonitor.com/online/view_pass.php?f=min.apm | Solve MPEC form of the MIN function]
to:
* %list list-page% [[https://apmonitor.com/online/view_pass.php?f=min.apm | Solve MPEC form of the MIN function]]

* [
]
April 08, 2011, at 06:34 PM by 158.35.225.228 -

----

!! Example - MIN Function

* [https://apmonitor.com/online/view_pass.php?f=min.apm | Solve MPEC form of the MIN function]
April 08, 2011, at 06:27 PM by 158.35.225.228 -
* Abs - Absolute value (MPEC)
Deleted lines 12-15:
* 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)
April 08, 2011, at 05:55 PM by 158.35.225.228 -
hydrogen
Deleted line 214:
hydrogen
Changed lines 248-253 from:
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.*
to:
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].*
Changed lines 255-259 from:
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.*
to:
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.*
Changed lines 261-263 from:
distill.sump.outlet.*              = distill.reboiler.inlet.*
distill.reboiler.outlet.*          = distill.reboiler_flash.inlet.*
to:
sump.outlet.*              = reboiler.inlet.*
reboiler.outlet.*          = reboiler_flash.inlet.*
Changed lines 265-269 from:
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.*
to:
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.*
Changed lines 271-275 from:
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.*
to:
stage[1].v_out.*            = condenser.inlet.*
condenser.outlet.*          = drum.inlet.*
drum.outlet_liq.*          = reflux.inlet.*
reflux.outlet[2].*          = stage[1].l_in.*
Changed lines 277-281 from:
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.*
to:
sump.reserve.*              = sump_mass.acc.*
feed.*                      = feed_massflow.stream.*
drum.outlet_vap.*          = cleu_massflow.stream.*
reboiler_flash.outlet_liq.* = btms_massflow.stream.*
Changed lines 283-286 from:
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
to:
strm_p                            = stage[1].v_out.p
strm_p                            = stage[2:8].l_out.p
strm_p                            = stage[3:8].v_out.p
Changed line 288 from:
fd_p                              = distill.stage[1:8].l_res.p
to:
fd_p                              = stage[1:8].l_res.p
Changed lines 311-318 from:
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
to:
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
August 14, 2010, at 06:36 PM by 206.180.155.75 -
Deleted lines 22-23:
** Info_SVM - Measured State Variable
** Info_CVM - Measured Controlled Variable
July 22, 2010, at 07:39 PM by 158.35.225.231 -
Changed lines 52-55 from:
(:table border=1 width=100%:)
to:

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
Changed lines 155-156 from:
!!!! Temperature Dependent Property Data
(:table border
=1 width=100%:)
to:
(:table border=1 width=80%:)
July 22, 2010, at 07:35 PM by 158.35.225.231 -
Changed lines 49-51 from:
!!!! Temperature Dependent Property Data
to:
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.
July 22, 2010, at 07:31 PM by 158.35.225.231 -
Changed line 42 from:
* Thermo - Thermodynamic properties
to:
* Thermo_* - Thermodynamic properties (* see below for specific properties)
!!!! Temperature Dependent Property Data
July 22, 2010, at 07:29 PM by 158.35.225.231 -
Deleted line 47:
Temperature independent properties
Changed line 49 from:
(:cellnr:) mw
to:
(:cellnr:) thermo_mw
Changed line 52 from:
(:cellnr:) tc
to:
(:cellnr:) thermo_tc
Changed line 55 from:
(:cellnr:) pc
to:
(:cellnr:) thermo_pc
Changed line 58 from:
(:cellnr:) vc
to:
(:cellnr:) thermo_vc
Changed line 61 from:
(:cellnr:) ccf
to:
(:cellnr:) thermo_ccf
Changed line 64 from:
(:cellnr:) mp
to:
(:cellnr:) thermo_mp
Changed line 67 from:
(:cellnr:) tpt
to:
(:cellnr:) thermo_tpt
Changed line 70 from:
(:cellnr:) tpp
to:
(:cellnr:) thermo_tpp
Changed line 73 from:
(:cellnr:) nbp
to:
(:cellnr:) thermo_nbp
Changed line 76 from:
(:cellnr:) lmv
to:
(:cellnr:) thermo_lmv
Changed line 79 from:
(:cellnr:) ighf
to:
(:cellnr:) thermo_ighf
Changed line 82 from:
(:cellnr:) iggf
to:
(:cellnr:) thermo_iggf
Changed line 85 from:
(:cellnr:) igae
to:
(:cellnr:) thermo_igae
Changed line 88 from:
(:cellnr:) shf
to:
(:cellnr:) thermo_shf
Changed line 91 from:
(:cellnr:) sgf
to:
(:cellnr:) thermo_sgf
Changed line 94 from:
(:cellnr:) sae
to:
(:cellnr:) thermo_sae
Changed line 97 from:
(:cellnr:) hfmp
to:
(:cellnr:) thermo_hfmp
Changed line 100 from:
(:cellnr:) snhc
to:
(:cellnr:) thermo_snhc
Changed line 103 from:
(:cellnr:) af
to:
(:cellnr:) thermo_af
Changed line 106 from:
(:cellnr:) rg
to:
(:cellnr:) thermo_rg
Changed line 109 from:
(:cellnr:) sp
to:
(:cellnr:) thermo_sp
Changed line 112 from:
(:cellnr:) dm
to:
(:cellnr:) thermo_dm
Changed line 115 from:
(:cellnr:) r
to:
(:cellnr:) thermo_r
Changed line 118 from:
(:cellnr:) q
to:
(:cellnr:) thermo_q
Changed line 121 from:
(:cellnr:) ri
to:
(:cellnr:) thermo_ri
Changed line 124 from:
(:cellnr:) fp
to:
(:cellnr:) thermo_fp
Changed line 127 from:
(:cellnr:) lfl
to:
(:cellnr:) thermo_lfl
Changed line 130 from:
(:cellnr:) ufl
to:
(:cellnr:) thermo_ufl
Changed line 133 from:
(:cellnr:) lflt
to:
(:cellnr:) thermo_lflt
Changed line 136 from:
(:cellnr:) uflt
to:
(:cellnr:) thermo_uflt
Changed line 139 from:
(:cellnr:) ait
to:
(:cellnr:) thermo_ait
Changed lines 142-143 from:

Temperature Dependent Property Data
to:
(:tableend:)

!!!!
Temperature Dependent Property Data
Changed line 146 from:
(:cellnr:) sd
to:
(:cellnr:) thermo_sd
Changed line 149 from:
(:cellnr:) ld
to:
(:cellnr:) thermo_ld
Changed line 152 from:
(:cellnr:) svp
to:
(:cellnr:) thermo_svp
Changed line 155 from:
(:cellnr:) lvp
to:
(:cellnr:) thermo_lvp
Changed line 158 from:
(:cellnr:) hvap
to:
(:cellnr:) thermo_hvap
Changed line 161 from:
(:cellnr:) scp
to:
(:cellnr:) thermo_scp
Changed line 164 from:
(:cellnr:) lcp
to:
(:cellnr:) thermo_lcp
Changed line 167 from:
(:cellnr:) igcp
to:
(:cellnr:) thermo_igcp
Changed line 170 from:
(:cellnr:) svc
to:
(:cellnr:) thermo_svc
Changed line 173 from:
(:cellnr:) lv
to:
(:cellnr:) thermo_lv
Changed line 176 from:
(:cellnr:) vv
to:
(:cellnr:) thermo_vv
Changed line 179 from:
(:cellnr:) sk
to:
(:cellnr:) thermo_sk
Changed line 182 from:
(:cellnr:) lk
to:
(:cellnr:) thermo_lk
Changed line 185 from:
(:cellnr:) vk
to:
(:cellnr:) thermo_vk
Changed line 188 from:
(:cellnr:) st
to:
(:cellnr:) thermo_st
July 22, 2010, at 07:27 PM by 158.35.225.231 -
Changed lines 48-49 from:

Temperature independent properties
to:
Temperature independent properties
Changed lines 50-82 from:
(: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
to:
(: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:) 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
Changed lines 146-160 from:
(: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
to:
(: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
Deleted line 191:
July 22, 2010, at 07:25 PM by 158.35.225.231 -

!!! 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:)

July 22, 2010, at 07:19 PM by 158.35.225.231 -
* Thermo - Thermodynamic properties
March 04, 2010, at 08:00 PM by 158.35.225.227 -
Changed lines 11-26 from:
* Feed
* Flash
* Flash_column
* Lag
* Massflow
* Mixer
* PID
* Poly_reactor
* Pump
* Reactor
* Splitter
* Stage_1
* Stage_2
* Stream_lag
* Vessel
* Vesselm
to:
* 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
September 08, 2009, at 08:12 PM by 158.35.225.231 -
Changed line 82 from:
distill.liq_mixer.inlet2.*          = distill.stage[1].l_out.*
to:
distill.liq_mixer.inlet[2].*          = distill.stage[1].l_out.*
Changed line 94 from:
distill.vap_mixer.inlet2.*          = distill.stage[2].v_out.*
to:
distill.vap_mixer.inlet[2].*          = distill.stage[2].v_out.*
Changed lines 101-102 from:
distill.reflux.outlet2.*            = distill.stage[1].l_in.*
to:
distill.reflux.outlet[2].*            = distill.stage[1].l_in.*
Changed lines 140-143 from:
fd_c2h4  = distill.feed.x(1)
fd_c3h6  = distill.feed.x(2)
fd_c3h8  = distill.feed.x(3)
fd_h2    = distill.feed.x(4)
to:
fd_c2h4  = distill.feed.x[1]
fd_c3h6  = distill.feed.x[2]
fd_c3h8  = distill.feed.x[3]
fd_h2    = distill.feed.x[4]