@@ -210,7 +210,7 @@ void ConstructionProps::calculateTransferFunction(EnergyPlusData &state, bool &E
210
210
211
211
// Obtain thermal properties from the Material derived type
212
212
213
- auto *thisMaterial = dynamic_cast <Material::MaterialChild *>(state.dataMaterial ->Material (CurrentLayer));
213
+ auto *thisMaterial = dynamic_cast <Material::MaterialChild *>(state.dataMaterial ->materials (CurrentLayer));
214
214
assert (thisMaterial != nullptr );
215
215
216
216
dl (Layer) = thisMaterial->Thickness ;
@@ -289,7 +289,7 @@ void ConstructionProps::calculateTransferFunction(EnergyPlusData &state, bool &E
289
289
// then use the "exact" approach to model a massless layer
290
290
// based on the node equations for the state space method.
291
291
292
- if ((Layer == 1 ) || (Layer == this ->TotLayers ) || (!state.dataMaterial ->Material (this ->LayerPoint (Layer))->ROnly )) {
292
+ if ((Layer == 1 ) || (Layer == this ->TotLayers ) || (!state.dataMaterial ->materials (this ->LayerPoint (Layer))->ROnly )) {
293
293
cp (Layer) = 1.007 ;
294
294
rho (Layer) = 1.1614 ;
295
295
rk (Layer) = 0.0263 ;
@@ -928,12 +928,12 @@ void ConstructionProps::calculateTransferFunction(EnergyPlusData &state, bool &E
928
928
if (this ->CTFTimeStep >= MaxAllowedTimeStep) {
929
929
ShowSevereError (state, format (" CTF calculation convergence problem for Construction=\" {}\" ." , this ->Name ));
930
930
ShowContinueError (state, " ...with Materials (outside layer to inside)" );
931
- ShowContinueError (state, format (" (outside)=\" {}\" " , state.dataMaterial ->Material (this ->LayerPoint (1 ))->Name ));
931
+ ShowContinueError (state, format (" (outside)=\" {}\" " , state.dataMaterial ->materials (this ->LayerPoint (1 ))->Name ));
932
932
for (int Layer = 2 ; Layer <= this ->TotLayers ; ++Layer) {
933
933
if (Layer != this ->TotLayers ) {
934
- ShowContinueError (state, format (" (next)=\" {}\" " , state.dataMaterial ->Material (this ->LayerPoint (Layer))->Name ));
934
+ ShowContinueError (state, format (" (next)=\" {}\" " , state.dataMaterial ->materials (this ->LayerPoint (Layer))->Name ));
935
935
} else {
936
- ShowContinueError (state, format (" (inside)=\" {}\" " , state.dataMaterial ->Material (this ->LayerPoint (Layer))->Name ));
936
+ ShowContinueError (state, format (" (inside)=\" {}\" " , state.dataMaterial ->materials (this ->LayerPoint (Layer))->Name ));
937
937
}
938
938
}
939
939
ShowContinueError (state,
@@ -1875,7 +1875,7 @@ void ConstructionProps::reportTransferFunction(EnergyPlusData &state, int const
1875
1875
1876
1876
for (int I = 1 ; I <= this ->TotLayers ; ++I) {
1877
1877
int Layer = this ->LayerPoint (I);
1878
- auto const *thisMaterial = state.dataMaterial ->Material (Layer);
1878
+ auto const *thisMaterial = state.dataMaterial ->materials (Layer);
1879
1879
switch (thisMaterial->group ) {
1880
1880
case Material::Group::Air: {
1881
1881
static constexpr std::string_view Format_702 (" Material:Air,{},{:12.4N}\n " );
@@ -1927,8 +1927,8 @@ void ConstructionProps::reportLayers(EnergyPlusData &state)
1927
1927
if (state.dataOutRptPredefined ->pdchOpqConsLayCol .size () > 0 ) {
1928
1928
for (int i = 1 ; i <= this ->TotLayers ; ++i) {
1929
1929
int layerIndex = this ->LayerPoint (i);
1930
- auto &thisMaterial = state.dataMaterial ->Material (layerIndex);
1931
- OutputReportPredefined::PreDefTableEntry (state, state.dataOutRptPredefined ->pdchOpqConsLayCol [i - 1 ], this ->Name , thisMaterial ->Name );
1930
+ auto const *mat = state.dataMaterial ->materials (layerIndex);
1931
+ OutputReportPredefined::PreDefTableEntry (state, state.dataOutRptPredefined ->pdchOpqConsLayCol [i - 1 ], this ->Name , mat ->Name );
1932
1932
}
1933
1933
}
1934
1934
}
@@ -1942,10 +1942,10 @@ bool ConstructionProps::isGlazingConstruction(EnergyPlusData &state) const
1942
1942
// PURPOSE OF THIS SUBROUTINE:
1943
1943
// Commonly used routine in several places in EnergyPlus which examines if current
1944
1944
// construction is glazing construction
1945
- const Material::Group MaterialGroup = state.dataMaterial ->Material (LayerPoint (1 ))->group ;
1946
- return (MaterialGroup == Material::Group::WindowGlass) || (MaterialGroup == Material::Group::Shade) ||
1947
- (MaterialGroup == Material::Group::Screen) || (MaterialGroup == Material::Group::WindowBlind) ||
1948
- (MaterialGroup == Material::Group::WindowSimpleGlazing);
1945
+ const Material::Group group = state.dataMaterial ->materials (LayerPoint (1 ))->group ;
1946
+ return (group == Material::Group::WindowGlass) || (group == Material::Group::Shade) ||
1947
+ (group == Material::Group::Screen) || (group == Material::Group::WindowBlind) ||
1948
+ (group == Material::Group::WindowSimpleGlazing);
1949
1949
}
1950
1950
1951
1951
Real64 ConstructionProps::setThicknessPerpendicular (EnergyPlusData &state, Real64 userValue)
0 commit comments