Skip to content

Commit 68332c2

Browse files
committed
More inits - part 4
1 parent c7eb2f2 commit 68332c2

File tree

3 files changed

+43
-53
lines changed

3 files changed

+43
-53
lines changed

src/EnergyPlus/GroundTemperatureModeling/XingGroundTemperatureModel.hh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ struct EnergyPlusData;
6464
class XingGroundTempsModel : public BaseGroundTempsModel
6565
{
6666
public:
67-
Real64 depth;
68-
Real64 groundThermalDiffisivity;
69-
Real64 simTimeInDays;
70-
Real64 aveGroundTemp;
71-
Real64 surfTempAmplitude_1;
72-
Real64 phaseShift_1;
73-
Real64 surfTempAmplitude_2;
74-
Real64 phaseShift_2;
67+
Real64 depth=0.0;
68+
Real64 groundThermalDiffisivity=0.0;
69+
Real64 simTimeInDays=0.0;
70+
Real64 aveGroundTemp=0.0;
71+
Real64 surfTempAmplitude_1=0.0;
72+
Real64 phaseShift_1=0.0;
73+
Real64 surfTempAmplitude_2=0.0;
74+
Real64 phaseShift_2=0.0;
7575

7676
static std::shared_ptr<XingGroundTempsModel> XingGTMFactory(EnergyPlusData &state, std::string objectName);
7777

src/EnergyPlus/OutputReportTabular.hh

Lines changed: 33 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -428,49 +428,39 @@ namespace OutputReportTabular {
428428
struct CompLoadTablesType
429429
{
430430
// members
431-
int desDayNum; // design day number
432-
int timeStepMax; // times step of the day that the maximum occurs
433-
Array2D<Real64> cells; // main component table results (column, row)
434-
Array2D_bool cellUsed; // flag if the cell is used for the table of results (column, row)
435-
std::string peakDateHrMin; // string containing peak timestamp
436-
Real64 outsideDryBulb; // outside dry bulb temperature at peak
437-
Real64 outsideWetBulb; // outside wet bulb temperature at peak
438-
Real64 outsideHumRatio; // outside humidity ratio at peak
439-
Real64 zoneDryBulb; // zone dry bulb temperature at peak
440-
Real64 zoneRelHum; // zone relative humidity at peak
441-
Real64 zoneHumRatio; // zone humidity ratio at peak
442-
443-
Real64 supAirTemp; // supply air temperature
444-
Real64 mixAirTemp; // mixed air temperature
445-
Real64 mainFanAirFlow; // main fan air flow
446-
Real64 outsideAirFlow; // outside air flow
447-
Real64 designPeakLoad; // design peak load
448-
Real64 diffDesignPeak; // difference between Design and Peak Load
449-
450-
Real64 peakDesSensLoad; // peak design sensible load
451-
Real64 estInstDelSensLoad; // estimated instant plus delayed sensible load
452-
Real64 diffPeakEst; // difference between the peak design sensible load and the estimated instant plus delayed sensible load
453-
Array1D_int zoneIndices; // the zone numbers covered by the report
454-
455-
Real64 outsideAirRatio; // outside Air
456-
Real64 floorArea; // floor area
457-
Real64 airflowPerFlrArea; // airflow per floor area
458-
Real64 airflowPerTotCap; // airflow per total capacity
459-
Real64 areaPerTotCap; // area per total capacity
460-
Real64 totCapPerArea; // total capacity per area
461-
Real64 chlPumpPerFlow; // chiller pump power per flow
462-
Real64 cndPumpPerFlow; // condenser pump power per flow
463-
Real64 numPeople; // number of people
464-
465-
// default constructor
466-
CompLoadTablesType()
467-
: desDayNum(0), timeStepMax(0), outsideDryBulb(0.), outsideWetBulb(0.), outsideHumRatio(0.), zoneDryBulb(0.), zoneRelHum(0.),
468-
supAirTemp(0.), mixAirTemp(0.), mainFanAirFlow(0.), outsideAirFlow(0.), designPeakLoad(0.), diffDesignPeak(0.), peakDesSensLoad(0.),
469-
estInstDelSensLoad(0.), diffPeakEst(0.), outsideAirRatio(0.), floorArea(0.), airflowPerFlrArea(0.), airflowPerTotCap(0.),
470-
areaPerTotCap(0.), totCapPerArea(0.), chlPumpPerFlow(0.), cndPumpPerFlow(0.), numPeople(0.)
471-
472-
{
473-
}
431+
int desDayNum = 0; // design day number
432+
int timeStepMax = 0; // times step of the day that the maximum occurs
433+
Array2D<Real64> cells; // main component table results (column, row)
434+
Array2D_bool cellUsed; // flag if the cell is used for the table of results (column, row)
435+
std::string peakDateHrMin = ""; // string containing peak timestamp
436+
Real64 outsideDryBulb = 0.0; // outside dry bulb temperature at peak
437+
Real64 outsideWetBulb = 0.0; // outside wet bulb temperature at peak
438+
Real64 outsideHumRatio = 0.0; // outside humidity ratio at peak
439+
Real64 zoneDryBulb = 0.0; // zone dry bulb temperature at peak
440+
Real64 zoneRelHum = 0.0; // zone relative humidity at peak
441+
Real64 zoneHumRatio = 0.0; // zone humidity ratio at peak
442+
443+
Real64 supAirTemp = 0.0; // supply air temperature
444+
Real64 mixAirTemp = 0.0; // mixed air temperature
445+
Real64 mainFanAirFlow = 0.0; // main fan air flow
446+
Real64 outsideAirFlow = 0.0; // outside air flow
447+
Real64 designPeakLoad = 0.0; // design peak load
448+
Real64 diffDesignPeak = 0.0; // difference between Design and Peak Load
449+
450+
Real64 peakDesSensLoad = 0.0; // peak design sensible load
451+
Real64 estInstDelSensLoad = 0.0; // estimated instant plus delayed sensible load
452+
Real64 diffPeakEst = 0.0; // difference between the peak design sensible load and the estimated instant plus delayed sensible load
453+
Array1D_int zoneIndices; // the zone numbers covered by the report
454+
455+
Real64 outsideAirRatio = 0.0; // outside Air
456+
Real64 floorArea = 0.0; // floor area
457+
Real64 airflowPerFlrArea = 0.0; // airflow per floor area
458+
Real64 airflowPerTotCap = 0.0; // airflow per total capacity
459+
Real64 areaPerTotCap = 0.0; // area per total capacity
460+
Real64 totCapPerArea = 0.0; // total capacity per area
461+
Real64 chlPumpPerFlow = 0.0; // chiller pump power per flow
462+
Real64 cndPumpPerFlow = 0.0; // condenser pump power per flow
463+
Real64 numPeople = 0.0; // number of people
474464
};
475465

476466
struct ZompComponentAreasType

src/EnergyPlus/ZoneTempPredictorCorrector.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace ZoneTempPredictorCorrector {
7979
std::string HeatTempSetptSchedName;
8080
int HeatTempSchedIndex = 0;
8181
std::string CoolTempSetptSchedName;
82-
int CoolTempSchedIndex;
82+
int CoolTempSchedIndex = 0;
8383
};
8484

8585
struct ZoneComfortFangerControl
@@ -90,7 +90,7 @@ namespace ZoneTempPredictorCorrector {
9090
std::string HeatPMVSetptSchedName; // Name of PMV heating set point schedule
9191
int HeatPMVSchedIndex = 0; // Index to PMV heating set point schedule
9292
std::string CoolPMVSetptSchedName; // Name of PMV cooling set point schedule
93-
int CoolPMVSchedIndex; // INdex to PMV cooling set point schedule
93+
int CoolPMVSchedIndex = 0; // INdex to PMV cooling set point schedule
9494
};
9595

9696
struct AdaptiveComfortDailySetPointSchedule

0 commit comments

Comments
 (0)