-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Missed PsyCpAirFnWTb Calls #7755
Conversation
@Nigusse @Myoldmopar The |
As expected from #7479, there are a few small math diffs due to the method change. Once we resolve what to do with the old |
Ready for review. |
@@ -44,7 +44,7 @@ \subsection{PsyRhoAirFnPbTdbW (Pb,Tdb,W,calledfrom)}\label{psyrhoairfnpbtdbw-pbt | |||
|
|||
Returns the density of air in kilograms per cubic meter as a function of barometric pressure {[}Pb{]} (in Pascals), dry bulb temperature {[}Tdb{]} (in Celsius), and humidity ratio {[}W{]} (kilograms of water per kilogram of dry air). | |||
|
|||
\subsection{PsyCpAirFnWTdb (W,Tdb,calledfrom)}\label{psycpairfnwtdb-wtdbcalledfrom} | |||
\subsection{PsyCpAirFnW (W,calledfrom)}\label{psycpairfnw-wcalledfrom} | |||
|
|||
Returns the specific heat of air in Joules per kilogram degree Celsius as a function of humidity ratio {[}W{]} (kilograms of water per kilogram of dry air) and dry bulb temperature {[}Tdb{]} (Celsius). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs removing the text "dry bulb temperature {[}Tdb{]} (Celsius)"
@@ -3360,7 +3360,7 @@ TEST_F(EnergyPlusFixture, UnitarySystem_GetInput) | |||
SimUnitarySystem(UnitarySystem(1).Name, FirstHVACIteration, UnitarySystem(1).ControlZoneNum, ZoneEquipList(1).EquipIndex(1), _, _, _, _, true); | |||
|
|||
ZoneTemp = Node(ControlZoneNum).Temp; | |||
CpAir = PsyCpAirFnWTdb(Node(InletNode).HumRat, Node(InletNode).Temp); | |||
CpAir = PsyCpAirFnW(Node(InletNode).HumRat, Node(InletNode).Temp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove "Node(InletNode).Temp" argument.
@@ -3396,7 +3396,7 @@ TEST_F(EnergyPlusFixture, UnitarySystem_GetInput) | |||
SimUnitarySystem(UnitarySystem(1).Name, FirstHVACIteration, UnitarySystem(1).ControlZoneNum, ZoneEquipList(1).EquipIndex(1), _, _, _, _, true); | |||
|
|||
ZoneTemp = Node(ControlZoneNum).Temp; | |||
CpAir = PsyCpAirFnWTdb(Node(InletNode).HumRat, Node(InletNode).Temp); | |||
CpAir = PsyCpAirFnW(Node(InletNode).HumRat, Node(InletNode).Temp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@@ -4176,7 +4176,7 @@ TEST_F(EnergyPlusFixture, UnitarySystem_VarSpeedCoils) | |||
SimUnitarySystem(UnitarySystem(1).Name, FirstHVACIteration, UnitarySystem(1).ControlZoneNum, ZoneEquipList(1).EquipIndex(1), _, _, _, _, true); | |||
|
|||
ZoneTemp = Node(ControlZoneNum).Temp; | |||
CpAir = PsyCpAirFnWTdb(Node(InletNode).HumRat, Node(InletNode).Temp); | |||
CpAir = PsyCpAirFnW(Node(InletNode).HumRat, Node(InletNode).Temp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@@ -4645,7 +4645,7 @@ TEST_F(EnergyPlusFixture, UnitarySystem_VarSpeedCoils_CyclingFan) | |||
SimUnitarySystem(UnitarySystem(1).Name, FirstHVACIteration, UnitarySystem(1).ControlZoneNum, ZoneEquipList(1).EquipIndex(1), _, _, _, _, true); | |||
|
|||
ZoneTemp = Node(ControlZoneNum).Temp; | |||
CpAir = PsyCpAirFnWTdb(Node(InletNode).HumRat, Node(InletNode).Temp); | |||
CpAir = PsyCpAirFnW(Node(InletNode).HumRat, Node(InletNode).Temp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@@ -8754,7 +8754,7 @@ TEST_F(EnergyPlusFixture, UnitarySystem_ASHRAEModel_WaterCoils) | |||
SimUnitarySystem(UnitarySystem(1).Name, FirstHVACIteration, UnitarySystem(1).ControlZoneNum, ZoneEquipList(1).EquipIndex(1), _, _, _, _, true); | |||
|
|||
ZoneTemp = Node(ControlZoneNum).Temp; | |||
CpAir = PsyCpAirFnWTdb(Node(InletNode).HumRat, Node(InletNode).Temp); | |||
CpAir = PsyCpAirFnW(Node(InletNode).HumRat, Node(InletNode).Temp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above. There are a few places that need removing the temp argument from the PsyCpAirFnW() function.
@@ -4208,7 +4208,7 @@ TEST_F(EnergyPlusFixture, UnitarySystem_VarSpeedCoils) | |||
SimUnitarySystem(UnitarySystem(1).Name, FirstHVACIteration, UnitarySystem(1).ControlZoneNum, ZoneEquipList(1).EquipIndex(1), _, _, _, _, true); | |||
|
|||
ZoneTemp = Node(ControlZoneNum).Temp; | |||
CpAir = PsyCpAirFnWTdb(Node(InletNode).HumRat, Node(InletNode).Temp); | |||
CpAir = PsyCpAirFnW(Node(InletNode).HumRat, Node(InletNode).Temp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@@ -4606,7 +4606,7 @@ TEST_F(EnergyPlusFixture, UnitarySystem_VarSpeedCoils_CyclingFan) | |||
SimUnitarySystem(UnitarySystem(1).Name, FirstHVACIteration, UnitarySystem(1).ControlZoneNum, ZoneEquipList(1).EquipIndex(1), _, _, _, _, true); | |||
|
|||
ZoneTemp = Node(ControlZoneNum).Temp; | |||
CpAir = PsyCpAirFnWTdb(Node(InletNode).HumRat, Node(InletNode).Temp); | |||
CpAir = PsyCpAirFnW(Node(InletNode).HumRat, Node(InletNode).Temp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
The unit test HVACUnitarySystem.unit.cc is no longer used and should be deleted from the repository. I forgot to do this during refactoring. |
…itarySystem.unit.cc file
Thanks @rraustad. I'll get it taken care of. |
@Nigusse Thanks for reviewing this. Feel free to merge it if CI looks good when it finishes. |
@mitchute I looked at the results and I see a few small diffs that look OK, but there are four test files that failed which should not. These four files have ems program. I think these failed test files need to be resolved before merging. |
@Nigusse I see two files with EDD diffs, but those are purely text diffs due to changing the EMS method's signature. However, I don't see anything else. Which files are you referring to? |
@mitchute I checked the latest runs, all is good excepts the warnings, which are text diffs as you pointed out rightly. My earlier comment must have been based on previous runs. This is good to merge! |
@mitchute I will merge this branch shortly. |
Hmm, just catching up here. Did we add a transition rule for the old function name to new name or is EMS just mapping the old one behind the scenes? |
I don't believe a transition rule was written, so I think the Erl processor must just be mapping to the new function behind the scenes. I'm not saying we shouldn't fix it, but I believe that's what it is doing. |
Missed that too... I'll get that ready. |
PR fixes a few missed calls and documentation that were missed in #7479.
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.