Skip to content

Commit

Permalink
Initial (and maybe only) commit
Browse files Browse the repository at this point in the history
  • Loading branch information
amirroth committed Jun 11, 2024
1 parent b380a5d commit 8efac20
Show file tree
Hide file tree
Showing 251 changed files with 1,325 additions and 61 deletions.
7 changes: 6 additions & 1 deletion src/EnergyPlus/AirLoopHVACDOAS.hh
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,14 @@ struct AirLoopHVACDOASData : BaseGlobalStruct
std::vector<AirLoopHVACDOAS::AirLoopDOAS> airloopDOAS;
std::vector<AirLoopHVACDOAS::AirLoopMixer> airloopMixer;
std::vector<AirLoopHVACDOAS::AirLoopSplitter> airloopSplitter;

void init_state() override
{
}

void clear_state() override
{
*this = AirLoopHVACDOASData();
new (this) AirLoopHVACDOASData();
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,10 @@ namespace AirflowNetwork {
Array1D<AirflowNetwork::ReliefFlow> DisSysCompReliefAirData;
Array1D<AirflowNetwork::AirflowNetworkLinkageViewFactorProp> AirflowNetworkLinkageViewFactorData;

void init_state() override
{
}

void clear_state() override
{
OccupantVentilationControl.deallocate();
Expand Down
5 changes: 4 additions & 1 deletion src/EnergyPlus/Autosizing/BaseSizerWithFanHeatInputs.hh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ struct BaseSizerWithFanHeatInputs : BaseSizer

struct BaseSizerWithFanHeatInputsData : BaseGlobalStruct
{

void init_state() override
{
}

void clear_state() override
{
}
Expand Down
4 changes: 4 additions & 0 deletions src/EnergyPlus/Autosizing/BaseSizerWithScalableInputs.hh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ struct BaseSizerWithScalableInputs : BaseSizerWithFanHeatInputs
struct BaseSizerWithScalableInputsData : BaseGlobalStruct
{

void init_state() override
{
}

void clear_state() override
{
}
Expand Down
4 changes: 4 additions & 0 deletions src/EnergyPlus/Autosizing/SystemAirFlowSizing.hh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ struct SystemAirFlowSizer : BaseSizerWithScalableInputs
struct SystemAirFlowSizerData : BaseGlobalStruct
{

void init_state() override
{
}

void clear_state() override
{
}
Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/BaseboardElectric.hh
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,13 @@ struct BaseboardElectricData : BaseGlobalStruct
bool getInputFlag = true;
EPVector<BaseboardElectric::BaseboardParams> baseboards;

void init_state() override
{
}

void clear_state() override
{
*this = BaseboardElectricData();
new (this) BaseboardElectricData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/BaseboardRadiator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@ struct BaseboardRadiatorData : BaseGlobalStruct
bool getInputFlag = true;
EPVector<BaseboardRadiator::BaseboardParams> baseboards;

void init_state() override
{
}

void clear_state() override
{
*this = BaseboardRadiatorData();
new (this) BaseboardRadiatorData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/BoilerSteam.hh
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,13 @@ struct BoilerSteamData : BaseGlobalStruct
bool getSteamBoilerInput = true;
Array1D<BoilerSteam::BoilerSpecs> Boiler;

void init_state() override
{
}

void clear_state() override
{
*this = BoilerSteamData();
new (this) BoilerSteamData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/Boilers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,13 @@ struct BoilersData : BaseGlobalStruct
bool getBoilerInputFlag = true;
Array1D<Boilers::BoilerSpecs> Boiler;

void init_state() override
{
}

void clear_state() override
{
*this = BoilersData();
new (this) BoilersData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/BranchInputManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,13 @@ struct BranchInputManagerData : BaseGlobalStruct
Array1D<BranchInputManager::MixerData> Mixers; // Mixer Data for each Mixer
Array1D<BranchInputManager::ComponentData> BComponents; // Component data to be returned

void init_state() override
{
}

void clear_state() override
{
*this = BranchInputManagerData();
new (this) BranchInputManagerData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/CTElectricGenerator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,13 @@ struct CTElectricGeneratorData : BaseGlobalStruct
bool getCTInputFlag = true;
Array1D<CTElectricGenerator::CTGeneratorData> CTGenerator;

void init_state() override
{
}

void clear_state() override
{
*this = CTElectricGeneratorData();
new (this) CTElectricGeneratorData();
}
};

Expand Down
7 changes: 6 additions & 1 deletion src/EnergyPlus/ChilledCeilingPanelSimple.hh
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,14 @@ struct ChilledCeilingPanelSimpleData : BaseGlobalStruct
{
bool GetInputFlag = true;
Array1D<CoolingPanelSimple::CoolingPanelParams> CoolingPanel;

void init_state() override
{
}

void clear_state() override
{
*this = ChilledCeilingPanelSimpleData();
new (this) ChilledCeilingPanelSimpleData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/ChillerAbsorption.hh
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,13 @@ struct ChillerAbsorberData : BaseGlobalStruct
bool getInput = true;
Array1D<ChillerAbsorption::BLASTAbsorberSpecs> absorptionChillers;

void init_state() override
{
}

void clear_state() override
{
*this = ChillerAbsorberData();
new (this) ChillerAbsorberData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/ChillerElectricASHRAE205.hh
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,13 @@ struct ChillerElectricASHRAE205Data : BaseGlobalStruct
bool getInputFlag = true;
Array1D<ChillerElectricASHRAE205::ASHRAE205ChillerSpecs> Electric205Chiller;

void init_state()
{
}

void clear_state() override
{
*this = ChillerElectricASHRAE205Data();
new (this) ChillerElectricASHRAE205Data();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/ChillerElectricEIR.hh
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,13 @@ struct ChillerElectricEIRData : BaseGlobalStruct
bool getInputFlag = true;
Array1D<ChillerElectricEIR::ElectricEIRChillerSpecs> ElectricEIRChiller;

void init_state()
{
}

void clear_state() override
{
*this = ChillerElectricEIRData();
new (this) ChillerElectricEIRData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/ChillerExhaustAbsorption.hh
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,13 @@ struct ChillerExhaustAbsorptionData : BaseGlobalStruct
bool Sim_GetInput = true;
Array1D<ChillerExhaustAbsorption::ExhaustAbsorberSpecs> ExhaustAbsorber;

void init_state()
{
}

void clear_state() override
{
*this = ChillerExhaustAbsorptionData();
new (this) ChillerExhaustAbsorptionData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/ChillerGasAbsorption.hh
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,13 @@ struct ChillerGasAbsorptionData : BaseGlobalStruct
bool getGasAbsorberInputs = true;
Array1D<ChillerGasAbsorption::GasAbsorberSpecs> GasAbsorber;

void init_state()
{
}

void clear_state() override
{
*this = ChillerGasAbsorptionData();
new (this) ChillerGasAbsorptionData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/ChillerIndirectAbsorption.hh
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,13 @@ struct ChillerIndirectAbsoprtionData : BaseGlobalStruct
bool GetInput = true;
Array1D<ChillerIndirectAbsorption::IndirectAbsorberSpecs> IndirectAbsorber;

void init_state()
{
}

void clear_state() override
{
*this = ChillerIndirectAbsoprtionData();
new (this) ChillerIndirectAbsoprtionData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/ChillerReformulatedEIR.hh
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,13 @@ struct ChillerReformulatedEIRData : BaseGlobalStruct
bool GetInputREIR = true;
Array1D<ChillerReformulatedEIR::ReformulatedEIRChillerSpecs> ElecReformEIRChiller;

void init_state()
{
}

void clear_state() override
{
*this = ChillerReformulatedEIRData();
new (this) ChillerReformulatedEIRData();
}
};

Expand Down
4 changes: 4 additions & 0 deletions src/EnergyPlus/Coils/CoilCoolingDX.hh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ struct CoilCoolingDXData : BaseGlobalStruct
bool coilCoolingDXGetInputFlag = true;
std::string const coilCoolingDXObjectName = "Coil:Cooling:DX";
bool stillNeedToReportStandardRatings = true; // standard ratings flag for all coils to report at the same time
void init_state() override
{
}

void clear_state() override
{
coilCoolingDXs.clear();
Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/CondenserLoopTowers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,13 @@ struct CondenserLoopTowersData : BaseGlobalStruct
bool GetInput = true;
Array1D<CondenserLoopTowers::CoolingTower> towers; // dimension to number of machines

void init_state()
{
}

void clear_state() override
{
*this = CondenserLoopTowersData();
new (this) CondenserLoopTowersData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/Construction.hh
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,13 @@ struct ConstructionData : BaseGlobalStruct
Array1D<Construction::ConstructionProps> Construct;
Array1D_int LayerPoint = Array1D<int>(Construction::MaxLayersInConstruct, 0);

void init_state() override
{
}

void clear_state() override
{
*this = ConstructionData();
new (this) ConstructionData();
}
};

Expand Down
4 changes: 4 additions & 0 deletions src/EnergyPlus/ConvectionCoefficients.hh
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,10 @@ struct ConvectionCoefficientsData : BaseGlobalStruct
Array1D<Convect::HcIntUserCurve> hcIntUserCurve;
Array1D<Convect::HcExtUserCurve> hcExtUserCurve;

void init_state() override
{
}

void clear_state() override
{
new (this) ConvectionCoefficientsData();
Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/CoolTower.hh
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,13 @@ struct CoolTowerData : BaseGlobalStruct
bool GetInputFlag = true;
Array1D<CoolTower::CoolTowerParams> CoolTowerSys;

void init_state()
{
}

void clear_state() override
{
*this = CoolTowerData();
new (this) CoolTowerData();
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/EnergyPlus/CostEstimateManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,13 @@ struct CostEstimateManagerData : BaseGlobalStruct

Array1D<CostEstimateManager::monetaryUnitType> monetaryUnit;

void init_state()
{
}

void clear_state() override
{
*this = CostEstimateManagerData();
new (this) CostEstimateManagerData();
}
};

Expand Down
4 changes: 4 additions & 0 deletions src/EnergyPlus/CrossVentMgr.hh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ struct CrossVentMgrData : BaseGlobalStruct
bool InitUCSDCV_MyOneTimeFlag = true;
Array1D_bool InitUCSDCV_MyEnvrnFlag;

void init_state()
{
}

void clear_state() override
{
new (this) CrossVentMgrData();
Expand Down
4 changes: 4 additions & 0 deletions src/EnergyPlus/CurveManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ struct CurveManagerData : BaseGlobalStruct
this->PerfCurve.push_back(new EnergyPlus::Curve::Curve);
}

void init_state() override
{
}

void clear_state() override
{
for (Curve::Curve *p : PerfCurve) {
Expand Down
4 changes: 4 additions & 0 deletions src/EnergyPlus/DXCoils.hh
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,10 @@ struct DXCoilsData : BaseGlobalStruct
Real64 EIRFlowModFac = 0.0; // EIR modifier (function of actual supply air flow vs rated flow) [-]
Real64 TempDryBulb_Leaving_Apoint = 0.0;

void init_state() override
{
}

void clear_state() override
{
new (this) DXCoilsData();
Expand Down
4 changes: 4 additions & 0 deletions src/EnergyPlus/DXFEarClipping.hh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ struct DXFEarClippingData : BaseGlobalStruct
bool trackit = false;
int errcount = 0;

void init_state() override
{
}

void clear_state() override
{
this->trackit = false;
Expand Down
Loading

5 comments on commit 8efac20

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InitStateStub (amirroth) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: Build Failed

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InitStateStub (amirroth) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-Debug: Build Failed

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InitStateStub (amirroth) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-Debug: Build Failed

Build Badge Test Badge Coverage Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InitStateStub (amirroth) - Win64-Windows-10-VisualStudio-16: OK (2802 of 2802 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InitStateStub (amirroth) - x86_64-MacOS-10.18-clang-15.0.0: OK (3591 of 3591 tests passed, 0 test warnings)

Build Badge Test Badge

Please sign in to comment.