Skip to content

Commit 9be8432

Browse files
committed
Homogeneous diffuse shade fix
1 parent 2c52ec4 commit 9be8432

File tree

97 files changed

+347490
-347493
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+347490
-347493
lines changed

src/create_wce_objects.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,9 @@ namespace wincalc
3838

3939
SpectralAveraging::MeasuredRow convert(OpticsParser::WLData const & data)
4040
{
41-
if(!data.directComponent.has_value())
41+
// clang-format off
42+
SpectralAveraging::MeasuredRow converted
4243
{
43-
throw std::runtime_error("Missing wavelength direct component");
44-
}
45-
46-
// TODO: Check this with Stephen (Simon)
47-
SpectralAveraging::MeasuredRow converted(
4844
data.wavelength,
4945
{
5046
data.directComponent.has_value() ? data.directComponent.value().tf : 0.0,
@@ -58,7 +54,8 @@ namespace wincalc
5854
data.diffuseComponent.has_value() ? data.diffuseComponent.value().rf : 0.0,
5955
data.diffuseComponent.has_value() ? data.diffuseComponent.value().rb : 0.0
6056
}
61-
);
57+
};
58+
// clang-format on
6259
return converted;
6360
}
6461

test/expected_results/2_layers/nfrc_102_air_homogeneous_diffusing_shade_single_band/0.15_permeability_factor/quarter_basis/condensed_spectrum/theta=0_phi=0/photopic.json

Lines changed: 5713 additions & 5713 deletions
Large diffs are not rendered by default.

test/expected_results/2_layers/nfrc_102_air_homogeneous_diffusing_shade_single_band/0.15_permeability_factor/quarter_basis/condensed_spectrum/theta=0_phi=0/solar.json

Lines changed: 5848 additions & 5848 deletions
Large diffs are not rendered by default.

test/expected_results/2_layers/nfrc_102_air_homogeneous_diffusing_shade_single_band/0.15_permeability_factor/quarter_basis/condensed_spectrum/theta=0_phi=0/tdw.json

