Skip to content

Commit fcf17ec

Browse files
committed
Fixed blind-optics matrix-inversion issue
1 parent 412f167 commit fcf17ec

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/EnergyPlus/WindowManager.cc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8283,6 +8283,21 @@ namespace Window {
82838283
c.dim(15);
82848284
p.dim(16);
82858285

8286+
struct BlindInputs {
8287+
Real64 slatWidth;
8288+
Real64 slatSeparation;
8289+
Real64 BmDfTrans;
8290+
Real64 BmDfRefFront;
8291+
Real64 BmDfRefBack;
8292+
Real64 DfDfTrans;
8293+
Real64 DfDfRefFront;
8294+
Real64 DfDfRefBack;
8295+
Real64 DfDfTransIR;
8296+
Real64 DfEmissFront;
8297+
Real64 DfEmissBack;
8298+
};
8299+
8300+
82868301
// The slat input properties are:
82878302
// c(1) 0. (unused)
82888303
// c(2) Slat width (m)
@@ -8302,6 +8317,26 @@ namespace Window {
83028317
// c(14) emiss front diff
83038318
// c(15) emiss back diff
83048319

8320+
struct BlindOutputs {
8321+
Real64 BmBmTransFront;
8322+
Real64 BmBmRefFront;
8323+
Real64 BmBmTransBack;
8324+
Real64 BmBmRefBack;
8325+
Real64 BmDfTransFront;
8326+
Real64 BmDfRefFront;
8327+
Real64 BmDfTransBack;
8328+
Real64 BmDfRefBack;
8329+
Real64 DfDfTransFront;
8330+
Real64 DfDfRefFront;
8331+
Real64 DfDfTransBack;
8332+
Real64 DfDfRefBack;
8333+
8334+
Real64 TransFrontIR;
8335+
Real64 TransBackIR;
8336+
Real64 EmissFrontIR;
8337+
Real64 EmissBackIR;
8338+
};
8339+
83058340
// The calculated blind properties are:
83068341
// The following are solar or visible properties
83078342
// p(1) trans front beam-beam
@@ -8748,6 +8783,7 @@ namespace Window {
87488783

87498784
for (int j = 1; j <= n; ++j) {
87508785
tmp = 0.0;
8786+
tmp(j) = 1;
87518787
LUsolution(state, a, n, indx, tmp);
87528788
for (int i = 1; i <= n; ++i)
87538789
y(j, i) = tmp(i);

0 commit comments

Comments
 (0)