Alph Hysim 1.0 Example

Note - this case requires compounds not available in Alph Jr.

This is really just an exercise in nostalgia on my part, by using Alph to recreate the example from the manual for the 1980 release of Hysim 1.0. See the more detailed description..

Loading this case into Alph

Browse this page with the web browser on your iPhone. Tap and hold in the gray area below to select the whole region and and then tap the copy button that appears. Run Alph and use the Load Case command to load this case from the paste board.

{
 "SelectedFluidIndex" : 5,
 "PropPkg" : "APRNGL",
 "Tools" : [
   {
     "Type" : "Copy Values",
     "Source" : "f19",
     "Target" : "f5",
     "name" : "recycle",
     "DiagramX" : 331.5127,
     "DiagramY" : 210.3248
   }
 ],
 "diagramX" : 0,
 "SelectedToolIndex" : 0,
 "Program" : "Alph",
 "NextFluidNumber" : 20,
 "Fluids" : [
   {
     "CompFormula" : "[ 62494.9,5917.7,2296.9,494.5,877.3,287.1,382.8,470.6,446.6,358.9,295.1,215.3,159.5,4434.5,167.5,454.6 ]",
     "Retrograde" : false,
     "FlowFormula" : "0.5 mmscfh",
     "SecondPropFormula" : "600 psia",
     "name" : "f1",
     "DiagramX" : 10,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "T",
     "SecondPropType" : "P",
     "DiagramY" : 10,
     "FirstPropFormula" : "60 F"
   },
   {
     "CompFormula" : "@f1.v",
     "Retrograde" : false,
     "FlowFormula" : "@f1.v",
     "SecondPropFormula" : "@f1.v",
     "name" : "f4",
     "DiagramX" : 93.31327,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "P",
     "SecondPropType" : "S",
     "DiagramY" : 52.53409,
     "FirstPropFormula" : "915 psia"
   },
   {
     "CompFormula" : "[ 0.486777,0.209832,0.223419,0.022303,0.037553,4.322275e-03,9.273834e-04,2.416083e-04,1.310651e-05,1.528558e-06,1.669140e-07,1.593618e-08,3.023694e-03,0.011586,1.510238e-09,1.179353e-12 ]",
     "Retrograde" : false,
     "FlowFormula" : "      46.42974 lbmole/h",
     "SecondPropFormula" : "    5400.67785 Btu/lbmol",
     "name" : "f5",
     "DiagramX" : 13.47389,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "P",
     "SecondPropType" : "H",
     "DiagramY" : 109.3213,
     "FirstPropFormula" : "    915.00000 psia"
   },
   {
     "CompFormula" : "@f4 * @f4.f + @f5 * @ f5.f",
     "Retrograde" : false,
     "FlowFormula" : "@f4 + @f5",
     "SecondPropFormula" : "(@f4.q + @f5.q) / @f6.f",
     "name" : "f6",
     "DiagramX" : 104,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "P",
     "SecondPropType" : "H",
     "DiagramY" : 125.0602,
     "FirstPropFormula" : "@f4"
   },
   {
     "CompFormula" : "@f6",
     "Retrograde" : false,
     "FlowFormula" : "@f6",
     "SecondPropFormula" : "(@f6.q - @f9.q + @f10.v.q)/\n@f7.f",
     "name" : "f7",
     "DiagramX" : 138.9108,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "P",
     "SecondPropType" : "H",
     "DiagramY" : 246.9213,
     "FirstPropFormula" : "910 psia"
   },
   {
     "CompFormula" : "@f10.v",
     "Retrograde" : false,
     "FlowFormula" : "@f10.v",
     "SecondPropFormula" : "890 psia",
     "name" : "f9",
     "DiagramX" : 62.27552,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "T",
     "SecondPropType" : "P",
     "DiagramY" : 201.3328,
     "FirstPropFormula" : "100 F"
   },
   {
     "CompFormula" : "@f6",
     "Retrograde" : false,
     "FlowFormula" : "@f6",
     "SecondPropFormula" : "905 psia",
     "name" : "f10",
     "DiagramX" : 210,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "T",
     "SecondPropType" : "P",
     "DiagramY" : 81,
     "FirstPropFormula" : "5 F"
   },
   {
     "CompFormula" : "@f10.l",
     "Retrograde" : false,
     "FlowFormula" : "@f10.l",
     "SecondPropFormula" : "350 psia",
     "name" : "f12",
     "DiagramX" : 238.0286,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "T",
     "SecondPropType" : "P",
     "DiagramY" : 44.00459,
     "FirstPropFormula" : "32 F"
   },
   {
     "CompFormula" : "@fracFeed * $frac",
     "Retrograde" : false,
     "FlowFormula" : "{ sum @fracFeed * @fracFeed.x * $frac }",
     "SecondPropFormula" : "1",
     "name" : "f16",
     "DiagramX" : 216.3102,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "P",
     "SecondPropType" : "Vf",
     "DiagramY" : -25.5167,
     "FirstPropFormula" : "215 psia"
   },
   {
     "CompFormula" : "@f1.l * @f1.l.f + @f12.l * @f12.l.f",
     "Retrograde" : false,
     "FlowFormula" : "@f1.l + @f12.l",
     "SecondPropFormula" : "(@f1.l.q + @f12.l.q) /\n@fracFeed.f ",
     "name" : "fracFeed",
     "DiagramX" : 108.7335,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "P",
     "SecondPropType" : "H",
     "DiagramY" : -57.89834,
     "FirstPropFormula" : "215 psia"
   },
   {
     "CompFormula" : "@fracFeed * (1-$frac)",
     "Retrograde" : false,
     "FlowFormula" : "{ sum @fracFeed * @fracFeed.x * (1-$frac) }",
     "SecondPropFormula" : "0",
     "name" : "f17",
     "DiagramX" : 286.5283,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "P",
     "SecondPropType" : "Vf",
     "DiagramY" : -130.4634,
     "FirstPropFormula" : "215 psia"
   },
   {
     "CompFormula" : "@f12.v * @f12.v.f + @f16 * @f16.f",
     "Retrograde" : false,
     "FlowFormula" : "@f12.v + @f16",
     "SecondPropFormula" : "( @f12.v.q + @f16.q ) /\n@f18.f",
     "name" : "f18",
     "DiagramX" : 322.5261,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "P",
     "SecondPropType" : "H",
     "DiagramY" : -19.58758,
     "FirstPropFormula" : "350 psia"
   },
   {
     "CompFormula" : "@f18",
     "Retrograde" : false,
     "FlowFormula" : "@f18",
     "SecondPropFormula" : "@f18",
     "name" : "f19",
     "DiagramX" : 279.5762,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "P",
     "SecondPropType" : "S",
     "DiagramY" : 158.914,
     "FirstPropFormula" : "915 psia"
   },
   {
     "CompFormula" : "[ 0.642023,0.311284,3.891051e-03,0.038911,1.945525e-03,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,1.945525e-03,0.000000,0.000000 ]",
     "Retrograde" : false,
     "FlowFormula" : "      60.00000 lbmole/h",
     "SecondPropFormula" : "    3183.96664 Btu/lbmol",
     "name" : "initialF5",
     "DiagramX" : 30,
     "TwoLiquids" : false,
     "SumCompForFlow" : false,
     "FirstPropType" : "P",
     "SecondPropType" : "H",
     "DiagramY" : 148.5796,
     "FirstPropFormula" : "    915.00000 psia"
   }
 ],
 "Hypotheticals" : [
   {
     "Acentric" : ".535",
     "BoilingPoint" : "384.6 f",
     "Tc" : "638.8 k",
     "LiqDensity" : "59.6 api",
     "Pc" : "19.4 atm",
     "MoleWt" : "156.3",
     "Name" : "C11*"
   },
   {
     "BoilingPoint" : "522 f",
     "LiqDensity" : "51 api",
     "MoleWt" : "215",
     "Name" : "C12+*"
   }
 ],
 "diagramY" : 140.4634,
 "CompoundNames" : [
   "METHANE",
   "ETHANE",
   "PROPANE",
   "ISOBUTANE",
   "n-BUTANE",
   "ISOPENTANE",
   "n-PENTANE",
   "n-HEXANE",
   "n-HEPTANE",
   "n-OCTANE",
   "n-NONANE",
   "n-DECANE",
   "CARBON DIOXIDE",
   "NITROGEN"
 ],
 "SelectedVariableIndex" : 4,
 "Variables" : [
   {
     "PropertyType" : "X",
     "name" : "frac",
     "DiagramX" : 105.7396,
     "DiagramY" : -108.535,
     "PropertyFormula" : "[ 1,.98,.97,.25,.2,.05,.005,.001.0,0,0,0,0,1,1,0,0]"
   },
   {
     "PropertyType" : "Q",
     "name" : "v70",
     "DiagramX" : 174.6753,
     "DiagramY" : 28.12868,
     "PropertyFormula" : "@f4-@f1.v"
   },
   {
     "PropertyType" : "Q",
     "name" : "v71",
     "DiagramX" : 230.4328,
     "DiagramY" : 265.593,
     "PropertyFormula" : "@f10-@f7"
   },
   {
     "PropertyType" : "Q",
     "name" : "v72",
     "DiagramX" : 255.3862,
     "DiagramY" : 228.2416,
     "PropertyFormula" : "@f12-@f10.l"
   },
   {
     "PropertyType" : "Q",
     "name" : "v73",
     "DiagramX" : 304.2594,
     "DiagramY" : -74.29064,
     "PropertyFormula" : "@f16+@f17-@f12.l-@f1.l"
   },
   {
     "PropertyType" : "Q",
     "name" : "v74",
     "DiagramX" : 345.0002,
     "DiagramY" : 119.4442,
     "PropertyFormula" : "@f19-@f18"
   }
 ],
 "CaseName" : "hysim 1",
 "CurrentUnitSet" : 2,
 "NextVariableNumber" : 7,
 "Version" : 1.101,
 "diagramScale" : 0.7594932,
 "DisplayedProperties" : {
   "0" : "y",
   "-4" : "y",
   "8" : "y",
   "-2" : "y",
   "-1" : "y",
   "10001" : "y",
   "-6" : "y",
   "9" : "y"
 }
}