diff --git a/src/EnergyPlus/DataHeatBalance.hh b/src/EnergyPlus/DataHeatBalance.hh index 504707e0972..46bfdebbdfb 100644 --- a/src/EnergyPlus/DataHeatBalance.hh +++ b/src/EnergyPlus/DataHeatBalance.hh @@ -330,7 +330,7 @@ namespace DataHeatBalance { // ! Taking the still gas thermal conductivity for air at 0.0267 W/m-K (at 300K), then // ! this limit of 1.0 corresponds to a completely still layer of air that is around 0.025 m thick // ! 5) The previous limit of 0.1 (before ver. 3.1) caused loads initialization problems in test files - extern Real64 HighHConvLimit; // upper limit for HConv, mostly used for user input limits in practics. !W/m2-K + extern Real64 HighHConvLimit; // upper limit for HConv, mostly used for user input limits in practice. !W/m2-K extern Real64 MaxAllowedDelTempCondFD; // Convergence criteria for inside surface temperatures for CondFD extern std::string BuildingName; // Name of building @@ -702,7 +702,7 @@ namespace DataHeatBalance { Real64 MoistBCoeff; // Moisture Equation Coefficient b Real64 MoistCCoeff; // Moisture Equation Coefficient c Real64 MoistDCoeff; // Moisture Equation Coefficient d - Real64 EMPDSurfaceDepth; // Surface-layer penetrtion depth (m) + Real64 EMPDSurfaceDepth; // Surface-layer penetration depth (m) Real64 EMPDDeepDepth; // Deep-layer penetration depth (m) Real64 EMPDCoatingThickness; // Coating Layer Thickness (m) Real64 EMPDmuCoating; // Coating Layer water vapor diffusion resistance factor (dimensionless) @@ -743,7 +743,7 @@ namespace DataHeatBalance { Real64 SpecTemp; // Temperature corresponding to the specified material properties int TCParent; // Reference to the parent object WindowMaterial:Glazing:Thermochromic // Simple Glazing System - Real64 SimpleWindowUfactor; // user input for simple window U-factor with film coefs (W/m2-k) + Real64 SimpleWindowUfactor; // user input for simple window U-factor with film coeffs (W/m2-k) Real64 SimpleWindowSHGC; // user input for simple window Solar Heat Gain Coefficient (non-dimensional) Real64 SimpleWindowVisTran; // (optional) user input for simple window Visual Transmittance (non-dimensional) bool SimpleWindowVTinputByUser; // false means not input, true means user provide VT input @@ -781,17 +781,17 @@ namespace DataHeatBalance { Real64 ScreenWireSpacing; // insect screen wire spacing Real64 ScreenWireDiameter; // insect screen wire diameter Real64 SlatWidth; // slat width - Real64 SlatSeparation; // slat seperation + Real64 SlatSeparation; // slat separation Real64 SlatCrown; // slat crown Real64 SlatAngle; // slat angle int SlatAngleType; // slat angle control type, 0=fixed, 1=maximize solar, 2=block beam - int SlatOrientation; // horizontal or veritical + int SlatOrientation; // horizontal or vertical std::string GasName; // Name of gas type ("Air", "Argon", "Krypton", "Xenon") HysteresisPhaseChange::HysteresisPhaseChange * phaseChange = nullptr; bool GlassSpectralAndAngle; // if SpectralAndAngle is an entered choice int GlassSpecAngTransDataPtr; // Data set index of transmittance as a function of spectral and angle associated with a window glass material - int GlassSpecAngFRefleDataPtr; // Data set index of front reflectance as a function of spectral and angle associated with a window glass material - int GlassSpecAngBRefleDataPtr; // Data set index of back reflectance as a function of spectral and angle associated with a window glass material + int GlassSpecAngFRefleDataPtr; // Data set index of front reflectance as a function of spectral and angle associated with a window glass material + int GlassSpecAngBRefleDataPtr; // Data set index of back reflectance as a function of spectral and angle associated with a window glass material // Default Constructor MaterialProperties() : @@ -950,7 +950,7 @@ namespace DataHeatBalance { SlatOrientation( 0 ), GlassSpectralAndAngle( false ), GlassSpecAngTransDataPtr( 0 ), - GlassSpecAngFRefleDataPtr( 0 ), + GlassSpecAngFRefleDataPtr( 0 ), GlassSpecAngBRefleDataPtr( 0 ) {} @@ -962,7 +962,7 @@ namespace DataHeatBalance { std::string Name; // Name int NumGlzMat; // Number of TC glazing materials Array1D_int LayerPoint; // Layer pointer - Array1D< Real64 > SpecTemp; // Temperature corresponding to the specified TC glaing optical data + Array1D< Real64 > SpecTemp; // Temperature corresponding to the specified TC glazing optical data Array1D_string LayerName; // Name of the referenced WindowMaterial:Glazing object // Default Constructor @@ -1124,7 +1124,7 @@ namespace DataHeatBalance { //For CFactor underground walls Real64 CFactor; Real64 Height; - //For FFactor slabs-on-grade or undeerground floors + //For FFactor slabs-on-grade or underground floors Real64 FFactor; Real64 Area; Real64 PerimeterExposed; @@ -1349,7 +1349,7 @@ namespace DataHeatBalance { bool RefrigCaseRA; // TRUE means there is potentially heat removal from return air // from refrigeration cases for this zone Real64 InternalHeatGains; // internal loads (W) - Real64 NominalInfilVent; // internal infiltration/ventilaton + Real64 NominalInfilVent; // internal infiltration/ventilation Real64 NominalMixing; // internal mixing/cross mixing bool TempOutOfBoundsReported; // if any temp out of bounds errors, first will show zone details. bool EnforcedReciprocity; // if zone required forced reciprocity -- @@ -1365,11 +1365,11 @@ namespace DataHeatBalance { Real64 ZoneVolCapMultpCO2; // Zone carbon dioxide capacity multiplier Real64 ZoneVolCapMultpGenContam; // Zone generic contaminant capacity multiplier Real64 ZoneVolCapMultpSensHM; // Calculated temperature capacity multiplier by hybrid model - Real64 ZoneVolCapMultpSensHMSum; // for temperature capacity multiplier average calcualtion - Real64 ZoneVolCapMultpSensHMCountSum; // for temperature capacity multiplier average calcualtion + Real64 ZoneVolCapMultpSensHMSum; // for temperature capacity multiplier average calculation + Real64 ZoneVolCapMultpSensHMCountSum; // for temperature capacity multiplier average calculation Real64 ZoneVolCapMultpSensHMAverage; // Temperature capacity multiplier average - Real64 MCPIHM; // Calcualted mass flow rate by hybrid model - Real64 InfilOAAirChangeRateHM; // Calcualted infilgration air change per hour by hybrid model + Real64 MCPIHM; // Calculated mass flow rate by hybrid model + Real64 InfilOAAirChangeRateHM; // Calculated infiltration air change per hour by hybrid model // Default Constructor ZoneData() : @@ -1386,7 +1386,7 @@ namespace DataHeatBalance { UserEnteredFloorArea( AutoCalculate ), FloorArea( 0.0 ), CalcFloorArea( 0.0 ), - CeilingArea( 0.0 ), + CeilingArea( 0.0 ), HasFloor( false ), HasRoof( false ), HasInterZoneWindow( false ), @@ -1826,7 +1826,7 @@ namespace DataHeatBalance { Real64 AirVolFlowCurDensity; // Air volume flow rate at current density [m3/s] Real64 AirMassFlow; // Air mass flow rate [kg/s] Real64 AirInletDryBulbT; // Air inlet dry-bulb temperature [C] - Real64 AirInletDewpointT; // Air inlet dewpoit temperature [C] + Real64 AirInletDewpointT; // Air inlet dewpoint temperature [C] Real64 AirInletRelHum; // Air inlet relative humidity [%] Real64 AirOutletDryBulbT; // Air outlet dry-bulb temperature [C] Real64 SHI; // Supply Heat Index [] @@ -2131,11 +2131,11 @@ namespace DataHeatBalance { int InducedAirSchedPtr; // Induced Outdoor Air Fraction Schedule Real64 BalMassFlowRate; // balanced mass flow rate Real64 InfMassFlowRate; // unbalanced mass flow rate from infiltration - Real64 NatMassFlowRate; // unbalanced mass flow rate from natural ventilaton - Real64 ExhMassFlowRate; // unbalanced mass flow rate from exhaust ventilaton - Real64 IntMassFlowRate; // unbalanced mass flow rate from intake ventilaton - Real64 ERVMassFlowRate; // unbalanced mass flow rate from stand-alond ERV - bool OneTimeFlag; // One time flag to get nodes of stand alond ERV + Real64 NatMassFlowRate; // unbalanced mass flow rate from natural ventilation + Real64 ExhMassFlowRate; // unbalanced mass flow rate from exhaust ventilation + Real64 IntMassFlowRate; // unbalanced mass flow rate from intake ventilation + Real64 ERVMassFlowRate; // unbalanced mass flow rate from stand-alone ERV + bool OneTimeFlag; // One time flag to get nodes of stand alone ERV int NumOfERVs; // Number of zone stand alone ERVs Array1D_int ERVInletNode; // Stand alone ERV supply air inlet nodes Array1D_int ERVExhaustNode; // Stand alone ERV air exhaust nodes @@ -2241,7 +2241,7 @@ namespace DataHeatBalance { bool EnforceZoneMassBalance; // flag to enforce zone air mass conservation bool BalanceMixing; // flag to allow mixing to be adjusted for zone mass balance int InfiltrationTreatment; // determines how infiltration is treated for zone mass balance - int InfiltrationZoneType; // specifies which types of zones allo infiltration to be changed + int InfiltrationZoneType; // specifies which types of zones allow infiltration to be changed //Note, unique global object // Default Constructor @@ -2303,7 +2303,7 @@ namespace DataHeatBalance { Reference< Real64 > PtrConvectGainRate; // fortan POINTER to value of convection heat gain rate for device, watts Real64 ConvectGainRate; // current timestep value of convection heat gain rate for device, watts Reference< Real64 > PtrReturnAirConvGainRate; // fortan POINTER to value of return air convection heat gain rate for device, W - Real64 ReturnAirConvGainRate; // urrent timestep value of return air convection heat gain rate for device, W + Real64 ReturnAirConvGainRate; // current timestep value of return air convection heat gain rate for device, W Reference< Real64 > PtrRadiantGainRate; // fortan POINTER to value of thermal radiation heat gain rate for device, watts Real64 RadiantGainRate; // current timestep value of thermal radiation heat gain rate for device, watts Reference< Real64 > PtrLatentGainRate; // fortan POINTER to value of moisture gain rate for device, Watts @@ -2344,7 +2344,7 @@ namespace DataHeatBalance { Real64 QLTCRA; // ENERGY CONVECTED TO RETURN AIR FROM LIGHTS Real64 QLTSW; // VISIBLE ENERGY FROM LIGHTS Real64 QEECON; // ENERGY CONVECTED FROM ELECTRIC EQUIPMENT - Real64 QEERAD; // ENERCY RADIATED FROM ELECTRIC EQUIPMENT + Real64 QEERAD; // ENERGY RADIATED FROM ELECTRIC EQUIPMENT Real64 QEELost; // Energy from Electric Equipment (lost) Real64 QEELAT; // LATENT ENERGY FROM Electric Equipment Real64 QGECON; // ENERGY CONVECTED FROM GAS EQUIPMENT @@ -2803,7 +2803,7 @@ namespace DataHeatBalance { Real64 VentilVolumeCurDensity; // Volume of Air {m3} due to ventilation at current zone air density Real64 VentilVolumeStdDensity; // Volume of Air {m3} due to ventilation at standard density (adjusted for elevation) Real64 VentilVdotCurDensity; // Volume flow rate of Air {m3/s} due to ventilation at current zone air density - Real64 VentilVdotStdDensity; // Volume flowr of Air {m3/s} due to ventilation at standard density (adjusted elevation) + Real64 VentilVdotStdDensity; // Volume flow rate of Air {m3/s} due to ventilation at standard density (adjusted elevation) Real64 VentilMass; // Mass of Air {kg} due to ventilation Real64 VentilMdot; // Mass flow rate of Air {kg/s} due to ventilation Real64 VentilAirChangeRate; // Ventilation air change rate (ach) @@ -2931,9 +2931,9 @@ namespace DataHeatBalance { Real64 NumOccAccum; // number of occupants accumulating for entire simulation Real64 NumOccAccumTime; // time that the number of occupants is accumulating to compute average // - zone time step - Real64 TotTimeOcc; // time occuped (and the mechnical ventilation volume is accumulating) + Real64 TotTimeOcc; // time occupied (and the mechanical ventilation volume is accumulating) // - system time step - Real64 MechVentVolTotal; // volume for mechnical ventilation of outside air for entire simulation + Real64 MechVentVolTotal; // volume for mechanical ventilation of outside air for entire simulation Real64 MechVentVolMin; // a large number since finding minimum volume Real64 InfilVolTotal; // volume for infiltration of outside air for entire simulation Real64 InfilVolMin; // a large number since finding minimum volume @@ -2946,11 +2946,11 @@ namespace DataHeatBalance { Real64 SHGSAnHvacHt; // hvac air heating Real64 SHGSAnHvacCl; // hvac air cooling Real64 SHGSAnHvacATUHt; // heating by Air Terminal Unit [J] - Real64 SHGSAnHvacATUCl; // coolinging by Air Terminal Unit [J] + Real64 SHGSAnHvacATUCl; // cooling by Air Terminal Unit [J] Real64 SHGSAnSurfHt; // heated surface heating Real64 SHGSAnSurfCl; // cooled surface cooling Real64 SHGSAnPeoplAdd; // people additions - Real64 SHGSAnLiteAdd; // lighing addition + Real64 SHGSAnLiteAdd; // lighting addition Real64 SHGSAnEquipAdd; // equipment addition Real64 SHGSAnWindAdd; // window addition Real64 SHGSAnIzaAdd; // inter zone air addition @@ -2971,7 +2971,7 @@ namespace DataHeatBalance { Real64 SHGSClSurfHt; // heated surface heating Real64 SHGSClSurfCl; // cooled surface cooling Real64 SHGSClPeoplAdd; // people additions - Real64 SHGSClLiteAdd; // lighing addition + Real64 SHGSClLiteAdd; // lighting addition Real64 SHGSClEquipAdd; // equipment addition Real64 SHGSClWindAdd; // window addition Real64 SHGSClIzaAdd; // inter zone air addition @@ -2992,7 +2992,7 @@ namespace DataHeatBalance { Real64 SHGSHtSurfHt; // heated surface heating Real64 SHGSHtSurfCl; // cooled surface cooling Real64 SHGSHtPeoplAdd; // people additions - Real64 SHGSHtLiteAdd; // lighing addition + Real64 SHGSHtLiteAdd; // lighting addition Real64 SHGSHtEquipAdd; // equipment addition Real64 SHGSHtWindAdd; // window addition Real64 SHGSHtIzaAdd; // inter zone air addition @@ -3188,14 +3188,14 @@ namespace DataHeatBalance { Real64 ITEqUPSPower; // Zone ITE UPS Electric Power [W] Real64 ITEqCPUPowerAtDesign; // Zone ITE CPU Electric Power at Design Inlet Conditions [W] Real64 ITEqFanPowerAtDesign; // Zone ITE Fan Electric Power at Design Inlet Conditions [W] - Real64 ITEqUPSGainRateToZone; // Zone ITE UPS Heat Gain toZone Rate [W] - convective gain + Real64 ITEqUPSGainRateToZone; // Zone ITE UPS Heat Gain to Zone Rate [W] - convective gain Real64 ITEqConGainRateToZone; // Zone ITE Total Heat Gain toZone Rate [W] - convective gain - includes heat gain from UPS, plus CPU and Fans if room air model not used Real64 ITEqCPUConsumption; // Zone ITE CPU Electric Energy [J] Real64 ITEqFanConsumption; // Zone ITE Fan Electric Energy [J] Real64 ITEqUPSConsumption; // Zone ITE UPS Electric Energy [J] Real64 ITEqCPUEnergyAtDesign; // Zone ITE CPU Electric Energy at Design Inlet Conditions [J] Real64 ITEqFanEnergyAtDesign; // Zone ITE Fan Electric Energy at Design Inlet Conditions [J] - Real64 ITEqUPSGainEnergyToZone; // Zone ITE UPS Heat Gain toZone Energy [J] - convective gain + Real64 ITEqUPSGainEnergyToZone; // Zone ITE UPS Heat Gain to Zone Energy [J] - convective gain Real64 ITEqConGainEnergyToZone; // Zone ITE Total Heat Gain toZone Energy [J] - convective gain - includes heat gain from UPS, plus CPU and Fans if room air model not used Real64 ITEqAirVolFlowStdDensity; // Zone Air volume flow rate at standard density [m3/s] Real64 ITEqAirMassFlow; // Zone Air mass flow rate [kg/s] diff --git a/src/EnergyPlus/HeatBalFiniteDiffManager.cc b/src/EnergyPlus/HeatBalFiniteDiffManager.cc index b7fc715efc1..b773338a165 100644 --- a/src/EnergyPlus/HeatBalFiniteDiffManager.cc +++ b/src/EnergyPlus/HeatBalFiniteDiffManager.cc @@ -87,7 +87,7 @@ namespace HeatBalFiniteDiffManager { // and included enthalpy formulations for phase change materials // PURPOSE OF THIS MODULE: // To encapsulate the data and algorithms required to - // manage the fiite difference heat balance simulation on the building. + // manage the finite difference heat balance simulation on the building. // REFERENCES: // The MFD moisture balance method @@ -764,7 +764,7 @@ namespace HeatBalFiniteDiffManager { mAlpha = 0.0; //check for Material layers that are too thin and highly conductivity (not appropriate for surface models) - if ( Alpha > HighDiffusivityThreshold && ! Material( CurrentLayer ).WarnedForHighDiffusivity ) { + if ( Alpha > HighDiffusivityThreshold ) { DeltaTimestep = TimeStepZoneSec; ThicknessThreshold = std::sqrt( Alpha * DeltaTimestep * 3.0 ); if ( Material( CurrentLayer ).Thickness < ThicknessThreshold ) { @@ -776,7 +776,7 @@ namespace HeatBalFiniteDiffManager { ShowContinueError( "Material may be too thin to be modeled well, thickness = " + RoundSigDigits( Material( CurrentLayer ).Thickness, 5 ) + " [m]" ); ShowContinueError( "Material with this thermal diffusivity should have thickness > " + RoundSigDigits( ThinMaterialLayerThreshold, 5 ) + " [m]" ); } - Material( CurrentLayer ).WarnedForHighDiffusivity = true; + ShowFatalError( "Preceding conditions cause termination." ); } } @@ -1045,7 +1045,7 @@ namespace HeatBalFiniteDiffManager { } } - if ( ( Lay < TotLayers ) && ( TotNodes != 1 ) ) { // Interface equations for 2 capactive materials + if ( ( Lay < TotLayers ) && ( TotNodes != 1 ) ) { // Interface equations for 2 capacitive materials ++i; IntInterfaceNodeEqns( Delt, i, Lay, Surf, T, TT, Rhov, RhoT, RH, TD, TDT, EnthOld, EnthNew, GSiter ); } else if ( Lay == TotLayers ) { // For the Interior surface node with a convective boundary condition @@ -1071,7 +1071,7 @@ namespace HeatBalFiniteDiffManager { if ( ( GSiter > 2 ) && ( std::abs( sum_array_diff( TDT, TDTLast ) / sum( TDT ) ) < 0.00001 ) ) break; - } // End of Gauss Seidell iteration loop + } // End of Gauss Seidel iteration loop GSloopCounter = GSiter; // outputs GSloop iterations, useful for pinpointing stability issues with condFD if ( CondFDRelaxFactor != 1.0 ) { @@ -1136,7 +1136,7 @@ namespace HeatBalFiniteDiffManager { // PURPOSE OF THIS SUBROUTINE: // This routine gives a detailed report to the user about - // the initializations for the Fintie Difference calculations + // the initializations for the Finite Difference calculations // of each construction. // Using/Aliasing @@ -1473,11 +1473,11 @@ namespace HeatBalFiniteDiffManager { } } else { // HMovInsul > 0.0: Transparent insulation on outside - // Transparent insulaton additions + // Transparent insulation additions // Movable Insulation Layer Outside surface temp - Real64 const TInsulOut( ( QRadSWOutMvInsulFD + hgnd * Tgnd + HMovInsul * TDT_i + ( hconvo + hrad ) * Toa + hsky * Tsky ) / ( hconvo + hgnd + HMovInsul + hrad + hsky ) ); // Temperature of outisde face of Outside Insulation + Real64 const TInsulOut( ( QRadSWOutMvInsulFD + hgnd * Tgnd + HMovInsul * TDT_i + ( hconvo + hrad ) * Toa + hsky * Tsky ) / ( hconvo + hgnd + HMovInsul + hrad + hsky ) ); // Temperature of outside face of Outside Insulation Real64 const Two_Delt_DelX( 2.0 * Delt_DelX ); Real64 const Cp_DelX2_RhoS( Cp * pow_2( DelX ) * RhoS ); Real64 const Two_Delt_kt( 2.0 * Delt * kt ); @@ -1507,13 +1507,13 @@ namespace HeatBalFiniteDiffManager { } // regular detailed FD part or SigmaR SigmaC part - // Determine net heat flux to ooutside face + // Determine net heat flux to outside face // One formulation that works for Fully Implicit and CrankNicholson and massless wall Real64 const Toa_TDT_i( Toa - TDT_i ); Real64 const QNetSurfFromOutside( QRadSWOutFD + ( hgnd * ( -TDT_i + Tgnd ) + ( hconvo + hrad ) * Toa_TDT_i + hsky * ( -TDT_i + Tsky ) ) ); - //S ame sign convention as CTFs + // Same sign convention as CTFs OpaqSurfOutsideFaceConductionFlux( Surf ) = -QNetSurfFromOutside; OpaqSurfOutsideFaceConduction( Surf ) = surface.Area * OpaqSurfOutsideFaceConductionFlux( Surf ); @@ -1636,7 +1636,7 @@ namespace HeatBalFiniteDiffManager { Array1< Real64 > & TDT, // NEW NODE TEMPERATURES OF EACH HEAT TRANSFER SURF IN CONDFD. Array1< Real64 > const & EP_UNUSED( EnthOld ), // Old Nodal enthalpy Array1< Real64 > & EnthNew, // New Nodal enthalpy - int const EP_UNUSED( GSiter ) // Iteration number of Gauss Seidell iteration + int const EP_UNUSED( GSiter ) // Iteration number of Gauss Seidel iteration ) { @@ -1644,7 +1644,7 @@ namespace HeatBalFiniteDiffManager { // AUTHOR Richard Liesen // DATE WRITTEN November, 2003 // MODIFIED May 2011, B. Griffith, P. Tabares, add first order fully implicit, bug fixes, cleanup - // RE-ENGINEERED Curtis Pedersen, Changed to Implit mode and included enthalpy. FY2006 + // RE-ENGINEERED Curtis Pedersen, Changed to Implicit mode and included enthalpy. FY2006 // PURPOSE OF THIS SUBROUTINE: // calculate finite difference heat transfer for nodes that interface two different material layers inside construction @@ -1921,7 +1921,7 @@ namespace HeatBalFiniteDiffManager { Array1< Real64 > & TDT, // INSIDE SURFACE TEMPERATURE OF EACH HEAT TRANSFER SURF. Array1< Real64 > & EnthOld, // Old Nodal enthalpy Array1< Real64 > & EnthNew, // New Nodal enthalpy - Array1< Real64 > & TDreport // Temperature value from previous HeatSurfaceHeatManager titeration's value + Array1< Real64 > & TDreport // Temperature value from previous HeatSurfaceHeatManager iteration's value ) { // SUBROUTINE INFORMATION: