First time here? Check our help page!
2

How is the surface outside face beam solar incident angle cosine value calculated in EnergyPlus?

I output the hourly solar altitude angle, solar azimuth angle, and the Surface Outside Face Beam Solar Incident Angle Cosine Value for a window facing south. I found the surface outside face beam solar incident angle cosine value has some deviations. image description

image description

Especially, at 04/11 16:30, the incident angle cosine value output from energyplus is a negative value, but according to the solar altitude angle and the amuzith angle, it should be a positive value, because the solar amuzith is smaller than 270 deg, which indicates that the direct solar beam can hit the fouth facade.

The formula for south facade I used is :

cosAngle = cos(180-azimuth)*cos(altitude)

I also try to find the result, but I only find the function SurfCosIncAng is used to calculate the value in EnergyPlus, and I cannot find the implementation of the function SurfCosIncAng.

Real64 CosInc = state.dataHeatBal->SurfCosIncAng(state.dataGlobal->HourOfDay, state.dataGlobal->TimeStep, SurfNum);

I don't know if there is any EneryPlus developers in this forum who can answer this question.

yongqingzhao's avatar
939
yongqingzhao
asked 2024-03-29 23:22:18 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2024-03-31 09:21:03 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

I have found the answer by reading the source code. This is because the solar positions are updated every 20 days if default settings are used. The solar direction is an averaged direction over the 20 days for the same hour. I set the update frequency to one day, and then the output for Surface Outside Face Beam Solar Incident Angle Cosine Value matched with the calculated ones.

Below is the source code snippet (Solar Shading.cc)

void PerformSolarCalculations(EnergyPlusData &state){

...

    PerDayOfYear = state.dataEnvrn->DayOfYear;
    SumDec = 0.0;
    SumET = 0.0;
    for (Count = 1; Count <= state.dataSolarShading->ShadowingDaysLeft; ++Count) {
        SUN3(PerDayOfYear, SinDec, EqTime);
        SumDec += SinDec;
        SumET += EqTime;
        ++PerDayOfYear;
    }

    //  Compute Period Values
    AvgSinSolarDeclin = SumDec / double(state.dataSolarShading->ShadowingDaysLeft);
    AvgCosSolarDeclin = std::sqrt(1.0 - pow_2(AvgSinSolarDeclin));
    AvgEqOfTime = SumET / double(state.dataSolarShading->ShadowingDaysLeft);
    CalcPerSolarBeam(state, AvgEqOfTime, AvgSinSolarDeclin, AvgCosSolarDeclin);
...

}

image description

yongqingzhao's avatar
939
yongqingzhao
answered 2024-03-31 20:49:40 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments