Changeset 196
- Timestamp:
- Mar 7, 2007, 5:43:43 PM (15 years ago)
- Location:
- branches/newlanguage
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/pressure_changers/compressor.mso
r176 r196 40 40 n as positive (Brief = "Politropic Coefficient"); 41 41 k as positive (Brief = "Isentropic Coefficient"); 42 Cp as cp_mol (Brief = "Heat Capacity" , Unit = 'kJ/(kmol*K)');43 Cv as cv_mol (Brief = "Heat Capacity" , Unit = 'kJ/(kmol*K)');44 Pdiff as press_delta (Brief = "Pressure Increase", Unit='kPa');42 Cp as cp_mol (Brief = "Heat Capacity"); 43 Cv as cv_mol (Brief = "Heat Capacity"); 44 Pdiff as press_delta (Brief = "Pressure Increase", DisplayUnit='kPa'); 45 45 Pratio as positive (Brief = "Pressure Ratio"); 46 Wp as energy_mol (Brief = "Politropic Head" , Unit = 'kJ/kmol');47 Ws as energy_mol (Brief = "Isentropic Head" , Unit = 'kJ/kmol');46 Wp as energy_mol (Brief = "Politropic Head"); 47 Ws as energy_mol (Brief = "Isentropic Head"); 48 48 Tiso as temperature (Brief = "Isentropic Temperature"); 49 49 Effp as positive (Brief = "Politropic efficiency", Lower = 0, Upper = 1); 50 FPower as power (Brief = "Fluid Power" , Unit='kW');50 FPower as power (Brief = "Fluid Power"); 51 51 Mwm as molweight (Brief = "Mixture Molar Weight"); 52 52 -
branches/newlanguage/eml/pressure_changers/pump.mso
r176 r196 44 44 45 45 VARIABLES 46 rho as dens_mass (Brief = "Specific Mass" , Unit='kg/m^3');47 Cp as cp_mol (Brief = "Heat Capacity" , Unit='kJ/kmol/K');48 FPower as power (Brief = "Fluid Power" , Unit='kW');49 BPower as power (Brief = "Brake Power" ,Unit='kW');50 EPower as power (Brief = "Eletrical Potency" , Unit='kW');51 Pdiff as press_delta (Brief = "Pressure Increase", Unit='kPa');46 rho as dens_mass (Brief = "Specific Mass"); 47 Cp as cp_mol (Brief = "Heat Capacity"); 48 FPower as power (Brief = "Fluid Power"); 49 BPower as power (Brief = "Brake Power"); 50 EPower as power (Brief = "Eletrical Potency"); 51 Pdiff as press_delta (Brief = "Pressure Increase", DisplayUnit='kPa'); 52 52 Pratio as positive (Brief = "Pressure Ratio"); 53 Head as head (Brief = "Head Developed" , Unit='kJ/kmol');54 Head_is as head (Brief = "Isoentripic Head" , Unit='kJ/kmol');53 Head as head (Brief = "Head Developed"); 54 Head_is as head (Brief = "Isoentripic Head"); 55 55 Mwm as molweight (Brief = "Mixture Molar Weight"); 56 pvm as pressure (Brief = "Mixture Vapour Pressure" , Unit = 'kPa');56 pvm as pressure (Brief = "Mixture Vapour Pressure"); 57 57 NPSHa as length (Brief = "Available Net Positive Suction Head"); 58 58 NS as positive (Brief = "Specific Speed", Unit = '(rpm*(gal/min)^0.5)/(m^3/4)'); 59 59 Q as flow_vol (Brief = "Volumetric Flow Rate"); 60 vm as vol_mol (Brief = "Mixture Molar Volume" , Unit = 'm^3/kmol');60 vm as vol_mol (Brief = "Mixture Molar Volume"); 61 61 62 62 SET -
branches/newlanguage/eml/pressure_changers/turbine.mso
r176 r196 50 50 Pratio as positive (Brief = "Pressure Ratio"); 51 51 Mwm as molweight (Brief = "Mixture Molar Weight"); 52 rho as dens_mass (Brief = "Specific Mass" , Unit='kg/m^3');52 rho as dens_mass (Brief = "Specific Mass"); 53 53 Cp as cp_mol (Brief = "Heat Capacity"); 54 54 -
branches/newlanguage/eml/pressure_changers/valve.mso
r176 r196 45 45 46 46 VARIABLES 47 Pdiff as press_delta (Brief = "Pressure Increase", Unit = 'kPa');47 Pdiff as press_delta (Brief = "Pressure Increase", DisplayUnit = 'kPa'); 48 48 Qv as flow_vol (Brief = "Volumetric Flow"); 49 49 fc as positive (Brief = "Opening Function"); … … 51 51 Gf as positive (Brief = "Specific Gravity"); 52 52 rho as dens_mass; 53 vm as vol_mol (Brief = "Mixture Molar Volume" , Unit = 'm^3/kmol');53 vm as vol_mol (Brief = "Mixture Molar Volume"); 54 54 55 55 SET -
branches/newlanguage/sample/pressure_changers/sample_compressor.mso
r81 r196 29 29 30 30 DEVICES 31 S1 as s treamTP;31 S1 as source; 32 32 C1 as centrifugal_compressor; 33 33 34 34 CONNECTIONS 35 S1 to C1.Inlet;35 S1.Outlet to C1.Inlet; 36 36 37 37 PARAMETERS 38 PP as CalcObject(Brief="External Physical Properties", File="vrpp");38 PP as Plugin (Brief="External Physical Properties", File="vrpp"); 39 39 NComp as Integer (Default= 1); 40 40 … … 49 49 50 50 SPECIFY 51 S1. F = 41.05 * "kmol/h";52 S1. P = 1 * "atm";53 S1. T = 298 * "K";54 S1. z = [0.79,0.21];55 C1.Outlet.P = 3 * "atm";56 51 S1.Outlet.F = 41.05 * 'kmol/h'; 52 S1.Outlet.P = 1 * 'atm'; 53 S1.Outlet.T = 298 * 'K' ; 54 S1.Outlet.z = [0.79,0.21]; 55 56 C1.Outlet.P = 3 * 'atm'; 57 57 end -
branches/newlanguage/sample/pressure_changers/sample_pump.mso
r81 r196 28 28 29 29 DEVICES 30 S1 as s treamTP;30 S1 as source; 31 31 P1 as centrifugal_pump; 32 32 33 33 CONNECTIONS 34 S1 to P1.Inlet;34 S1.Outlet to P1.Inlet; 35 35 36 36 PARAMETERS 37 PP as CalcObject(Brief="External Physical Properties", File="vrpp");38 Mw as positive (Brief = "Molar Mass", Unit = "kg/kmol");37 PP as Plugin (Brief="External Physical Properties", File="vrpp"); 38 Mw as positive (Brief = "Molar Mass", Unit = 'kg/kmol'); 39 39 NComp as Integer (Default= 1); 40 40 … … 45 45 NComp = PP.NumberOfComponents; 46 46 PP.Derivatives = 0; 47 P1.N = 1000 * "rpm";48 P1.Lev = 0 * "m";47 P1.N = 1000 * 'rpm'; 48 P1.Lev = 0 * 'm'; 49 49 P1.Meff = 0.95; 50 50 P1.Eff = 0.72; 51 P1.Beta = 425e-6 * "1/K";51 P1.Beta = 425e-6 * '1/K'; 52 52 53 53 SPECIFY 54 S1.F = 1000 * "kmol/h"; 55 S1.P = 10 * "atm"; 56 S1.T = 298 * "K" ; 57 S1.z = [1,0]; 58 P1.Pdiff = 8 * "kPa"; 59 #P1.Outlet.P = 2 * "atm"; 60 #P1.BPower = 1 * "kW"; 54 S1.Outlet.F = 1000 * 'kmol/h'; 55 S1.Outlet.P = 10 * 'atm'; 56 S1.Outlet.T = 298 * 'K' ; 57 S1.Outlet.z = [1,0]; 58 59 P1.Pdiff = 8 * 'kPa'; 60 #P1.Outlet.P = 2 * 'atm'; 61 #P1.BPower = 1 * 'kW'; 61 62 62 63 end … … 64 65 FlowSheet pump_Test 65 66 PARAMETERS 66 PP as CalcObject(Brief="Physical Properties",File="vrpp");67 PP as Plugin(Brief="Physical Properties",File="vrpp"); 67 68 NComp as Integer; 68 69 … … 75 76 DEVICES 76 77 p1 as pump; 77 s1 as s tream_therm;78 s1 as source; 78 79 79 80 CONNECTIONS 80 s1 to p1.Inlet;81 s1.Outlet to p1.Inlet; 81 82 82 83 SPECIFY 83 s1.F = 826 * "kmol/h"; 84 s1.P = 549 * "kPa"; 85 s1.T = 313 * "K"; 86 s1.z = 1/NComp; 87 s1.v = 0.68; 88 p1.dP = 90 * "kPa"; 84 s1.Outlet.F = 826 * 'kmol/h'; 85 s1.Outlet.P = 549 * 'kPa'; 86 s1.Outlet.T = 313 * 'K'; 87 s1.Outlet.z = 1/NComp; 88 #s1.Outlet.v = 0.68; 89 90 p1.dP = 90 * 'kPa'; 89 91 90 92 OPTIONS 91 time = [0:20:1000]; 92 mode = "steady"; 93 Dynamic = false; 93 94 end -
branches/newlanguage/sample/pressure_changers/sample_turbine.mso
r81 r196 29 29 30 30 DEVICES 31 S1 as s treamTP;31 S1 as source; 32 32 HT1 as Hidraulic_Turbine; 33 33 34 34 CONNECTIONS 35 S1 to HT1.Inlet;35 S1.Outlet to HT1.Inlet; 36 36 37 37 PARAMETERS 38 PP as CalcObject(Brief="External Physical Properties", File="vrpp");39 Mw as positive (Brief = "Molar Mass", Unit = "kg/kmol");38 PP as Plugin (Brief="External Physical Properties", File="vrpp"); 39 Mw as positive (Brief = "Molar Mass", Unit = 'kg/kmol'); 40 40 NComp as Integer (Default= 1); 41 41 … … 46 46 PP.Derivatives = 0; 47 47 NComp = PP.NumberOfComponents; 48 HT1.Beta = 425e-6 * "1/K";48 HT1.Beta = 425e-6 / 'K'; 49 49 HT1.Meff = 0.95; 50 50 HT1.Eff = 0.72; 51 51 52 52 SPECIFY 53 S1. F = 1000 * "kmol/h";54 S1. P = 5 * "atm";55 S1. T = 298 * "K";56 S1. z = [1];57 #HT1.Pdiff = 100 * "kPa";58 HT1.Outlet.P = 1 * "atm";53 S1.Outlet.F = 1000 * 'kmol/h'; 54 S1.Outlet.P = 5 * 'atm' ; 55 S1.Outlet.T = 298 * 'K' ; 56 S1.Outlet.z = [1]; 57 #HT1.Pdiff = 100 * 'kPa'; 58 HT1.Outlet.P = 1 * 'atm'; 59 59 60 60 end -
branches/newlanguage/sample/pressure_changers/sample_valve.mso
r109 r196 29 29 # with vapour conditions 30 30 PARAMETERS 31 PP as CalcObject(Brief="Physical Properties",File="vrpp");31 PP as Plugin(Brief="Physical Properties",File="vrpp"); 32 32 NComp as Integer; 33 33 … … 40 40 DEVICES 41 41 v1 as valve; 42 s1 as s tream_therm;42 s1 as source; 43 43 44 44 CONNECTIONS 45 s1 to v1.Inlet;45 s1.Outlet to v1.Inlet; 46 46 47 47 SPECIFY 48 s1. P = 150 * "kPa";49 s1. T = 281.75 * "K";50 s1. z = [0.664, 0.336];51 s1.v = 0.0;48 s1.Outlet.P = 150 * 'kPa'; 49 s1.Outlet.T = 281.75 * 'K'; 50 s1.Outlet.z = [0.664, 0.336]; 51 #s1.Outlet.v = 0.0; 52 52 53 53 v1.x = 0.866; 54 v1.Outlet.P = 148 * "kPa";54 v1.Outlet.P = 148 * 'kPa'; 55 55 56 56 SET 57 v1.k = 20 * "gal/min/psi^0.5";57 v1.k = 20 * 'gal/min/psi^0.5'; 58 58 59 59 OPTIONS 60 relativeAccuracy = 1e-6;61 mode = "steady";60 RelativeAccuracy = 1e-6; 61 Dynamic = false; 62 62 end 63 63 … … 65 65 #with liquid conditions 66 66 PARAMETERS 67 PP as CalcObject(Brief="Physical Properties",File="vrpp");67 PP as Plugin(Brief="Physical Properties",File="vrpp"); 68 68 NComp as Integer; 69 69 … … 76 76 DEVICES 77 77 v1 as valve; 78 s1 as s tream_therm;78 s1 as source; 79 79 80 80 CONNECTIONS 81 s1 to v1.Inlet;81 s1.Outlet to v1.Inlet; 82 82 83 83 SPECIFY 84 s1. P = 185 * "kPa";85 s1. T = 328.12 * "K";86 s1. z = [0.001848, 0.9982];87 s1.v = 0.0;84 s1.Outlet.P = 185 * 'kPa'; 85 s1.Outlet.T = 328.12 * 'K'; 86 s1.Outlet.z = [0.001848, 0.9982]; 87 #s1.Outlet.v = 0.0; 88 88 89 89 v1.x = 0.3363; 90 v1.Outlet.P = 183 * "kPa";90 v1.Outlet.P = 183 * 'kPa'; 91 91 92 92 SET 93 v1.k = 20 * "gal/min/psi^0.5";93 v1.k = 20 * 'gal/min/psi^0.5'; 94 94 95 95 OPTIONS 96 relativeAccuracy = 1e-6;97 mode = "steady";96 RelativeAccuracy = 1e-6; 97 Dynamic = false; 98 98 end 99 99 … … 101 101 102 102 DEVICES 103 S1 as s treamTP;103 S1 as source; 104 104 V1 as valve_linear; 105 105 106 106 CONNECTIONS 107 S1 to V1.Inlet;107 S1.Outlet to V1.Inlet; 108 108 109 109 PARAMETERS 110 PP as CalcObject(Brief="External Physical Properties", File="vrpp");110 PP as Plugin (Brief="External Physical Properties", File="vrpp"); 111 111 NComp as Integer (Default= 1); 112 112 … … 119 119 120 120 SPECIFY 121 S1.P = 2169.78 * "kPa"; 122 S1.T = 394.26 * "K" ; 123 S1.z = [1]; 124 V1.Qv = 113.56 * "m^3/h"; 121 S1.Outlet.P = 2169.78 * 'kPa'; 122 S1.Outlet.T = 394.26 * 'K' ; 123 S1.Outlet.z = [1]; 124 125 V1.Qv = 113.56 * 'm^3/h'; 125 126 V1.x = 0.5; 126 V1.cv = 10 * "m^3/h/kPa^0.5";127 V1.cv = 10 * 'm^3/h/kPa^0.5'; 127 128 128 129 OPTIONS 129 relativeAccuracy = 1e-6;130 mode = "steady";130 RelativeAccuracy = 1e-6; 131 Dynamic = false; 131 132 end
Note: See TracChangeset
for help on using the changeset viewer.