changeset 2582:101e2b77a77a

app/pitot: added freestream mole fraction to output seemed like a useful thing to have, as we're always calculating it again...
author Chris James <c.james4@uq.edu.au>
date Mon, 03 Jun 2019 12:48:22 +1000
parents 97dba0f60c6d
children b7f1f24ee379
files app/pitot/pitot_output_utils.py
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/app/pitot/pitot_output_utils.py	Mon Jun 03 11:34:51 2019 +1000
+++ b/app/pitot/pitot_output_utils.py	Mon Jun 03 12:48:22 2019 +1000
@@ -676,15 +676,15 @@
             print knudsen_number_state10e_print
             txt_output.write(knudsen_number_state10e_print + '\n')
 
-    # if solver in ['eq','pg-eq']:
-    #     freestream_species1 = 'Species in the freestream state ({0}) at equilibrium (by {1}):'.format(cfg['test_section_state'],
-    #                                                                                        states[cfg['test_section_state']].outputUnits)
-    #     print freestream_species1
-    #     txt_output.write(freestream_species1 + '\n')
-    # 
-    #     freestream_species2 = '{0}'.format(states[cfg['test_section_state']].species)
-    #     print freestream_species2
-    #     txt_output.write(freestream_species2 + '\n')
+    if cfg['solver'] in ['eq','pg-eq']:
+        freestream_species1 = 'Species in the freestream state ({0}) at equilibrium (by {1}):'.format(cfg['test_section_state'],
+                                                                                           states[cfg['test_section_state']].outputUnits)
+        print freestream_species1
+        txt_output.write(freestream_species1 + '\n')
+
+        freestream_species2 = '{0}'.format(states[cfg['test_section_state']].species)
+        print freestream_species2
+        txt_output.write(freestream_species2 + '\n')
 
     # added ability to get the species in the post-shock condition
     # last bit is just to make sure that state 10e is actually an equilibrium state like it always should be!