<jupyter_start><jupyter_text><jupyter_code>#@title Title......
#@markdown Introduction to topic.........
#@markdown <br><br>This document is part of the module ["Introduction to Gas Processing using NeqSim in Colab"](https://colab.research.google.com/github/EvenSol/NeqSim-Colab/blob/master/notebooks/examples_of_NeqSim_in_Colab.ipynb#scrollTo=_eRtkQnHpL70).
%%capture
!pip install neqsim
import neqsim
from neqsim.thermo.thermoTools import *
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
import math
%matplotlib inline
#@title  Title......
#@markdown Introduction to topic......... and to YouTube video....
from IPython.display import YouTubeVideo
YouTubeVideo('3zU6pfFq9V0', width=600, height=400)
#@title  Calculation title....
#@markdown Introduction and descirption of the calculation.......
#@markdown Documentation of how to use form.......
#@markdown Script is replaced with new code... 

from neqsim.thermo import fluid, TPflash
from neqsim.standards import ISO6976

nitrogen = 1.0 #@param {type:"number"}
CO2 = 0.0001 #@param {type:"number"}
methane = 88.3  #@param {type:"number"}
ethane = 5.0  #@param {type:"number"}
propane =  1.5 #@param {type:"number"}
ibutane =  1.25 #@param {type:"number"}
nbutane =  1.25 #@param {type:"number"}
ipentane =  0.25 #@param {type:"number"}
npentane =  0.25 #@param {type:"number"}
nhexane =  0.1 #@param {type:"number"}

fluid1 = fluid('srk')
fluid1.addComponent("nitrogen", nitrogen)
fluid1.addComponent("CO2", CO2)
fluid1.addComponent("methane", methane)
fluid1.addComponent("ethane", ethane)
fluid1.addComponent("propane", propane)
fluid1.addComponent("i-butane", ibutane)
fluid1.addComponent("n-butane", nbutane)
fluid1.addComponent("i-pentane", ipentane)
fluid1.addComponent("n-pentane", npentane)
fluid1.addComponent("n-hexane", nhexane)

TPflash(fluid1)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15727321524422974, 'fraction_numerical': 0.03166935050993022, 'mean_word_length': 5.5174825174825175, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '515535', 'license': 'Apache-2.0', 'n_tokens_mistral': 702, 'n_tokens_neox': 651, 'n_words': 158, 'path': 'notebooks/template.ipynb', 'repo_name': 'EvenSol/testneqsim', 'size': '1863'}