Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/NREL/EnergyPlus into fix…
Browse files Browse the repository at this point in the history
…-window-heat-emission
  • Loading branch information
xuanluo113 committed Feb 11, 2020
2 parents 2bf9b0b + e9decd1 commit 564fa46
Show file tree
Hide file tree
Showing 168 changed files with 2,907 additions and 2,384 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,10 @@ mark_as_advanced(gtest_build_tests)
mark_as_advanced(gtest_disable_pthreads)
mark_as_advanced(gtest_force_shared_crt)
mark_as_advanced(gtest_hide_internal_symbols)
mark_as_advanced(FMT_CUDA_TEST)
mark_as_advanced(FMT_DOC)
mark_as_advanced(FMT_FUZZ)
mark_as_advanced(FMT_INSTALL)
mark_as_advanced(FMT_PEDANTIC)
mark_as_advanced(FMT_TEST)
mark_as_advanced(FMT_WERROR)
1 change: 1 addition & 0 deletions src/EnergyPlus/AirflowNetworkBalanceManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
#include <EnergyPlus/MixedAir.hh>
#include <EnergyPlus/NodeInputManager.hh>
#include <EnergyPlus/OutAirNodeManager.hh>
#include <EnergyPlus/OutputFiles.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/Psychrometrics.hh>
#include <EnergyPlus/RoomAirModelManager.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/AirflowNetworkBalanceManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
#include <ObjexxFCL/Optional.hh>

// EnergyPlus Headers
#include "OutputFiles.hh"
#include <EnergyPlus/EnergyPlus.hh>

