diff --git a/doc/input-output-reference/src/overview/group-electric-load-center-generator.tex b/doc/input-output-reference/src/overview/group-electric-load-center-generator.tex index 5dbd40ccb4f..d562b543600 100644 --- a/doc/input-output-reference/src/overview/group-electric-load-center-generator.tex +++ b/doc/input-output-reference/src/overview/group-electric-load-center-generator.tex @@ -4360,6 +4360,8 @@ \subsubsection{Inputs}\label{inputs-19-000} This field describes the portion of the compressor electrical power that is lost to the surroundings. The rest of the energy is added to the fuel stream. A heat loss factor of 1.0 indicates that all the heat is lost to the surroundings and no energy is added to the fuel inlet stream. +Note with \emph{LiquidGeneric} fuel type, currently this value would not taken into effect. In this case a heat loss factor of 1.0 is always used for this fuel type. + \paragraph{Field: Fuel Type}\label{field-fuel-type-3} Choose between GaseousConstituents or LiquidGeneric . diff --git a/src/EnergyPlus/FuelCellElectricGenerator.cc b/src/EnergyPlus/FuelCellElectricGenerator.cc index 11fccbb5208..08e408c6171 100644 --- a/src/EnergyPlus/FuelCellElectricGenerator.cc +++ b/src/EnergyPlus/FuelCellElectricGenerator.cc @@ -1549,10 +1549,15 @@ namespace FuelCellElectricGenerator { if (this->FCPM.NdotFuel <= 0.0) { // just pass through, domain probably collapsed in modeling state.dataGenerator->FuelSupply(this->FuelSupNum).TfuelIntoFCPM = state.dataGenerator->FuelSupply(this->FuelSupNum).TfuelIntoCompress; } else { - state.dataGenerator->FuelSupply(this->FuelSupNum).TfuelIntoFCPM = - ((1.0 - state.dataGenerator->FuelSupply(this->FuelSupNum).CompPowerLossFactor) * - state.dataGenerator->FuelSupply(this->FuelSupNum).PfuelCompEl / (this->FCPM.NdotFuel * Cp * 1000.0)) + - state.dataGenerator->FuelSupply(this->FuelSupNum).TfuelIntoCompress; // 1000 Cp units mol-> kmol + if (state.dataGenerator->FuelSupply(this->FuelSupNum).NumConstituents == 0) { + state.dataGenerator->FuelSupply(this->FuelSupNum).TfuelIntoFCPM = + state.dataGenerator->FuelSupply(this->FuelSupNum).TfuelIntoCompress; + } else { + state.dataGenerator->FuelSupply(this->FuelSupNum).TfuelIntoFCPM = + ((1.0 - state.dataGenerator->FuelSupply(this->FuelSupNum).CompPowerLossFactor) * + state.dataGenerator->FuelSupply(this->FuelSupNum).PfuelCompEl / (this->FCPM.NdotFuel * Cp * 1000.0)) + + state.dataGenerator->FuelSupply(this->FuelSupNum).TfuelIntoCompress; // 1000 Cp units mol-> kmol + } } // calc skin losses from fuel compressor state.dataGenerator->FuelSupply(this->FuelSupNum).QskinLoss =