You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Community,
I am trying to simulate an originary heatpump with sharpfluids. The pressure of evaporator and compressor is known. Starting with Point 1 (after Evaporator, before Compressor), I have saturated gas. If I check the temperature table it must be the value for Vapor, but SharpFluids always returns the value for Liquid. How can I update the fluid to gas, and later to superheated vapor after the compressor?
The text was updated successfully, but these errors were encountered:
Here is an code example for a heatpump running with Ammonia.
Hope this can give you an idea of how to get started.
Feel free to ask more questions if you have any :-)
//Setting up the fluidsFluidCompressorIn=newFluid(FluidList.Ammonia);FluidCompressorOut=newFluid(FluidList.Ammonia);FluidCondenserIn=newFluid(FluidList.Ammonia);FluidCondenserOut=newFluid(FluidList.Ammonia);FluidExpansionValveIn=newFluid(FluidList.Ammonia);FluidExpansionValveOut=newFluid(FluidList.Ammonia);FluidEvaporatorIn=newFluid(FluidList.Ammonia);FluidEvaporatorOut=newFluid(FluidList.Ammonia);//Setting for heatpumpPressurePEvap=Pressure.FromBar(10);PressurePcond=Pressure.FromBar(20);TemperatureSuperHeat=Temperature.FromKelvins(5);//EvapEvaporatorIn.UpdatePX(PEvap,0);EvaporatorOut.UpdatePX(PEvap,1);//Adding superheat to evapEvaporatorOut.UpdatePT(EvaporatorOut.Pressure,EvaporatorOut.Temperature+SuperHeat);//CompresserCompressorIn.Copy(EvaporatorOut);CompressorOut.UpdatePS(Pcond,CompressorIn.Entropy);SpecificEnergyH2s=CompressorOut.Enthalpy;//Compressor equationSpecificEnergyh2=((H2s-CompressorIn.Enthalpy)/0.85)+CompressorIn.Enthalpy;CompressorOut.UpdatePH(Pcond,h2);CondenserIn.Copy(CompressorOut);CondenserOut.UpdatePX(CondenserIn.Pressure,0);ExpansionValveIn.Copy(CondenserOut);ExpansionValveOut.UpdatePH(EvaporatorIn.Pressure,ExpansionValveIn.Enthalpy);EvaporatorIn.Copy(ExpansionValveOut);//Run this in loop until it is stable
Hello Community,
I am trying to simulate an originary heatpump with sharpfluids. The pressure of evaporator and compressor is known. Starting with Point 1 (after Evaporator, before Compressor), I have saturated gas. If I check the temperature table it must be the value for Vapor, but SharpFluids always returns the value for Liquid. How can I update the fluid to gas, and later to superheated vapor after the compressor?
The text was updated successfully, but these errors were encountered: