Main.Objects History

Hide minor edits - Show changes to markup

August 06, 2012, at 05:56 PM by 69.169.131.76 -
Added line 41:
  • Sum - Summation of multiple parameters and/or variables
June 16, 2012, at 11:45 PM by 69.169.131.76 -
Added line 41:
  • Table - Data table that creates parameters or initializes variables
May 24, 2012, at 05:49 PM by 128.187.97.24 -
Added lines 200-208:

(: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 02:25 AM by 158.35.225.231 -
Added line 13:
  • Feedback - Internal feedback
April 08, 2011, at 12:36 PM by 158.35.225.228 -
Deleted lines 205-206:
  • []
April 08, 2011, at 12:35 PM by 158.35.225.228 -
Changed lines 205-207 from:
  • [http://apmonitor.com/online/view_pass.php?f=min.apm | Solve MPEC form of the MIN function]
to:
  • Solve MPEC form of the MIN function
  • []
April 08, 2011, at 12:34 PM by 158.35.225.228 -
Added lines 200-205:

Example - MIN Function

  • [http://apmonitor.com/online/view_pass.php?f=min.apm | Solve MPEC form of the MIN function]
April 08, 2011, at 12:27 PM by 158.35.225.228 -
Added line 11:
  • Abs - Absolute value (MPEC)
Deleted lines 12-15:
  • Fabs - Absolute value
  • Fmax - Maximum value
  • Fmin - Minimum value
  • Fsign - Number Sign (-1 or 1)
Added lines 26-27:
  • Max - Maximum value (MPEC)
  • Min - Minimum value (MPEC)
Added line 35:
  • Sign - Number Sign (-1 or 1)
April 08, 2011, at 11:55 AM by 158.35.225.228 -
Added line 213:
  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 12: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 01: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%:)

Added lines 151-152:

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 01: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

Added lines 147-148:

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 01:31 PM by 158.35.225.231 -
Changed line 42 from:
  • Thermo - Thermodynamic properties
to:
  • Thermo_* - Thermodynamic properties (* see below for specific properties)
Added line 46:
Added line 49:

Temperature Dependent Property Data

July 22, 2010, at 01: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 01: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:) 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 
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 01:25 PM by 158.35.225.231 -
Added lines 45-101:

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 01:19 PM by 158.35.225.231 -
Added line 42:
  • Thermo - Thermodynamic properties
March 04, 2010, at 01: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 02: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]
November 03, 2008, at 08:33 AM by 158.35.225.228 -
Changed lines 3-6 from:

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 followed by the word AS and the parent object type.

new_child As parent_object

to:

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.

new_child = parent_object

Changed lines 46-52 from:
  feed           As Feed
  feed_lag       As Stream_Lag
  feed_cooler    As Vessel
  feed_flash     As Flash
  liq_mixer      As Mixer
  vap_mixer      As Mixer
to:
  feed           = Feed
  feed_lag       = Stream_Lag
  feed_cooler    = Vessel
  feed_flash     = Flash
  liq_mixer      = Mixer
  vap_mixer      = Mixer
Changed lines 54-57 from:
  condenser      As Vessel
  drum           As Flash
  reflux         As Splitter
to:
  condenser      = Vessel
  drum           = Flash
  reflux         = Splitter
Changed lines 59-60 from:
  stage[1:8]     As Stage_1
to:
  stage[1:8]     = Stage_1
Changed lines 62-65 from:
  sump           As Vessel
  reboiler       As Vessel
  reboiler_flash As Flash
to:
  sump           = Vessel
  reboiler       = Vessel
  reboiler_flash = Flash
Changed lines 67-70 from:
  sump_mass      As Mass
  feed_massflow  As Massflow
  cleu_massflow  As Massflow
  btms_massflow  As Massflow
to:
  sump_mass      = Mass
  feed_massflow  = Massflow
  cleu_massflow  = Massflow
  btms_massflow  = Massflow
