<jupyter_start><jupyter_text>nasaPoly Examples<jupyter_code>import nasaPoly

Water = nasaPoly.Species('H2O(L)')
from ipywidgets import interact

@interact(T=(200,650,10))
def State(T=300):
    Water.printState(T)<jupyter_output><empty_output><jupyter_text>We can double check that we can recover h_0 by integrating cp_0 dT<jupyter_code>from scipy.integrate import quad

T_test = 400 # K

h_0_integration = quad(Water.cp_0, 298.15, T_test)[0]
print(h_0_integration)

h_0_nasa = Water.h_0(T_test) - Water.h_0(298.15)
print(h_0_nasa)<jupyter_output>7709.366483074944
7709.366483071062<jupyter_text>Some plotting:<jupyter_code>import matplotlib.pyplot as plt
import numpy as np

Steam = nasaPoly.Species('H2O')
H2 = nasaPoly.Species('H2')
CO2 = nasaPoly.Species('CO2')
N2 = nasaPoly.Species('N2')

T_range = np.linspace(200, 2000, 250)
plt.plot(T_range, [Steam.cp_0(T) for T in T_range], label='$Steam$')
plt.plot(T_range, [H2.cp_0(T) for T in T_range], label='$H_2$')
plt.plot(T_range, [CO2.cp_0(T) for T in T_range], label='$CO_2$')
plt.plot(T_range, [N2.cp_0(T) for T in T_range], label='$N_2$')
plt.legend()
plt.xlabel('$T$ [K]')
plt.ylabel('$c_{p}^{\circ}$ [J/mol-K]')
plt.show()<jupyter_output>Species Name: H2O
Data Source: CODATA 1989. JRNBS 1987 v92 p35. TRC tuv-25 10/88.
Molecular wt: 18.01528 g/mol
Valid temperature range(s): (200.0, 1000.0), (1000.0, 6000.0)


Species Name: H2
Data Source: Hydrogen. TPIS, v1, pt2, 1978, pp31-32.
Molecular wt: 2.01588 g/mol
Valid temperature range(s): (200.0, 1000.0), (1000.0, 6000.0), (6000.0, 20000.0)


Species Name: CO2
Data Source: Props & Hf298: TPIS v2,pt1,1991,p27.
Molecular wt: 44.0095 g/mol
Valid temperature range(s): (200.0, 1000.0), (1000.0, 6000.0), (6000.0, 20000.0)


Species Name: N2
Data Source: TPIS 1978 v1 pt2 p207.
Molecular wt: 28.01348 g/mol
Valid temperature range(s): (200.0, 1000.0), (1000.0, 6000.0), (6000.0, 20000.0)
{'fraction_non_alphanumeric': 0.16323296354992076, 'fraction_numerical': 0.14844162704701533, 'mean_word_length': 5.553633217993079, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '519519', 'license': 'MIT', 'n_tokens_mistral': 1046, 'n_tokens_neox': 843, 'n_words': 188, 'path': 'examples/examples.ipynb', 'repo_name': 'ptgodart/nasaPoly', 'size': '1893'}