Skip to content
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 #792 - Add support for HotWaterEquipment and HotWaterEquipmentDefinition #793

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

jmarrec
Copy link
Collaborator

@jmarrec jmarrec commented Feb 27, 2025

@jmarrec jmarrec requested a review from macumber February 27, 2025 15:10
@jmarrec jmarrec self-assigned this Feb 27, 2025
Comment on lines +96 to +97
HotWaterEquipmentInspectorView.cpp
HotWaterEquipmentInspectorView.hpp
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really a copy paste from ElectricEquipment it behaves exactly the same.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New icons

Comment on lines +829 to +832
<file>images/mini_icons/hotwater_equipment.png</file>
<file>images/mini_icons/[email protected]</file>
<file>images/mini_icons/hotwater_equipment_definition.png</file>
<file>images/mini_icons/[email protected]</file>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Icons registered in qrc

@@ -146,6 +146,8 @@ TEST_F(OpenStudioLibFixture, IconLibrary_MiniIcon) {
iddObjectTypes.push_back(IddObjectType::OS_Fan_VariableVolume);
iddObjectTypes.push_back(IddObjectType::OS_GasEquipment);
iddObjectTypes.push_back(IddObjectType::OS_GasEquipment_Definition);
iddObjectTypes.push_back(IddObjectType::OS_HotWaterEquipment);
iddObjectTypes.push_back(IddObjectType::OS_HotWaterEquipment_Definition);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test them in case we delete them by mistake

Comment on lines +207 to +215
void LoadsInspectorView::showHotWaterEquipmentDefinitionsInspector(const openstudio::model::ModelObject& modelObject) {
auto* hotWaterEquipmentDefinitionInspectorView = new HotWaterEquipmentDefinitionInspectorView(m_isIP, m_model);
connect(this, &LoadsInspectorView::toggleUnitsClicked, hotWaterEquipmentDefinitionInspectorView,
&HotWaterEquipmentDefinitionInspectorView::toggleUnitsClicked);

hotWaterEquipmentDefinitionInspectorView->selectModelObject(modelObject);

showInspector(hotWaterEquipmentDefinitionInspectorView);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy peasy

Comment on lines +78 to +80
case IddObjectType::OS_HotWaterEquipment_Definition:
openstudio::model::HotWaterEquipmentDefinition(this->model());
break;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simple

Comment on lines +105 to +111
label =
new QLabel("<i>The object models hot water equipment in the zone which consumes district heating, such as cooking equipment or process loads. "
"All of the energy consumed by the equipment becomes a heat gain in the zone or is lost (exhausted). "
"This object consumes district heating energy directly and does not cause a load on a hot water plant loop or water heater. "
"For domestic hot water uses, such as sinks and showers, see WaterUse:Equipment.</i>");
label->setWordWrap(true);
mainGridLayout->addWidget(label, 9, 0, 1, 4);
Copy link
Collaborator Author

@jmarrec jmarrec Feb 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

b5e439b is an optional commit.

Add a footnote clarifying what the object is, because I think there's going to be confusion with the Water use Equipment one.

Text is from the I/O reference guide: https://bigladdersoftware.com/epx/docs/24-2/input-output-reference/group-internal-gains-people-lights-other.html#hotwaterequipment

There is no precedent, so I'd like people to weight in on whether this is helpful or not, anbd whether it should be displayed differently in the UI.

Made it look like this

image

@macumber @marccosta @chrisbalbach @craigers290 @antonszilasi

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was looking at the IDD and I/O Reference trying to figure out why this wasn't added in the first place. It is a bit confusing that it doesn't hook up to a water loop. I think the text is helpful and looks pretty good. If we wanted to be super fancy, we could add a "for more information" link to the I/O Reference. That could be a general pattern but it might be too hard to maintain though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's really the dhw equivalent of the ZoneHVACIdealLoadsAirSystem.

I agree that I don't want to keep external links up to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for HotWaterEquipment and HotWaterEquipmentDefinition
2 participants