October 07, 2008, at 08:50 AM by 158.35.225.229 -
Added line 28:

October 07, 2008, at 08:50 AM by 158.35.225.229 -
Added lines 28-29:

Example - Distillation Column

September 26, 2008, at 03:29 PM by 158.35.225.231 -
Added lines 31-34:
 Model distill

 Compounds
  ethylene  
September 26, 2008, at 03:29 PM by 158.35.225.231 -
Deleted lines 30-32:
 ! Distillation column example
September 26, 2008, at 03:28 PM by 158.35.225.231 -
Deleted lines 33-34:
 Compounds
  dethylene
September 26, 2008, at 03:28 PM by 158.35.225.231 -
Changed line 35 from:
  ethylene
to:
  dethylene
September 26, 2008, at 03:28 PM by 158.35.225.231 -
Deleted lines 6-9:

Chemical Compounds

The chemical compounds used in the flowsheet are defined in the Compounds ... End Compounds section. There are more than 1700 compounds available in the thermodynamic database. If the chemical compound is not available, a text file named compounds.txt is generated when the problem solution is attempted.

Deleted lines 152-514:

(:tableend:)

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

 Chemical compounds

(:cellnr:)

 Any of the following compounds can be referenced by common
   or IUPAC name, CAS number, or chemical formula

 Care should be taken when accessing a compound by formula
   because formula names are not unique and the first
   available match will be selected.

 Common Name: methane
 IUPAC Name : methane
 CAS Number : 74-82-8
 Formula    : CH4

 Common Name: ethane
 IUPAC Name : ethane
 CAS Number : 74-84-0
 Formula    : C2H6

 Common Name: propane
 IUPAC Name : propane
 CAS Number : 74-98-6
 Formula    : C3H8

 Common Name: isobutane
 IUPAC Name : isobutane
 CAS Number : 75-28-5
 Formula    : C4H10

 Common Name: n-butane
 IUPAC Name : butane
 CAS Number : 106-97-8
 Formula    : C4H10

 Common Name: n-pentane
 IUPAC Name : pentane
 CAS Number : 109-66-0
 Formula    : C5H12

 Common Name: isopentane
 IUPAC Name : isopentane
 CAS Number : 78-78-4
 Formula    : C5H12

 Common Name: neopentane
 IUPAC Name : neopentane
 CAS Number : 463-82-1
 Formula    : C5H12

 Common Name: n-hexane
 IUPAC Name : hexane
 CAS Number : 110-54-3
 Formula    : C6H14

 Common Name: n-heptane
 IUPAC Name : heptane
 CAS Number : 142-82-5
 Formula    : C7H16

 Common Name: n-octane
 IUPAC Name : octane
 CAS Number : 111-65-9
 Formula    : C8H18

 Common Name: n-nonane
 IUPAC Name : nonane
 CAS Number : 111-84-2
 Formula    : C9H20

 Common Name: squalane
 IUPAC Name : 2,6,10,15,19,23-hexamethyltetracosane
 CAS Number : 111-01-3
 Formula    : C30H62

 Common Name: n-decane
 IUPAC Name : decane
 CAS Number : 124-18-5
 Formula    : C10H22

 Common Name: n-undecane
 IUPAC Name : undecane
 CAS Number : 1120-21-4
 Formula    : C11H24

 Common Name: n-dodecane
 IUPAC Name : dodecane
 CAS Number : 112-40-3
 Formula    : C12H26

 Common Name: n-tridecane
 IUPAC Name : tridecane
 CAS Number : 629-50-5
 Formula    : C13H28

 Common Name: n-tetradecane
 IUPAC Name : tetradecane
 CAS Number : 629-59-4
 Formula    : C14H30

 Common Name: n-pentadecane
 IUPAC Name : pentadecane
 CAS Number : 629-62-9
 Formula    : C15H32

 Common Name: n-hexadecane
 IUPAC Name : hexadecane
 CAS Number : 544-76-3
 Formula    : C16H34

 Common Name: n-heptadecane
 IUPAC Name : heptadecane
 CAS Number : 629-78-7
 Formula    : C17H36

 Common Name: n-octadecane
 IUPAC Name : octadecane
 CAS Number : 593-45-3
 Formula    : C18H38

 Common Name: n-nonadecane
 IUPAC Name : nonadecane
 CAS Number : 629-92-5
 Formula    : C19H40

 Common Name: n-eicosane
 IUPAC Name : eicosane
 CAS Number : 112-95-8
 Formula    : C20H42

 Common Name: cyclopropane
 IUPAC Name : cyclopropane
 CAS Number : 75-19-4
 Formula    : C3H6

 Common Name: cyclobutane
 IUPAC Name : cyclobutane
 CAS Number : 287-23-0
 Formula    : C4H8

 Common Name: cyclopentane
 IUPAC Name : cyclopentane
 CAS Number : 287-92-3
 Formula    : C5H10

 Common Name: cyclohexane
 IUPAC Name : cyclohexane
 CAS Number : 110-82-7
 Formula    : C6H12

 Common Name: cycloheptane
 IUPAC Name : cycloheptane
 CAS Number : 291-64-5
 Formula    : C7H14

 Common Name: cyclooctane
 IUPAC Name : cyclooctane
 CAS Number : 292-64-8
 Formula    : C8H16

 Common Name: ethylene
 IUPAC Name : ethylene
 CAS Number : 74-85-1
 Formula    : C2H4

 Common Name: propylene
 IUPAC Name : propylene
 CAS Number : 115-07-1
 Formula    : C3H6

 Common Name: 1-butene
 IUPAC Name : 1-butene
 CAS Number : 106-98-9
 Formula    : C4H8

 Common Name: isobutene
 IUPAC Name : isobutene
 CAS Number : 115-11-7
 Formula    : C4H8

 Common Name: 1-pentene
 IUPAC Name : 1-pentene
 CAS Number : 109-67-1
 Formula    : C5H10

 Common Name: 1-hexene
 IUPAC Name : 1-hexene
 CAS Number : 592-41-6
 Formula    : C6H12

 Common Name: 1-heptene
 IUPAC Name : 1-heptene
 CAS Number : 592-76-7
 Formula    : C7H14

 Common Name: 1-octene
 IUPAC Name : 1-octene
 CAS Number : 111-66-0
 Formula    : C8H16

 Common Name: 1-nonene
 IUPAC Name : 1-nonene
 CAS Number : 124-11-8
 Formula    : C9H18

 Common Name: 1-decene
 IUPAC Name : 1-decene
 CAS Number : 872-05-9
 Formula    : C10H20

 Common Name: 1-undecene
 IUPAC Name : 1-undecene
 CAS Number : 821-95-4
 Formula    : C11H22

 Common Name: 1-dodecene
 IUPAC Name : 1-dodecene
 CAS Number : 112-41-4
 Formula    : C12H24

 Common Name: 1-tridecene
 IUPAC Name : 1-tridecene
 CAS Number : 2437-56-1
 Formula    : C13H26

 Common Name: 1-tetradecene
 IUPAC Name : 1-tetradecene
 CAS Number : 1120-36-1
 Formula    : C14H28

 Common Name: 1-pentadecene
 IUPAC Name : 1-pentadecene
 CAS Number : 13360-61-7
 Formula    : C15H30

 Common Name: 1-hexadecene
 IUPAC Name : 1-hexadecene
 CAS Number : 629-73-2
 Formula    : C16H32

 Common Name: 1-octadecene
 IUPAC Name : 1-octadecene
 CAS Number : 112-88-9
 Formula    : C18H36

 Common Name: cyclopentene
 IUPAC Name : cyclopentene
 CAS Number : 142-29-0
 Formula    : C5H8

 Common Name: cyclohexene
 IUPAC Name : cyclohexene
 CAS Number : 110-83-8
 Formula    : C6H10

 Common Name: isoprene
 IUPAC Name : isoprene
 CAS Number : 78-79-5
 Formula    : C5H8

 Common Name: benzene
 IUPAC Name : benzene
 CAS Number : 71-43-2
 Formula    : C6H6

 Common Name: toluene
 IUPAC Name : toluene
 CAS Number : 108-88-3
 Formula    : C7H8

 Common Name: ethylbenzene
 IUPAC Name : ethylbenzene
 CAS Number : 100-41-4
 Formula    : C8H10

 Common Name: o-xylene
 IUPAC Name : 1,2-dimethylbenzene
 CAS Number : 95-47-6
 Formula    : C8H10

 Common Name: m-xylene
 IUPAC Name : 1,3-dimethylbenzene
 CAS Number : 108-38-3
 Formula    : C8H10

 Common Name: p-xylene
 IUPAC Name : 1,4-dimethylbenzene
 CAS Number : 106-42-3
 Formula    : C8H10

 Common Name: styrene
 IUPAC Name : phenylethene
 CAS Number : 100-42-5
 Formula    : C8H8

 Common Name: oxygen
 IUPAC Name : oxygen
 CAS Number : 7782-44-7
 Formula    : O2

 Common Name: hydrogen
 IUPAC Name : hydrogen
 CAS Number : 1333-74-0
 Formula    : H2

 Common Name: nitrogen
 IUPAC Name : nitrogen
 CAS Number : 7727-37-9
 Formula    : N2

 Common Name: carbon monoxide
 IUPAC Name : carbon monoxide
 CAS Number : 630-08-0
 Formula    : CO

 Common Name: carbon dioxide
 IUPAC Name : carbon dioxide
 CAS Number : 124-38-9
 Formula    : CO2

 Common Name: air
 IUPAC Name : air
 CAS Number : 132259-10-0
 Formula    : MIXTURE

 Common Name: acetone
 IUPAC Name : acetone
 CAS Number : 67-64-1
 Formula    : C3H6O

 Common Name: methanol
 IUPAC Name : methanol
 CAS Number : 67-56-1
 Formula    : CH4O

 Common Name: ethanol
 IUPAC Name : ethanol
 CAS Number : 64-17-5
 Formula    : C2H6O

 Common Name: vinyl acetate
 IUPAC Name : vinyl acetate
 CAS Number : 108-05-4
 Formula    : C4H6O2

 Common Name: ammonia
 IUPAC Name : ammonia
 CAS Number : 7664-41-7
 Formula    : H3N

 Common Name: sodium hydroxide
 IUPAC Name : sodium hydroxide
 CAS Number : 1310-73-2
 Formula    : HNaO

 Common Name: water
 IUPAC Name : water
 CAS Number : 7732-18-5
 Formula    : H2O