namespace EnergyPlus {
class OutputFiles;

namespace AirflowNetworkBalanceManager {

Expand Down
9 changes: 7 additions & 2 deletions src/EnergyPlus/ChillerElectricEIR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
#include <EnergyPlus/InputProcessing/InputProcessor.hh>
#include <EnergyPlus/NodeInputManager.hh>
#include <EnergyPlus/OutAirNodeManager.hh>
#include <EnergyPlus/OutputFiles.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/OutputReportPredefined.hh>
#include <EnergyPlus/Plant/PlantLocation.hh>
Expand Down Expand Up @@ -1536,7 +1537,8 @@ namespace ChillerElectricEIR {
if (DataPlant::PlantFinalSizesOkayToReport) {
if (this->IPLVFlag) {
Real64 IPLV;
StandardRatings::CalcChillerIPLV(this->Name,
StandardRatings::CalcChillerIPLV(OutputFiles::getSingleton(),
this->Name,
DataPlant::TypeOf_Chiller_ElectricEIR,
this->RefCap,
this->RefCOP,
Expand All @@ -1545,7 +1547,10 @@ namespace ChillerElectricEIR {
this->ChillerEIRFTIndex,
this->ChillerEIRFPLRIndex,
this->MinUnloadRat,
IPLV);
IPLV,
Optional<const Real64>(),
ObjexxFCL::Optional_int_const(),
Optional<const Real64>());
this->IPLVFlag = false;
}
// create predefined report
Expand Down
4 changes: 3 additions & 1 deletion src/EnergyPlus/ChillerReformulatedEIR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
#include <EnergyPlus/GlobalNames.hh>
#include <EnergyPlus/InputProcessing/InputProcessor.hh>
#include <EnergyPlus/NodeInputManager.hh>
#include <EnergyPlus/OutputFiles.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/OutputReportPredefined.hh>
#include <EnergyPlus/Plant/PlantLocation.hh>
Expand Down Expand Up @@ -1311,7 +1312,8 @@ namespace ChillerReformulatedEIR {
if (DataPlant::PlantFinalSizesOkayToReport) {
if (this->MySizeFlag) {
Real64 IPLV;
StandardRatings::CalcChillerIPLV(this->Name,
StandardRatings::CalcChillerIPLV(OutputFiles::getSingleton(),
this->Name,
DataPlant::TypeOf_Chiller_ElectricReformEIR,
this->RefCap,
this->RefCOP,
Expand Down
3 changes: 2 additions & 1 deletion src/EnergyPlus/CommandLineInterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
#include <EnergyPlus/DisplayRoutines.hh>
#include <EnergyPlus/EnergyPlus.hh>
#include <EnergyPlus/FileSystem.hh>
#include <EnergyPlus/OutputFiles.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/OutputReportTabular.hh>
#include <EnergyPlus/OutputReports.hh>
Expand Down Expand Up @@ -385,7 +386,7 @@ namespace CommandLineInterface {
outputAuditFileName = outputFilePrefix + normalSuffix + ".audit";
outputBndFileName = outputFilePrefix + normalSuffix + ".bnd";
outputDxfFileName = outputFilePrefix + normalSuffix + ".dxf";
outputEioFileName = outputFilePrefix + normalSuffix + ".eio";
OutputFiles::getSingleton().eio.fileName = outputFilePrefix + normalSuffix + ".eio";
outputEndFileName = outputFilePrefix + normalSuffix + ".end";
outputErrFileName = outputFilePrefix + normalSuffix + ".err";
outputEsoFileName = outputFilePrefix + normalSuffix + ".eso";
Expand Down
16 changes: 8 additions & 8 deletions src/EnergyPlus/ConductionTransferFunctionCalc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2176,7 +2176,7 @@ namespace ConductionTransferFunctionCalc {

if (!Construct(ThisNum).IsUsedCTF) continue;

static constexpr auto Format_700{" Construction CTF,{},{:4},{:4},{:4},{:8.3F},{:15.4T},{:8.3F},{:8.3F},{:8.3F},{:8.3F},{}\n"};
static constexpr auto Format_700{" Construction CTF,{},{:4},{:4},{:4},{:8.3F},{:15.4N},{:8.3F},{:8.3F},{:8.3F},{:8.3F},{}\n"};
print(outputFiles.eio,
Format_700,
Construct(ThisNum).Name,
Expand All @@ -2196,10 +2196,10 @@ namespace ConductionTransferFunctionCalc {
{
auto const SELECT_CASE_var(Material(Layer).Group);
if (SELECT_CASE_var == Air) {
static constexpr auto Format_702(" Material:Air,{},{:12.4T}\n");
static constexpr auto Format_702(" Material:Air,{},{:12.4N}\n");
print(outputFiles.eio, Format_702, Material(Layer).Name, Material(Layer).Resistance);
} else {
static constexpr auto Format_701(" Material CTF Summary,{},{:8.4F},{:14.3F},{:11.3F},{:13.3F},{:12.4T}\n");
static constexpr auto Format_701(" Material CTF Summary,{},{:8.4F},{:14.3F},{:11.3F},{:13.3F},{:12.4N}\n");
print(outputFiles.eio,
Format_701,
Material(Layer).Name,
Expand All @@ -2214,7 +2214,7 @@ namespace ConductionTransferFunctionCalc {

for (I = Construct(ThisNum).NumCTFTerms; I >= 0; --I) {
if (I != 0) {
static constexpr auto Format_703(" CTF,{:4},{:20.8T},{:20.8T},{:20.8T},{:20.8T}\n");
static constexpr auto Format_703(" CTF,{:4},{:20.8N},{:20.8N},{:20.8N},{:20.8N}\n");
print(outputFiles.eio,
Format_703,
I,
Expand All @@ -2223,7 +2223,7 @@ namespace ConductionTransferFunctionCalc {
Construct(ThisNum).CTFInside(I),
Construct(ThisNum).CTFFlux(I));
} else {
static constexpr auto Format_704(" CTF,{:4},{:20.8T},{:20.8T},{:20.8T}\n");
static constexpr auto Format_704(" CTF,{:4},{:20.8N},{:20.8N},{:20.8N}\n");
print(outputFiles.eio,
Format_704,
I,
Expand All @@ -2236,12 +2236,12 @@ namespace ConductionTransferFunctionCalc {
if (Construct(ThisNum).SourceSinkPresent) {
// QTFs...
for (I = Construct(ThisNum).NumCTFTerms; I >= 0; --I) {
static constexpr auto Format_705(" QTF,{:4},{:20.8T},{:20.8T}\n");
static constexpr auto Format_705(" QTF,{:4},{:20.8N},{:20.8N}\n");
print(outputFiles.eio, Format_705, I, Construct(ThisNum).CTFSourceOut(I), Construct(ThisNum).CTFSourceIn(I));
}
// QTFs for source/sink location temperature calculation...
for (I = Construct(ThisNum).NumCTFTerms; I >= 0; --I) {
static constexpr auto Format_706(" Source/Sink Loc Internal Temp QTF,{:4},{:20.8T},{:20.8T},{:20.8T}\n");
static constexpr auto Format_706(" Source/Sink Loc Internal Temp QTF,{:4},{:20.8N},{:20.8N},{:20.8N}\n");
print(outputFiles.eio,
Format_706,
I,
Expand All @@ -2252,7 +2252,7 @@ namespace ConductionTransferFunctionCalc {
if (Construct(ThisNum).TempAfterLayer != 0) {
// QTFs for user specified interior temperature calculation...
for (I = Construct(ThisNum).NumCTFTerms; I >= 0; --I) {
static constexpr auto Format_707(" User Loc Internal Temp QTF,{:4},{:20.8T},{:20.8T},{:20.8T}\n");
static constexpr auto Format_707(" User Loc Internal Temp QTF,{:4},{:20.8N},{:20.8N},{:20.8N}\n");
print(outputFiles.eio,
Format_707,
I,
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/ConductionTransferFunctionCalc.hh
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
#include <ObjexxFCL/Array3D.hh>

// EnergyPlus Headers
#include "OutputFiles.hh"
#include <EnergyPlus/EnergyPlus.hh>

namespace EnergyPlus {
class OutputFiles;

namespace ConductionTransferFunctionCalc {

Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/ConvectionCoefficients.hh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
#include <ObjexxFCL/Optional.hh>

// EnergyPlus Headers
#include "OutputFiles.hh"
#include <EnergyPlus/DataGlobals.hh>
#include <EnergyPlus/DataVectorTypes.hh>
#include <EnergyPlus/EnergyPlus.hh>

namespace EnergyPlus {
class OutputFiles;

namespace ConvectionCoefficients {

Expand Down
9 changes: 6 additions & 3 deletions src/EnergyPlus/DXCoils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7901,7 +7901,8 @@ namespace DXCoils {
// Call routine that computes AHRI certified rating for single-speed DX Coils
if ((DXCoil(DXCoilNum).DXCoilType_Num == CoilDX_CoolingSingleSpeed && DXCoil(DXCoilNum).CondenserType(1) == AirCooled) ||
DXCoil(DXCoilNum).DXCoilType_Num == CoilDX_HeatingEmpirical) {
CalcDXCoilStandardRating(DXCoil(DXCoilNum).Name,
CalcDXCoilStandardRating(OutputFiles::getSingleton(),
DXCoil(DXCoilNum).Name,
DXCoil(DXCoilNum).DXCoilType,
DXCoil(DXCoilNum).DXCoilType_Num,
1,
Expand All @@ -7923,7 +7924,8 @@ namespace DXCoils {
}
// Call routine that computes AHRI certified rating for multi-speed DX cooling Coils
if (DXCoil(DXCoilNum).DXCoilType_Num == CoilDX_MultiSpeedCooling || DXCoil(DXCoilNum).DXCoilType_Num == CoilDX_MultiSpeedHeating) {
CalcDXCoilStandardRating(DXCoil(DXCoilNum).Name,
CalcDXCoilStandardRating(OutputFiles::getSingleton(),
DXCoil(DXCoilNum).Name,
DXCoil(DXCoilNum).DXCoilType,
DXCoil(DXCoilNum).DXCoilType_Num,
DXCoil(DXCoilNum).NumOfSpeeds,
Expand All @@ -7940,7 +7942,8 @@ namespace DXCoils {
DXCoil(DXCoilNum).MinOATCompressor,
DXCoil(DXCoilNum).OATempCompressorOn,
DXCoil(DXCoilNum).OATempCompressorOnOffBlank,
DXCoil(DXCoilNum).DefrostControl);
DXCoil(DXCoilNum).DefrostControl,
ObjexxFCL::Optional_bool_const());
}

// create predefined report entries
Expand Down
4 changes: 0 additions & 4 deletions src/EnergyPlus/DataGlobals.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ namespace DataGlobals {
int OutputStandardError(0); // Unit number for the standard error output file
std::ostream *err_stream(nullptr); // Internal stream used for err output (used for performance)
int StdOutputRecordCount(0); // Count of Standard output records
int OutputFileInits(0); // Unit number for the standard Initialization output file
std::ostream *eio_stream(nullptr); // Internal stream used for eio output (used for unit tests)
int OutputFileDebug(0); // Unit number for debug outputs
int OutputFileZoneSizing(0); // Unit number of zone sizing calc output file
int OutputFileSysSizing(0); // Unit number of system sizing calc output file
Expand Down Expand Up @@ -307,7 +305,6 @@ namespace DataGlobals {
OutputFileStandard = 0;
OutputStandardError = 0;
StdOutputRecordCount = 0;
OutputFileInits = 0;
OutputFileDebug = 0;
OutputFileZoneSizing = 0;
OutputFileSysSizing = 0;
Expand Down Expand Up @@ -365,7 +362,6 @@ namespace DataGlobals {
eso_stream = nullptr;
mtr_stream = nullptr;
err_stream = nullptr;
eio_stream = nullptr;
delightin_stream = nullptr;
}

Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/DataReportingFlags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ namespace DataReportingFlags {
int NumOfWarmupDays(0); // reinitialized for each environment.
std::string cWarmupDay;
bool DisplayPerfSimulationFlag(false); // True when "Performing Simulation" should be displayed
bool DoWeatherInitReporting(false); // Init reporting -- items that go onto OutputFileInits
bool DoWeatherInitReporting(false); // Init reporting -- items that go onto OutputFileInits (eio)
bool PrintEndDataDictionary(false); // Flag for printing "End of Data Dictionary" on output files
bool IgnoreInteriorWindowTransmission(false); // True when section "IgnoreInteriorWindowTransmission" is entered
bool MakeMirroredDetachedShading(true); // True (default) when Detached Shading Surfaces should be "mirrored"
Expand Down
1 change: 0 additions & 1 deletion src/EnergyPlus/DataStringGlobals.in.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ namespace DataStringGlobals {
std::string outputAuditFileName("eplusout.audit");
std::string outputBndFileName("eplusout.bnd");
std::string outputDxfFileName("eplusout.dxf");
std::string outputEioFileName("eplusout.eio");
std::string outputEndFileName("eplusout.end");
std::string outputErrFileName("eplusout.err");
std::string outputEsoFileName("eplusout.eso");
Expand Down
1 change: 1 addition & 0 deletions src/EnergyPlus/DaylightingDevices.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
#include <EnergyPlus/General.hh>
#include <EnergyPlus/HeatBalanceInternalHeatGains.hh>
#include <EnergyPlus/InputProcessing/InputProcessor.hh>
#include <EnergyPlus/OutputFiles.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/UtilityRoutines.hh>
#include <EnergyPlus/Vectors.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/DaylightingDevices.hh
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
#include <ObjexxFCL/Array1A.hh>

// EnergyPlus Headers
#include "OutputFiles.hh"
#include <EnergyPlus/EnergyPlus.hh>

namespace EnergyPlus {
class OutputFiles;

namespace DaylightingDevices {

Expand Down
1 change: 1 addition & 0 deletions src/EnergyPlus/DaylightingManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
#include <EnergyPlus/General.hh>
#include <EnergyPlus/InputProcessing/InputProcessor.hh>
#include <EnergyPlus/InternalHeatGains.hh>
#include <EnergyPlus/OutputFiles.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/OutputReportPredefined.hh>
#include <EnergyPlus/PierceSurface.hh>
Expand Down
1 change: 1 addition & 0 deletions src/EnergyPlus/DualDuct.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
#include <EnergyPlus/GlobalNames.hh>
#include <EnergyPlus/InputProcessing/InputProcessor.hh>
#include <EnergyPlus/NodeInputManager.hh>
#include <EnergyPlus/OutputFiles.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/Psychrometrics.hh>
#include <EnergyPlus/ReportSizingManager.hh>
Expand Down
1 change: 1 addition & 0 deletions src/EnergyPlus/EnergyPlusPgm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
#include <EnergyPlus/InputProcessing/IdfParser.hh>
#include <EnergyPlus/InputProcessing/InputProcessor.hh>
#include <EnergyPlus/InputProcessing/InputValidation.hh>
#include <EnergyPlus/OutputFiles.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/Psychrometrics.hh>
#include <EnergyPlus/ResultsSchema.hh>
Expand Down
1 change: 1 addition & 0 deletions src/EnergyPlus/FuelCellElectricGenerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
#include <EnergyPlus/HeatBalanceInternalHeatGains.hh>
#include <EnergyPlus/InputProcessing/InputProcessor.hh>
#include <EnergyPlus/NodeInputManager.hh>
#include <EnergyPlus/OutputFiles.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/PlantUtilities.hh>
#include <EnergyPlus/ScheduleManager.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/GeneratorFuelSupply.cc
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ namespace GeneratorFuelSupply {
// report Heating Values in EIO.
print(outputFiles.eio, "! <Fuel Supply>, Fuel Supply Name, Lower Heating Value [J/kmol], Lower Heating Value [kJ/kg], Higher "
"Heating Value [KJ/kg], Molecular Weight [g/mol] \n");
static constexpr auto Format_501(" Fuel Supply, {},{:13.6T},{:13.6T},{:13.6T},{:13.6T}\n");
static constexpr auto Format_501(" Fuel Supply, {},{:13.6N},{:13.6N},{:13.6N},{:13.6N}\n");
print(outputFiles.eio,
Format_501,
FuelSupply(FuelSupplyNum).Name,
Expand Down
3 changes: 1 addition & 2 deletions src/EnergyPlus/GeneratorFuelSupply.hh
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@
#define GeneratorFuelSupply_hh_INCLUDED

// EnergyPlus Headers
#include "OutputFiles.hh"
#include <EnergyPlus/EnergyPlus.hh>

namespace EnergyPlus {

class OutputFiles;
namespace GeneratorFuelSupply {

// Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public:
virtual Real64 getGroundTempAtTimeInMonths(Real64 const, int const) = 0;

protected:
static void write_ground_temps(std::ostream &os, const std::string &name, const Array1D<Real64> &data)
static void write_ground_temps(OutputFiles::OutputFile &os, const std::string &name, const Array1D<Real64> &data)
{
print(os,
"! <Site:GroundTemperature:{}>,Jan{{C}},Feb{{C}},Mar{{C}},Apr{{C}},May{{C}},Jun{{C}},Jul{{C}},Aug{{C}},Sep{{C}},Oct{{C}},Nov{{C}},Dec{{C}}\n", name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void FiniteDiffGroundTempsModel::getWeatherData()
WeatherManager::Envrn = originalNumOfEnvn;
Available = true;
ErrorsFound = false;
GetNextEnvironment(Available, ErrorsFound);
GetNextEnvironment(OutputFiles::getSingleton(), Available, ErrorsFound);
if (ErrorsFound) {
ShowFatalError("Site:GroundTemperature:Undisturbed:FiniteDifference: error in reading weather file data");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
// EnergyPlus Headers
#include <EnergyPlus/EnergyPlus.hh>
#include <EnergyPlus/GroundTemperatureModeling/BaseGroundTemperatureModel.hh>
#include <EnergyPlus/OutputFiles.hh>

namespace EnergyPlus {
class OutputFiles;

// Derived class for Site:GroundTemperature:BuildingSurface
class SiteBuildingSurfaceGroundTemps : public BaseGroundTempsModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
// EnergyPlus Headers
#include <EnergyPlus/EnergyPlus.hh>
#include <EnergyPlus/GroundTemperatureModeling/BaseGroundTemperatureModel.hh>
#include <EnergyPlus/OutputFiles.hh>

namespace EnergyPlus {
class OutputFiles;

// Derived class for Site:GroundTemperature:Deep
class SiteDeepGroundTemps : public BaseGroundTempsModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
// EnergyPlus Headers
#include <EnergyPlus/EnergyPlus.hh>
#include <EnergyPlus/GroundTemperatureModeling/BaseGroundTemperatureModel.hh>
#include <EnergyPlus/OutputFiles.hh>

namespace EnergyPlus {
class OutputFiles;

// Derived class for Site:GroundTemperature:FCFactorMethod
class SiteFCFactorMethodGroundTemps : public BaseGroundTempsModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
// EnergyPlus Headers
#include <EnergyPlus/EnergyPlus.hh>
#include <EnergyPlus/GroundTemperatureModeling/BaseGroundTemperatureModel.hh>
#include <EnergyPlus/OutputFiles.hh>

namespace EnergyPlus {
class OutputFiles;

// Derived class for Site:GroundTemperature:Shallow
class SiteShallowGroundTemps : public BaseGroundTempsModel
Expand Down
Loading

0 comments on commit 564fa46

Please sign in to comment.