GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 0 / 1
Functions: 100.0% 1 / 0 / 1
Branches: -% 0 / 0 / 0

src/model/ElectricLoadCenterStorageLiIonNMCBattery_Impl.hpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #ifndef MODEL_ELECTRICLOADCENTERSTORAGELIIONNMCBATTERY_IMPL_HPP
7 #define MODEL_ELECTRICLOADCENTERSTORAGELIIONNMCBATTERY_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ElectricalStorage_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class ThermalZone;
17
18 namespace detail {
19
20 /** ElectricLoadCenterStorageLiIonNMCBattery_Impl is a ElectricalStorage_Impl that is the implementation class for ElectricLoadCenterStorageLiIonNMCBattery.*/
21 class MODEL_API ElectricLoadCenterStorageLiIonNMCBattery_Impl : public ElectricalStorage_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 ElectricLoadCenterStorageLiIonNMCBattery_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 ElectricLoadCenterStorageLiIonNMCBattery_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 ElectricLoadCenterStorageLiIonNMCBattery_Impl(const ElectricLoadCenterStorageLiIonNMCBattery_Impl& other, Model_Impl* model, bool keepHandle);
32
33 15 virtual ~ElectricLoadCenterStorageLiIonNMCBattery_Impl() override = default;
34
35 //@}
36 /** @name Virtual Methods */
37 //@{
38
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
44
45 virtual boost::optional<ThermalZone> thermalZone() const override;
46
47 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
48
49 virtual std::vector<std::string> emsInternalVariableNames() const override;
50
51 // Override ElectricalStorage (Base class) methods
52 virtual bool setThermalZone(const ThermalZone& thermalZone) override;
53 virtual void resetThermalZone() override;
54
55 //@}
56 /** @name Getters */
57 //@{
58
59 // Convenience method to return the electricalLoadCenter on which it's assigned (optional)
60 // Included in Base Class
61 // boost::optional<ElectricLoadCenterDistribution> electricLoadCenterDistribution() const;
62
63 Schedule availabilitySchedule() const;
64
65 double radiativeFraction() const;
66
67 std::string lifetimeModel() const;
68
69 int numberofCellsinSeries() const;
70
71 int numberofStringsinParallel() const;
72
73 double initialFractionalStateofCharge() const;
74
75 double dctoDCChargingEfficiency() const;
76
77 double batteryMass() const;
78
79 double batterySurfaceArea() const;
80
81 double batterySpecificHeatCapacity() const;
82
83 double heatTransferCoefficientBetweenBatteryandAmbient() const;
84
85 double fullyChargedCellVoltage() const;
86
87 double cellVoltageatEndofExponentialZone() const;
88
89 double cellVoltageatEndofNominalZone() const;
90
91 double defaultNominalCellVoltage() const;
92
93 double fullyChargedCellCapacity() const;
94
95 double fractionofCellCapacityRemovedattheEndofExponentialZone() const;
96
97 double fractionofCellCapacityRemovedattheEndofNominalZone() const;
98
99 double chargeRateatWhichVoltagevsCapacityCurveWasGenerated() const;
100
101 double batteryCellInternalElectricalResistance() const;
102
103 //@}
104 /** @name Setters */
105 //@{
106
107 bool setAvailabilitySchedule(Schedule& schedule);
108
109 bool setRadiativeFraction(double radiativeFraction);
110
111 bool setLifetimeModel(const std::string& lifetimeModel);
112
113 bool setNumberofCellsinSeries(int numberofCellsinSeries);
114
115 bool setNumberofStringsinParallel(int numberofStringsinParallel);
116
117 bool setInitialFractionalStateofCharge(double initialFractionalStateofCharge);
118
119 bool setDCtoDCChargingEfficiency(double dctoDCChargingEfficiency);
120
121 bool setBatteryMass(double batteryMass);
122
123 bool setBatterySurfaceArea(double batterySurfaceArea);
124
125 bool setBatterySpecificHeatCapacity(double batterySpecificHeatCapacity);
126
127 bool setHeatTransferCoefficientBetweenBatteryandAmbient(double heatTransferCoefficientBetweenBatteryandAmbient);
128
129 bool setFullyChargedCellVoltage(double fullyChargedCellCapacity);
130
131 bool setCellVoltageatEndofExponentialZone(double cellVoltageatEndofExponentialZone);
132
133 bool setCellVoltageatEndofNominalZone(double cellVoltageatEndofNominalZone);
134
135 bool setDefaultNominalCellVoltage(double defaultNominalCellVoltage);
136
137 bool setFullyChargedCellCapacity(double fullyChargedCellCapacity);
138
139 bool setFractionofCellCapacityRemovedattheEndofExponentialZone(double fractionofCellCapacityRemovedattheEndofExponentialZone);
140
141 bool setFractionofCellCapacityRemovedattheEndofNominalZone(double fractionofCellCapacityRemovedattheEndofNominalZone);
142
143 bool setChargeRateatWhichVoltagevsCapacityCurveWasGenerated(double chargeRateatWhichVoltagevsCapacityCurveWasGenerated);
144
145 bool setBatteryCellInternalElectricalResistance(double batteryCellInternalElectricalResistance);
146
147 //@}
148 /** @name Other */
149 //@{
150
151 //@}
152 protected:
153 private:
154 REGISTER_LOGGER("openstudio.model.ElectricLoadCenterStorageLiIonNMCBattery");
155 boost::optional<Schedule> optionalAvailabilitySchedule() const;
156 };
157
158 } // namespace detail
159
160 } // namespace model
161 } // namespace openstudio
162
163 #endif // MODEL_ELECTRICLOADCENTERSTORAGELIIONNMCBATTERY_IMPL_HPP
164