Lines changed: 5651 additions & 5651 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"emissivity_back_hemispheric": 0.8993011215640143,
3-
"emissivity_front_hemispheric": 0.8993011215640143,
2+
"emissivity_back_hemispheric": 0.8993011215640266,
3+
"emissivity_front_hemispheric": 0.8993011215640266,
44
"transmittance_back_diffuse_diffuse": 0.0,
55
"transmittance_front_diffuse_diffuse": 0.0
66
}
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
{
2-
"H_shgc_indoor": 8.547542421795644,
3-
"H_shgc_outdoor": 20.555016158076093,
4-
"H_u_indoor": 7.360456878395626,
5-
"H_u_outdoor": 20.3795779960104,
6-
"SHGC": 0.2356283030956789,
7-
"U": 3.210328777259255,
2+
"H_shgc_indoor": 8.547899698477563,
3+
"H_shgc_outdoor": 20.555047663708265,
4+
"H_u_indoor": 7.36045687773547,
5+
"H_u_outdoor": 20.379577995785684,
6+
"SHGC": 0.23568592394297253,
7+
"U": 3.2103287768776694,
88
"gap_layer_effective_conductivities_shgc": [
9-
0.09494977788825505
9+
0.09495202436379602
1010
],
1111
"gap_layer_effective_conductivities_u": [
12-
0.08812800026225633
12+
0.08812800028151506
1313
],
14-
"heat_flow_shgc_indoor": -121.72326041943802,
15-
"heat_flow_shgc_outdoor": 108.43890170265723,
16-
"heat_flow_u_indoor": -23.13854247798127,
17-
"heat_flow_u_outdoor": -25.682630213967457,
14+
"heat_flow_shgc_indoor": -121.76788153111434,
15+
"heat_flow_shgc_outdoor": 108.46285429405384,
16+
"heat_flow_u_indoor": -23.138542480346686,
17+
"heat_flow_u_outdoor": -25.68263021113006,
1818
"layer_temperatures_shgc": [
19-
310.4255444639804,
20-
310.59062840851544,
21-
311.39097378989425,
22-
311.3907319445789
19+
310.4267016677637,
20+
310.59185810890096,
21+
311.3955987331915,
22+
311.39535684996696
2323
],
2424
"layer_temperatures_u": [
25-
303.88978596530126,
26-
303.81150530591816,
27-
300.2937306415426,
28-
300.29362856268466
25+
303.8897859651772,
26+
303.81150530578714,
27+
300.29373064118147,
28+
300.29362856232353
2929
],
3030
"radiosities_shgc": [
31-
520.9076621133645,
32-
528.408947673831,
33-
532.6005447472062,
34-
523.9019476911009
31+
520.9142566464593,
32+
528.4207130972352,
33+
532.6302107863619,
34+
523.9304286655001
3535
],
3636
"radiosities_u": [
37-
484.8225076817637,
38-
479.81779644900826,
39-
462.9371415139953,
40-
459.13254441522554
37+
484.8225076811996,
38+
479.8177964480847,
39+
462.9371415119426,
40+
459.13254441326643
4141
],
42-
"relative_heat_gain": 195.84750319768392,
42+
"relative_heat_gain": 195.8892882445536,
4343
"solid_layer_effective_conductivities_shgc": [
4444
1.0,
45-
136.0040555845274
45+
136.0040556383615
4646
],
4747
"solid_layer_effective_conductivities_u": [
4848
1.0,
49-
136.00392641343055
49+
136.00392641343058
5050
],
51-
"system_effective_conductivity_shgc": 2.0617050182990297,
52-
"system_effective_conductivity_u": 0.10518696831407572
51+
"system_effective_conductivity_shgc": 2.055077362939655,
52+
"system_effective_conductivity_u": 0.10518696832201335
5353
}
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
{
2-
"H_shgc_indoor": 7.628439051173036,
3-
"H_shgc_outdoor": 29.250034404560086,
4-
"H_u_indoor": 7.628439051290824,
5-
"H_u_outdoor": 29.250034404546952,
2+
"H_shgc_indoor": 7.628439051228499,
3+
"H_shgc_outdoor": 29.250034404531924,
4+
"H_u_indoor": 7.6284390515787255,
5+
"H_u_outdoor": 29.25003440451446,
66
"SHGC": 0.0,
7-
"U": 3.413250280949299,
7+
"U": 3.4132502808063596,
88
"gap_layer_effective_conductivities_shgc": [
9-
0.07210170414136552
9+
0.07210170413740608
1010
],
1111
"gap_layer_effective_conductivities_u": [
12-
0.07210170413763992
12+
0.07210170413743631
1313
],
14-
"heat_flow_shgc_indoor": 101.84054734591152,
15-
"heat_flow_shgc_outdoor": 133.11676095893802,
16-
"heat_flow_u_indoor": 101.84054734878592,
17-
"heat_flow_u_outdoor": 133.11676095908828,
14+
"heat_flow_shgc_indoor": 101.84054735644698,
15+
"heat_flow_shgc_outdoor": 133.11676096124327,
16+
"heat_flow_u_indoor": 101.84054735874865,
17+
"heat_flow_u_outdoor": 133.11676096115576,
1818
"layer_temperatures_shgc": [
19-
259.70099502172536,
20-
260.10673492208167,
21-
280.7994345695537,
22-
280.79988385386457
19+
259.70099502175333,
20+
260.1067349221123,
21+
280.79943456968675,
22+
280.79988385399764
2323
],
2424
"layer_temperatures_u": [
25-
259.700995021715,
26-
260.10673492207,
27-
280.7994345697349,
28-
280.79988385404585
25+
259.7009950217064,
26+
260.1067349220598,
27+
280.79943457040275,
28+
280.7998838547137
2929
],
3030
"radiosities_shgc": [
31-
255.08458251480351,
32-
273.1139081225944,
33-
344.4955989244612,
34-
359.7378835311662
31+
255.0845825147184,
32+
273.11390812243906,
33+
344.4955989240773,
34+
359.73788353079595
3535
],
3636
"radiosities_u": [
37-
255.0845825148288,
38-
273.1139081228101,
39-
344.49559892564537,
40-
359.7378835323286
37+
255.0845825148517,
38+
273.1139081230307,
39+
344.49559892687626,
40+
359.73788353353535
4141
],
42-
"relative_heat_gain": 26.555087186149386,
42+
"relative_heat_gain": 26.555087184999227,
4343
"solid_layer_effective_conductivities_shgc": [
44-
1.0000000000000002,
44+
1.0,
4545
136.00369950303323
4646
],
4747
"solid_layer_effective_conductivities_u": [
4848
0.9999999999999999,
49-
136.0036995030332
49+
136.00369950303323
5050
],
51-
"system_effective_conductivity_shgc": 0.0789088606208096,
52-
"system_effective_conductivity_u": 0.07890886062371766
51+
"system_effective_conductivity_shgc": 0.07890886061327952,
52+
"system_effective_conductivity_u": 0.07890886061416642
5353
}

0 commit comments

Comments
 (0)