Skip to content

Fix #3421 - Fix forward translator issues in CoilHeatingDesuperheater and CoilWaterHeatingDesuperheater#3452

Merged
macumber merged 10 commits intoNatLabRockies:developfrom
jmarrec:PR_opened/Fix_3421_CoilHeatingDesuperHeater
Mar 21, 2019
Merged

Fix #3421 - Fix forward translator issues in CoilHeatingDesuperheater and CoilWaterHeatingDesuperheater#3452
macumber merged 10 commits intoNatLabRockies:developfrom
jmarrec:PR_opened/Fix_3421_CoilHeatingDesuperHeater

Conversation

@jmarrec
Copy link
Copy Markdown
Collaborator

@jmarrec jmarrec commented Mar 14, 2019

Fix #3421 - Fix forward translator issues in CoilHeatingDesuperheater and CoilWaterHeatingDesuperheater

If the Heating Source is a DX cooling coil, and if this DX coil is not already inside another component, the FT will wrap it into a CoilSystem:Cooling:DX wrapper and return that. Cf: ForwardTranslator::isHVACComponentWithinUnitary and translateModelObject for CoilCoolingDXSingleSPeed

Except that the desuper heater IDD will not accept this object type, so it gets remove. I added code to retrieve the actually DX Cooling coil from the wrapper if it exists.

Added unit tests

Copy link
Copy Markdown
Contributor

@macumber macumber left a comment

Choose a reason for hiding this comment

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

Looks good except for minor change to remove the OS_ASSERT(false) in preference to E+ run time failure

@jmarrec jmarrec requested a review from macumber March 21, 2019 08:48
@jmarrec jmarrec dismissed macumber’s stale review March 21, 2019 08:49

Addressed in two last commits

@macumber macumber merged commit a03e5f4 into NatLabRockies:develop Mar 21, 2019
std::string objectType;
std::string objectName;

if (_heatingSource->iddObject().type() == IddObjectType::CoilSystem_Cooling_DX) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@jmarrec I don't know this syntax nor what this translator is trying to accomplish, just a question here. What if the desuperheater coil is in a UnitarySystem?

Copy link
Copy Markdown
Collaborator Author

@jmarrec jmarrec Apr 5, 2019

Choose a reason for hiding this comment

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

@rraustad Same pretty much, the coil is translated and returned, and it's the nodes of the coil (and not the parent unitary) that end up there. Does that make sense?

Source:

@jmarrec jmarrec deleted the PR_opened/Fix_3421_CoilHeatingDesuperHeater branch April 5, 2019 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants