Changeset 170 for branches/newlanguage/eml
- Timestamp:
- Mar 1, 2007, 3:35:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/reactors/pfr.mso
r77 r170 30 30 31 31 Model pfr 32 PARAMETERS 33 ext PP as CalcObject (Brief = "External Physical Properties"); 34 ext NComp as Integer(Brief="Number of components"); 35 NReac as Integer(Brief="Number of reactions"); 36 stoic(NComp, NReac) as Real (Brief = "Stoichiometric Matrix"); 37 NDisc as Integer(Brief="Number of points of discretization", Default=10); 38 Mw(NComp) as molweight (Brief="Component Mol Weight"); 32 33 ATTRIBUTES 34 Pallete = true; 35 Brief = "Brief"; 36 Info = 37 "write some information"; 38 39 PARAMETERS 40 41 outer PP as Plugin (Brief = "External Physical Properties"); 42 outer NComp as Integer (Brief="Number of components"); 43 NReac as Integer (Brief="Number of reactions"); 44 stoic(NComp, NReac) as Real (Brief = "Stoichiometric Matrix"); 45 NDisc as Integer (Brief="Number of points of discretization", Default=10); 46 Mw(NComp) as molweight (Brief="Component Mol Weight"); 47 L as length (Brief="Reactor Length"); 48 Across as area (Brief="Cross section area"); 49 50 SET 39 51 40 L as length(Brief="Reactor Length");41 Across as area(Brief="Cross section area");42 43 SET44 52 Mw = PP.MolecularWeight(); 45 53 46 VARIABLES 47 in Inlet as stream; 48 out Outlet as stream; 49 str(NDisc+1) as stream_therm; 54 VARIABLES 55 56 in Inlet as stream (Brief = "Inlet Stream"); 57 out Outlet as stream (Brief = "Outlet Stream"); 58 59 str(NDisc+1) as streamPH; 50 60 vel(NDisc+1) as velocity; 51 61 vol(NDisc+1) as vol_mol; 52 62 rho(NDisc+1) as dens_mass; 53 63 54 q(NDisc) as heat_rate; 55 M(NComp, NDisc) as mol (Brief = "Molar holdup"); 56 Mt(NDisc) as mol (Brief = "Molar holdup"); 57 C(NComp, NDisc) as conc_mol(Brief="Components concentration", Lower=-1e-6); 58 E(NDisc) as energy (Brief="Total Energy Holdup on element"); 59 60 r(NReac, NDisc) as reaction_mol; 61 Hr(NReac, NDisc) as heat_reaction; 64 q(NDisc) as heat_rate; 65 M(NComp, NDisc) as mol (Brief = "Molar holdup"); 66 Mt(NDisc) as mol (Brief = "Molar holdup"); 67 C(NComp, NDisc) as conc_mol (Brief="Components concentration", Lower=-1e-6); 68 E(NDisc) as energy (Brief="Total Energy Holdup on element"); 69 r(NReac, NDisc) as reaction_mol; 70 Hr(NReac, NDisc) as heat_reaction; 62 71 63 EQUATIONS 64 "Vapourisation Fraction" 72 EQUATIONS 73 74 "Vapourisation Fraction" 65 75 str.v = Inlet.v; 66 76 67 77 "Inlet boundary" 68 78 str(1).F = Inlet.F; 69 79 str(1).T = Inlet.T; … … 71 81 str(1).z = Inlet.z; 72 82 73 83 "Outlet boundary" 74 84 Outlet.F = str(NDisc+1).F; 75 85 Outlet.T = str(NDisc+1).T;
Note: See TracChangeset
for help on using the changeset viewer.