Note - this case requires optional compounds
This example illustrates how Alph can be used to do a simple conversion reaction calculation, specifically the burning of methane in air to determine an adiabatic flame temperature. See the more detailed description.
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" : 2147483647, "PropPkg" : "APRNGL", "Tools" : [ { "Type" : "Mixer", "name" : "mixer", "DiagramX" : 104.3643, "DiagramY" : 155.0293, "inputPaths" : [ "air", "fuel" ] }, { "Tools" : [ { "Source" : "mixed", "name" : "feed", "Description" : "parent reactant fluid", "Notes" : "Should be connected to the fluid in the parent containing the reactants.", "DiagramX" : 20.80527, "Type" : "Model Input Tool", "DiagramY" : 96.7365 } ], "name" : "burner", "Notes" : "This model performs a single stoichiometric reaction.\n\nSee the notes for #feed, $s, $basis and $extent for information on the required inputs.\n\nSee the notes for $product, $isoproduct and $q for information on the calculated values.", "DiagramX" : 274.8101, "Variables" : [ { "PropertyFormula" : "#feed*#feed.f", "name" : "r", "Description" : "reactant flows", "DiagramX" : 129.9649, "Type" : "V", "PropertyType" : "X", "DiagramY" : 173.1295 }, { "name" : "s", "Description" : "stoichiometry", "Notes" : "Assign the reaction stoichiometry to the compounds.\n\nminus for reactants\npositive for products\nzero for inerts\n\nFor example:\n\n2H2 + O2 => 2H2O\n\nwould have:\n\nH2 = -2\nO2 = -1\nH2O = 2\nN2 = 0\n", "DiagramX" : 20.14679, "PropertyFormula" : "[-1,1,0,-2,2]", "Type" : "V", "PropertyType" : "X", "DiagramY" : 189.8138 }, { "PropertyFormula" : "#feed.x:$basis * #feed.f * $extent / (-$s:$basis)", "name" : "e", "Description" : "methane consumption", "DiagramX" : 133.5778, "Type" : "V", "PropertyType" : "F", "DiagramY" : 254.7208 }, { "name" : "basis", "Description" : "compound extent is based on", "Notes" : "Compound the reaction extent is based on.\n\nMust be a quoted name like \"methane\"", "DiagramX" : 21.087, "PropertyFormula" : "\"methane\"", "Type" : "V", "PropertyType" : "Vf", "DiagramY" : 226.389 }, { "name" : "extent", "Description" : "fraction of basis compound consumed in the reaction", "Notes" : "Fraction of basis compound consumed in the reaction", "DiagramX" : 22.17861, "PropertyFormula" : "0.95", "Type" : "V", "PropertyType" : "Vf", "DiagramY" : 275.3838 }, { "PropertyFormula" : "$r + $s * $e", "name" : "p", "Description" : "reaction products", "DiagramX" : 210.7751, "Type" : "V", "PropertyType" : "X", "DiagramY" : 224.0997 }, { "name" : "q", "Description" : "reactor q", "Notes" : "Contains the total heat produced by the reaction. Note the use of the rxnbasis property to convert the enthalpies into ones that take into account heats of formation.", "DiagramX" : 416.42, "PropertyFormula" : "(#feed.h + #feed.rxnbasis) * #feed.f\n -\n(@iso.h + @iso.rxnbasis)\n* @iso.f\n\n", "Type" : "V", "PropertyType" : "Q", "DiagramY" : 168.8822 }, { "name" : "product", "Description" : "adiabatic reaction product", "Notes" : "Contains the products assuming the reaction is adiabatic.\n", "DiagramX" : 415.4342, "PropertyFormula" : "@prod", "Type" : "V", "PropertyType" : "Reference", "DiagramY" : 100.061 }, { "name" : "isoproduct", "Description" : "isothermal reaction product", "Notes" : "Contains the products assuming isothermal.", "DiagramX" : 421.5417, "PropertyFormula" : "@iso", "Type" : "V", "PropertyType" : "Reference", "DiagramY" : 209.9726 } ], "diagramX" : -8.232287, "Type" : "Model Tool", "Fluids" : [ { "FlowFormula" : "{ sum $p }", "SumCompForFlow" : false, "DiagramX" : 249.1213, "FirstPropType" : "T", "SecondPropType" : "P", "CompFormula" : "$p", "FirstPropFormula" : "#feed", "Retrograde" : false, "TwoLiquids" : false, "SecondPropFormula" : "#feed", "name" : "iso", "Description" : "isothermal reaction products", "Type" : "F", "DiagramY" : 171.5073 }, { "FlowFormula" : "@iso", "SumCompForFlow" : false, "DiagramX" : 320.3455, "FirstPropType" : "P", "SecondPropType" : "H", "CompFormula" : "@iso", "FirstPropFormula" : "@iso", "Retrograde" : false, "TwoLiquids" : false, "SecondPropFormula" : "( @iso.q + $q ) / @iso.f", "name" : "prod", "Description" : "adiabatic reaction product", "Type" : "F", "DiagramY" : 101.1295 } ], "diagramScale" : 2.089317, "DiagramY" : 154.2459, "diagramY" : -69.9846 } ], "diagramX" : -6.068729, "SelectedToolIndex" : 1, "Program" : "Alph", "NextFluidNumber" : 1, "Fluids" : [ { "FlowFormula" : "400 kgmole/h", "SumCompForFlow" : false, "DiagramX" : 16.06873, "Retrograde" : false, "FirstPropType" : "T", "CompFormula" : "[ 0,0,.79,.21,0 ]", "SecondPropType" : "P", "FirstPropFormula" : "20 C", "TwoLiquids" : false, "SecondPropFormula" : "100 kPa", "name" : "air", "Type" : "F", "DiagramY" : 128.6773 }, { "FlowFormula" : "30 kgmole/h", "SumCompForFlow" : false, "DiagramX" : 16.44849, "FirstPropType" : "T", "SecondPropType" : "P", "CompFormula" : "[ 1,0,0,0,0 ]", "FirstPropFormula" : "20 C", "Retrograde" : false, "TwoLiquids" : false, "SecondPropFormula" : "100 kPa", "name" : "fuel", "Description" : "pure methane", "Type" : "F", "DiagramY" : 189.9702 }, { "FlowFormula" : "#mixer", "SumCompForFlow" : false, "DiagramX" : 191.7962, "FirstPropType" : "P", "SecondPropType" : "H", "CompFormula" : "#mixer", "FirstPropFormula" : "#mixer", "Retrograde" : false, "TwoLiquids" : false, "SecondPropFormula" : "#mixer", "name" : "mixed", "Description" : "air / fuel mixture", "Type" : "F", "DiagramY" : 154.5751 }, { "FlowFormula" : "#burner.product", "SumCompForFlow" : false, "DiagramX" : 358.4761, "Retrograde" : false, "FirstPropType" : "T", "CompFormula" : "#burner.product", "SecondPropType" : "P", "FirstPropFormula" : "#burner.product", "TwoLiquids" : false, "SecondPropFormula" : "#burner.product", "name" : "product", "Type" : "F", "DiagramY" : 153.6326 } ], "Hypotheticals" : [], "diagramY" : -118.6773, "CompoundNames" : [ "METHANE", "CARBON DIOXIDE", "NITROGEN", "OXYGEN", "WATER" ], "SelectedVariableIndex" : 2147483647, "Variables" : [], "CaseName" : "combustion", "CurrentUnitSet" : 1, "NextVariableNumber" : 1, "Version" : 1.4, "diagramScale" : 2.395582, "DisplayedProperties" : { "-4" : "y", "8" : "y", "-2" : "y", "-1" : "y", "10001" : "y", "-6" : "y", "9" : "y" } }