Changeset 605 for branches/gui/eml


Ignore:
Timestamp:
Aug 22, 2008, 1:16:35 AM (15 years ago)
Author:
gerson bicca
Message:

expander model finished (missing documentation)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/eml/pressure_changers/turbine.mso

    r604 r605  
    158158        FluidPower      as power                (Brief = "Fluid Power");
    159159        BrakePower      as power                (Brief = "Brake Power");
    160         PowerLoss       as power                (Brief = "Power Losses");
     160        PowerLoss       as power                (Brief = "Power Losses",Lower=0);
    161161        Mwm                     as molweight    (Brief = "Mixture Molar Weight");
    162162        rho                     as dens_mass    (Brief = "Mass Density");
     
    207207        HeadIsentropic*Mwm = (PP.VapourEnthalpy(Tisentropic,Outlet.P,Outlet.z)-Inlet.h);
    208208
     209"Actual Head"
     210        Head*Mwm = (Outlet.h-Inlet.h);
     211
     212"Isentropic Coefficient"
     213        HeadIsentropic = (0.5*Zfac_in+0.5*Zfac_out)*(1/Mwm)*(IseCoeff/(IseCoeff-1.001))*Rgas*Inlet.T*((Outlet.P/Inlet.P)^((IseCoeff-1.001)/IseCoeff) - 1);
     214
    209215"Isentropic Outlet Temperature"
    210216        PP.VapourEntropy(Tisentropic, Outlet.P, Outlet.z) = PP.VapourEntropy(Inlet.T, Inlet.P, Inlet.z);
     
    217223        Outlet.T = Tisentropic;
    218224
    219 "Head"
    220         Head = HeadIsentropic;
    221 
    222 "Isentropic Coefficient"
    223         IseCoeff= 1;
    224 
    225225        else
    226 "Isentropic Coefficient"
    227         #HeadIsentropic = (0.5*Zfac_in+0.5*Zfac_out)*(1/Mwm)*(IseCoeff/(IseCoeff-1.001))*Rgas*Inlet.T*((Outlet.P/Inlet.P)^((IseCoeff-1.001)/IseCoeff) - 1);
    228         Head = (0.5*Zfac_in+0.5*Zfac_out)*(1/Mwm)*(IseCoeff/(IseCoeff-1.001))*Rgas*Inlet.T*((Outlet.P/Inlet.P)^((IseCoeff-1.001)/IseCoeff) - 1);
    229226
    230227"Discharge Temperature"
    231         Outlet.T = Inlet.T*((Outlet.P/Inlet.P)^((IseCoeff-1.001)/IseCoeff));
    232 
    233 "Head"
    234         Head*Mwm = (PP.VapourEnthalpy(Outlet.T,Outlet.P,Outlet.z)-Inlet.h);
     228        (PP.VapourEnthalpy(Outlet.T,Outlet.P,Outlet.z)-Inlet.h)= (PP.VapourEnthalpy(Tisentropic,Outlet.P,Outlet.z)-Inlet.h)*IsentropicEff;
    235229
    236230end
    237231
    238232"Fluid Power"
    239         FluidPower*IsentropicEff = Head*sum(Mw*Inlet.z)*Inlet.F;
    240         #FluidPower = Head*sum(Mw*Inlet.z)*Inlet.F;
     233        FluidPower = Head*sum(Mw*Inlet.z)*Inlet.F;
    241234
    242235"Brake Power"
     
    244237
    245238"Brake Power"
    246         BrakePower = (FluidPower/MechanicalEff)-PowerLoss;
     239        BrakePower = FluidPower*MechanicalEff;
    247240
    248241"Power Loss"
Note: See TracChangeset for help on using the changeset viewer.