<jupyter_start><jupyter_text><jupyter_code>import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
!git clone https://github.com/yohanesnuwara/reservoir-engineering
!git clone https://github.com/yohanesnuwara/pyreservoir<jupyter_output>Cloning into 'pyreservoir'...
remote: Enumerating objects: 75, done.[K
remote: Counting objects: 100% (75/75), done.[K
remote: Compressing objects: 100% (70/70), done.[K
remote: Total 75 (delta 35), reused 0 (delta 0), pack-reused 0[K
Unpacking objects: 100% (75/75), done.<jupyter_text>Gas Condensate Material Balance<jupyter_code>import sys
sys.path.append('/content/pyreservoir/pvt')

import gascorrelation
import sys
sys.path.append('/content/pyreservoir/matbal')

from plot import *<jupyter_output><empty_output><jupyter_text>Data 1. Ideal data (Rs and Bo are known, measured)<jupyter_code>columns = ['p', 'Np', 'Gp', 'Bg', 'Bo', 'Rs', 'Rv']
data = pd.read_csv('/content/reservoir-engineering/Unit 10 Gas-Condensate Reservoirs/data/Table 10.15-PVT and Production Data for Problem 10.5.csv', names=columns)
data<jupyter_output><empty_output><jupyter_text>Plot 1<jupyter_code>Pdp = 4400 # psia
p = data['p'].values # psia
Np = data['Np'].values # STB
Gp = data['Gp'].values # scf
Bg = data['Bg'].values # RB/scf
Bo = data['Bo'].values # RB/STB
Rs = data['Rs'].values # scf/STB
Rv = data['Rv'].values # STB/scf
x = condensate()
F, Eg = condensate.plot1(x, Pdp, p, Rs, Rv, Rv[0], Bo, Bg, Bg[0], Np, Gp, Gp[0], Rs[0])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16245006657789615, 'fraction_numerical': 0.033288948069241014, 'mean_word_length': 5.894495412844036, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 2, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '492176', 'license': 'MIT', 'n_tokens_mistral': 645, 'n_tokens_neox': 583, 'n_words': 138, 'path': 'docs/testing_matbal.ipynb', 'repo_name': 'Preshehi/reservoir-engineering', 'size': '1502'}