Skip to content

Commit

Permalink
save Ra_bar calculation result
Browse files Browse the repository at this point in the history
  • Loading branch information
Yujie Xu committed Sep 13, 2024
1 parent b96c3a5 commit 6600069
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/EnergyPlus/ExtendedHI.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ namespace ExtendedHI {
SolFla,
Tf,
[&](Real64 Tf) {
return (Tf - Ta) / Ra_bar(Tf, Ta) + (Pc - Pa) * (Tf - Ta) / ((ZsRs + Za_bar) * (Tf - Ta) + r * Ra_bar(Tf, Ta) * (Ts_bar - Tf)) -
Real64 Ra_barTfTa = Ra_bar(Tf, Ta);
return (Tf - Ta) / Ra_barTfTa + (Pc - Pa) * (Tf - Ta) / ((ZsRs + Za_bar) * (Tf - Ta) + r * Ra_barTfTa * (Ts_bar - Tf)) -
(Tc - Ts_bar) / Rs;
},
Ta,
Expand Down Expand Up @@ -402,7 +403,8 @@ namespace ExtendedHI {
SolFla,
Tf,
[&](Real64 Tf) {
return (Tf - Ta) / Ra_bar(Tf, Ta) + (Pc - Pa) * (Tf - Ta) / ((ZsRs + Za_bar) * (Tf - Ta) + r * Ra_bar(Tf, Ta) * (Ts_bar - Tf)) -
Real64 Ra_barTfTa = Ra_bar(Tf, Ta);
return (Tf - Ta) / Ra_barTfTa + (Pc - Pa) * (Tf - Ta) / ((ZsRs + Za_bar) * (Tf - Ta) + r * Ra_barTfTa * (Ts_bar - Tf)) -
(Tc - Ts_bar) / Rs;
},
Ta,
Expand Down

0 comments on commit 6600069

Please sign in to comment.