September 26, 2008, at 03:15 PM by 158.35.225.231 -
Changed lines 3-5 from:

Pre-build objects are available in the APMonitor language to facilitate flowsheets of chemical processing equipment.

to:

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 followed by the word AS and the parent object type.

new_child As parent_object

Chemical Compounds

The chemical compounds used in the flowsheet are defined in the Compounds ... End Compounds section. There are more than 1700 compounds available in the thermodynamic database. If the chemical compound is not available, a text file named compounds.txt is generated when the problem solution is attempted.

Object Library

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.

Changed line 38 from:
 Species
to:
 Compounds
Changed lines 44-45 from:
 End Species
to:
 End Compounds
Added lines 157-519:

(:tableend:)

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

 Chemical compounds

(:cellnr:)

 Any of the following compounds can be referenced by common
   or IUPAC name, CAS number, or chemical formula

 Care should be taken when accessing a compound by formula
   because formula names are not unique and the first
   available match will be selected.

 Common Name: methane
 IUPAC Name : methane
 CAS Number : 74-82-8
 Formula    : CH4

 Common Name: ethane
 IUPAC Name : ethane
 CAS Number : 74-84-0
 Formula    : C2H6

 Common Name: propane
 IUPAC Name : propane
 CAS Number : 74-98-6
 Formula    : C3H8

 Common Name: isobutane
 IUPAC Name : isobutane
 CAS Number : 75-28-5
 Formula    : C4H10

 Common Name: n-butane
 IUPAC Name : butane
 CAS Number : 106-97-8
 Formula    : C4H10

 Common Name: n-pentane
 IUPAC Name : pentane
 CAS Number : 109-66-0
 Formula    : C5H12

 Common Name: isopentane
 IUPAC Name : isopentane
 CAS Number : 78-78-4
 Formula    : C5H12

 Common Name: neopentane
 IUPAC Name : neopentane
 CAS Number : 463-82-1
 Formula    : C5H12

 Common Name: n-hexane
 IUPAC Name : hexane
 CAS Number : 110-54-3
 Formula    : C6H14

 Common Name: n-heptane
 IUPAC Name : heptane
 CAS Number : 142-82-5
 Formula    : C7H16

 Common Name: n-octane
 IUPAC Name : octane
 CAS Number : 111-65-9
 Formula    : C8H18

 Common Name: n-nonane
 IUPAC Name : nonane
 CAS Number : 111-84-2
 Formula    : C9H20

 Common Name: squalane
 IUPAC Name : 2,6,10,15,19,23-hexamethyltetracosane
 CAS Number : 111-01-3
 Formula    : C30H62

 Common Name: n-decane
 IUPAC Name : decane
 CAS Number : 124-18-5
 Formula    : C10H22

 Common Name: n-undecane
 IUPAC Name : undecane
 CAS Number : 1120-21-4
 Formula    : C11H24

 Common Name: n-dodecane
 IUPAC Name : dodecane
 CAS Number : 112-40-3
 Formula    : C12H26

 Common Name: n-tridecane
 IUPAC Name : tridecane
 CAS Number : 629-50-5
 Formula    : C13H28

 Common Name: n-tetradecane
 IUPAC Name : tetradecane
 CAS Number : 629-59-4
 Formula    : C14H30

 Common Name: n-pentadecane
 IUPAC Name : pentadecane
 CAS Number : 629-62-9
 Formula    : C15H32

 Common Name: n-hexadecane
 IUPAC Name : hexadecane
 CAS Number : 544-76-3
 Formula    : C16H34

 Common Name: n-heptadecane
 IUPAC Name : heptadecane
 CAS Number : 629-78-7
 Formula    : C17H36

 Common Name: n-octadecane
 IUPAC Name : octadecane
 CAS Number : 593-45-3
 Formula    : C18H38

 Common Name: n-nonadecane
 IUPAC Name : nonadecane
 CAS Number : 629-92-5
 Formula    : C19H40

 Common Name: n-eicosane
 IUPAC Name : eicosane
 CAS Number : 112-95-8
 Formula    : C20H42

 Common Name: cyclopropane
 IUPAC Name : cyclopropane
 CAS Number : 75-19-4
 Formula    : C3H6

 Common Name: cyclobutane
 IUPAC Name : cyclobutane
 CAS Number : 287-23-0
 Formula    : C4H8

 Common Name: cyclopentane
 IUPAC Name : cyclopentane
 CAS Number : 287-92-3
 Formula    : C5H10

 Common Name: cyclohexane
 IUPAC Name : cyclohexane
 CAS Number : 110-82-7
 Formula    : C6H12

 Common Name: cycloheptane
 IUPAC Name : cycloheptane
 CAS Number : 291-64-5
 Formula    : C7H14

 Common Name: cyclooctane
 IUPAC Name : cyclooctane
 CAS Number : 292-64-8
 Formula    : C8H16

 Common Name: ethylene
 IUPAC Name : ethylene
 CAS Number : 74-85-1
 Formula    : C2H4

 Common Name: propylene
 IUPAC Name : propylene
 CAS Number : 115-07-1
 Formula    : C3H6

 Common Name: 1-butene
 IUPAC Name : 1-butene
 CAS Number : 106-98-9
 Formula    : C4H8

 Common Name: isobutene
 IUPAC Name : isobutene
 CAS Number : 115-11-7
 Formula    : C4H8

 Common Name: 1-pentene
 IUPAC Name : 1-pentene
 CAS Number : 109-67-1
 Formula    : C5H10

 Common Name: 1-hexene
 IUPAC Name : 1-hexene
 CAS Number : 592-41-6
 Formula    : C6H12

 Common Name: 1-heptene
 IUPAC Name : 1-heptene
 CAS Number : 592-76-7
 Formula    : C7H14

 Common Name: 1-octene
 IUPAC Name : 1-octene
 CAS Number : 111-66-0
 Formula    : C8H16

 Common Name: 1-nonene
 IUPAC Name : 1-nonene
 CAS Number : 124-11-8
 Formula    : C9H18

 Common Name: 1-decene
 IUPAC Name : 1-decene
 CAS Number : 872-05-9
 Formula    : C10H20

 Common Name: 1-undecene
 IUPAC Name : 1-undecene
 CAS Number : 821-95-4
 Formula    : C11H22

 Common Name: 1-dodecene
 IUPAC Name : 1-dodecene
 CAS Number : 112-41-4
 Formula    : C12H24

 Common Name: 1-tridecene
 IUPAC Name : 1-tridecene
 CAS Number : 2437-56-1
 Formula    : C13H26

 Common Name: 1-tetradecene
 IUPAC Name : 1-tetradecene
 CAS Number : 1120-36-1
 Formula    : C14H28

 Common Name: 1-pentadecene
 IUPAC Name : 1-pentadecene
 CAS Number : 13360-61-7
 Formula    : C15H30

 Common Name: 1-hexadecene
 IUPAC Name : 1-hexadecene
 CAS Number : 629-73-2
 Formula    : C16H32

 Common Name: 1-octadecene
 IUPAC Name : 1-octadecene
 CAS Number : 112-88-9
 Formula    : C18H36

 Common Name: cyclopentene
 IUPAC Name : cyclopentene
 CAS Number : 142-29-0
 Formula    : C5H8

 Common Name: cyclohexene
 IUPAC Name : cyclohexene
 CAS Number : 110-83-8
 Formula    : C6H10

 Common Name: isoprene
 IUPAC Name : isoprene
 CAS Number : 78-79-5
 Formula    : C5H8

 Common Name: benzene
 IUPAC Name : benzene
 CAS Number : 71-43-2
 Formula    : C6H6

 Common Name: toluene
 IUPAC Name : toluene
 CAS Number : 108-88-3
 Formula    : C7H8

 Common Name: ethylbenzene
 IUPAC Name : ethylbenzene
 CAS Number : 100-41-4
 Formula    : C8H10

 Common Name: o-xylene
 IUPAC Name : 1,2-dimethylbenzene
 CAS Number : 95-47-6
 Formula    : C8H10

 Common Name: m-xylene
 IUPAC Name : 1,3-dimethylbenzene
 CAS Number : 108-38-3
 Formula    : C8H10

 Common Name: p-xylene
 IUPAC Name : 1,4-dimethylbenzene
 CAS Number : 106-42-3
 Formula    : C8H10

 Common Name: styrene
 IUPAC Name : phenylethene
 CAS Number : 100-42-5
 Formula    : C8H8

 Common Name: oxygen
 IUPAC Name : oxygen
 CAS Number : 7782-44-7
 Formula    : O2

 Common Name: hydrogen
 IUPAC Name : hydrogen
 CAS Number : 1333-74-0
 Formula    : H2

 Common Name: nitrogen
 IUPAC Name : nitrogen
 CAS Number : 7727-37-9
 Formula    : N2

 Common Name: carbon monoxide
 IUPAC Name : carbon monoxide
 CAS Number : 630-08-0
 Formula    : CO

 Common Name: carbon dioxide
 IUPAC Name : carbon dioxide
 CAS Number : 124-38-9
 Formula    : CO2

 Common Name: air
 IUPAC Name : air
 CAS Number : 132259-10-0
 Formula    : MIXTURE

 Common Name: acetone
 IUPAC Name : acetone
 CAS Number : 67-64-1
 Formula    : C3H6O

 Common Name: methanol
 IUPAC Name : methanol
 CAS Number : 67-56-1
 Formula    : CH4O

 Common Name: ethanol
 IUPAC Name : ethanol
 CAS Number : 64-17-5
 Formula    : C2H6O

 Common Name: vinyl acetate
 IUPAC Name : vinyl acetate
 CAS Number : 108-05-4
 Formula    : C4H6O2

 Common Name: ammonia
 IUPAC Name : ammonia
 CAS Number : 7664-41-7
 Formula    : H3N

 Common Name: sodium hydroxide
 IUPAC Name : sodium hydroxide
 CAS Number : 1310-73-2
 Formula    : HNaO

 Common Name: water
 IUPAC Name : water
 CAS Number : 7732-18-5
 Formula    : H2O
