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

XML Format #88

Merged
merged 8 commits into from
Mar 6, 2020
Merged

XML Format #88

merged 8 commits into from
Mar 6, 2020

Conversation

RonRahaman
Copy link
Collaborator

This implements a new format for enrico.xml, as discussed in #87. The new format has top-level elements for <neutronics>, <heat_fluids>, and <coupling>. Under those top-level elements, all pre-existing elements are now reorganized as sub-elements.

  • The changes to CoupledDriver are minimal. They required no changes to the constructor's signature
  • The signature for HeatFluidsDriver was changed to omit the pressure_bc parameter add an XML node parameter. This is because the <pressure_bc> element is now a subelement of <heat_fluids>, so it seemed to make sense to just pass the parent <heat_fluids> element.

</neutronics>
<heat_fluids>
<driver>surrogate</driver>
<pressure_bc>101325.0</pressure_bc>
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 value of <pressure_bc> is the outlet temperature used in tests/unit/test_surrogate_th.cpp. Rather than being set in test driver, I'm setting it here.


double outlet_pressure = 101325.0;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here's the value of pressure BC that I've now set in tests/unit/inputs/test_surrogate_input.xml

Copy link
Member

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

Definitely an improvement; thanks @RonRahaman!

doc/source/input.rst Outdated Show resolved Hide resolved
src/heat_fluids_driver.cpp Outdated Show resolved Hide resolved
RonRahaman and others added 2 commits March 6, 2020 11:31
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
@paulromano paulromano merged commit 4974166 into enrico-dev:master Mar 6, 2020
@RonRahaman RonRahaman mentioned this pull request Mar 9, 2020
@RonRahaman RonRahaman deleted the xml-format branch August 26, 2020 20:21
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.

2 participants