Skip to content

Commit

Permalink
Oops, forgot this one
Browse files Browse the repository at this point in the history
  • Loading branch information
amirroth committed Sep 6, 2024
1 parent 9b94336 commit 20c9804
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/EnergyPlus/WindowManagerExteriorThermal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,21 @@ namespace Window {
Aleft = matBlind->leftOpeningMult;
Aright = matBlind->rightOpeningMult;

Afront = surfShade.blind.airFlowPermeability;
emissFront = surfShade.blind.TAR.IR.Ft.Emi;
emissBack = surfShade.blind.TAR.IR.Bk.Emi;
transThermalFront = surfShade.blind.TAR.IR.Ft.Tra;
transThermalBack = surfShade.blind.TAR.IR.Bk.Tra;
Real64 slatAng = matBlind->SlatAngle * Constant::DegToRad;
Real64 PermA = std::sin(slatAng) - matBlind->SlatThickness / matBlind->SlatSeparation;
Real64 PermB = 1.0 - (std::abs(matBlind->SlatWidth * std::cos(slatAng)) + matBlind->SlatThickness * std::sin(slatAng)) / matBlind->SlatSeparation;
Afront = min(1.0, max(0.0, PermA, PermB));

int iSlatLo, iSlatHi;
Real64 interpFac;

Material::GetSlatIndicesInterpFac(slatAng, iSlatLo, iSlatHi, interpFac);

emissFront = Interp(matBlind->TARs[iSlatLo].IR.Ft.Emi, matBlind->TARs[iSlatHi].IR.Ft.Emi, interpFac);
emissBack = Interp(matBlind->TARs[iSlatLo].IR.Bk.Emi, matBlind->TARs[iSlatHi].IR.Bk.Emi, interpFac);
transThermalFront = Interp(matBlind->TARs[iSlatLo].IR.Ft.Tra, matBlind->TARs[iSlatHi].IR.Ft.Tra, interpFac);
transThermalBack = Interp(matBlind->TARs[iSlatLo].IR.Bk.Tra, matBlind->TARs[iSlatHi].IR.Bk.Tra, interpFac);

if (t_Index == 1) {
m_ExteriorShade = true;
}
Expand Down

4 comments on commit 20c9804

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

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

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

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

Blind (amirroth) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (2893 of 2893 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

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

Blind (amirroth) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-RelWithDebInfo: OK (2077 of 2077 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

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

Blind (amirroth) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-RelWithDebInfo: OK (799 of 799 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.