Mercurial > hg > cfcfd3
changeset 2572:416c9080bfb5
examples/poshax3/poshax_python: update to output to show species list
updated the result so that it included the list of species in order,
so that the user can easily plot it themselves if they want
author | Chris James <c.james4@uq.edu.au> |
---|---|
date | Fri, 11 May 2018 19:10:13 +1000 |
parents | ecb75d215d5f |
children | 93f16274b1e9 |
files | examples/poshax3/poshax_python/poshax_python.py |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/poshax3/poshax_python/poshax_python.py Tue May 01 00:16:13 2018 +1000 +++ b/examples/poshax3/poshax_python/poshax_python.py Fri May 11 19:10:13 2018 +1000 @@ -30,7 +30,7 @@ from cfpylib.gasdyn.cea2_gas import Gas from cfpylib.gasdyn.gas_flow import normal_shock -VERSION_STRING = '30-Apr-2018' +VERSION_STRING = '11-May-2018' def poshax_python(p_inf, T_inf, reactants, inputUnits, species_list, no_of_temperatures, @@ -371,12 +371,19 @@ for column, value in zip(columns, split_row): results_dict[column].append(float(value)) + results_dict['output_species_list'] = output_species_list + if plot: print '-'*60 print "Now plotting the result" import matplotlib.pyplot as plt import numpy as np + # this is from shot_class_plotter.py, even if we don't use all of these... + font_sizes = {'title_size': 18, 'label_size': 18, 'annotation_size': 10, + 'legend_text_size': 12, 'tick_size': 13, 'marker_size': 7, + 'main_title_size': 20, 'marker': 'o', 'capsize': 4} + #--------------------------------------------------------------------------- # temp plot fig, ax = plt.subplots()