September 26, 2008, at 02:06 PM by 158.35.225.231 -
September 26, 2008, at 02:05 PM by 158.35.225.231 -
Added lines 22-148:

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

 ! Distillation column example

 Species
  ethylene
  propylene
  propane
  nitrogen
  hydrogen
 End Species

 Objects
  ! feed stream
  feed           As Feed
  feed_lag       As Stream_Lag
  feed_cooler    As Vessel
  feed_flash     As Flash
  liq_mixer      As Mixer
  vap_mixer      As Mixer

  ! condenser and reflux
  condenser      As Vessel
  drum           As Flash
  reflux         As Splitter

  ! column stages
  stage[1:8]     As Stage_1

  ! reboiler
  sump           As Vessel
  reboiler       As Vessel
  reboiler_flash As Flash

  ! mass and massflows
  sump_mass      As Mass
  feed_massflow  As Massflow
  cleu_massflow  As Massflow
  btms_massflow  As Massflow
 End Objects

 Connections
  ! feed streams
  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.*

  ! liquid down the column
  distill.liq_mixer.inlet2.*          = 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.*

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

  ! vapor up the column
  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.inlet2.*          = distill.stage[2].v_out.*
  distill.vap_mixer.outlet.*          = distill.stage[1].v_in.*

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

  ! mass and massflow meters
  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.*

  ! stream pressures
  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

  ! feed and stage pressures
  fd_p                              = distill.stage[1:8].l_res.p
 End Connections


 Model custom

  Parameters
     fd_t     = 370.0  ! K
     fd_p     = 3.11e6 ! Pa
     fd_c2h4  = 0.28   ! mol%
     fd_c3h6  = 0.6184 ! mol%
     fd_c3h8  = 0.0916 ! mol%
     fd_h2    = 0.01   ! mol%

     strm_p   = fd_p   ! Pa
     fd_ndot  = 1.0
  End Parameters

  Variables
     fd_mdot  = 0.395  ! kg/sec
  End Variables

  Connections
     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
  End Connections

  Intermediates
  End Intermediates

  Equations
  End Equations

 End Model

(:tableend:)

September 26, 2008, at 01:42 PM by 158.35.225.231 -
Added lines 1-21:

Objects

Pre-build objects are available in the APMonitor language to facilitate flowsheets of chemical processing equipment.

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