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 Parsing for TransportMixture #265

Merged
merged 5 commits into from
Jul 18, 2018

Conversation

pbauman
Copy link
Member

@pbauman pbauman commented Jul 16, 2018

Closes #249.

Implements parsing for the TransportMixture object using our XMLParser. Unit tested on GRI 3.0 XML file. I didn't implement unit conversion here, but at least throw an error if the incorrect unit is specified so we don't get any surprises.

We can encapsulate the parsing of each specific part of the transport
section into a separate function. Eventually, we should just do
unit conversion, but for now, let's at least make the user aware
if they changed the unit and were expecting good things to happen.
This implements the function read_transport_data for the XMLParser.
Thus we should be able to now parse transport properties from an
XML file in Antioch.
This used to only test thermo, but now tests lots of other things
so let's remove the "thermo_" from the variable name.
We use the GRI3 XML file and test the three species that we checked
in the other parts of the GRI 3 unit test.
@pbauman pbauman merged commit e17822d into libantioch:master Jul 18, 2018
@pbauman pbauman deleted the transport-xml-parsing branch July 18, 2018 18:03
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.

1 participant