Posts

Off-Topic Python Translation Project

Image
 I created a Voice and Text Translation application using python, in 2020. The modules that I used are speech_recognition, tkinter, pyttx3, and googletrans. The code is 351 lines long and the following translations are available: English-Turkish Turkish-English Deutsch-Turkish Turkish-Deutsch Spanish-Turkish Turkish-Spanish Additionally, a text translator was implemented for translations between English-Turkish. The application was open to development, but I had to stop at some point due to the increasing load of my courses. Currently, there are some problems with the code due to the updated modules. Therefore, a little work should still be done on it. Sample GUI can be seen in the figures below.  Main Page Text Translation Page

Natural Gas PVT Properties

Image
A MATLAB code is generated to estimate some properties of gases. With the given specific gravity, mole fractions of non-hydrocarbon components, wellhead and bottom-hole temperatures and pressures, and the depth of interest, the properties below are calculated. Density (lbm/ft^3), Viscosity (cp), Formation volume factor (rcf/scf), Compressibility (1/psia), Pseudo-Pressure (psi^2/cp). During the implementation of the code, critical temperature and critical pressure are evaluated with two methods. Depending on the user's request, the program can use Standing's (1977) correlation or Sutton's (1985) correlation for miscellaneous gases. Other correlations can also be implemented; however, for this stage, I haven't coded any other method for critical properties. The correction of non-hydrocarbon components can be calculated using either Wichert Aziz (1972) or Carr-Kobayashi-Burrows (1954) corrections. It is again chosen upon the decision of the user.  Viscosity is calculated u

Sucker Rod Pump Analysis

Image
In this project, I wrote a MATLAB code to calculate the performance of a sucker rod pump with respect to pumping speed. I am still working on the user interface part since the program takes plenty of parameters.  The code in this project is completed and the calculations are accurate. I double-checked every parameter in my code using the "SuckerRodPumpingLoad.xls" file, which is the companion software of the book "Petroleum Production Engineering" by Boyun Guo.  As I mentioned above, the program takes many inputs, these are: API size of the pumping unit, Outer and inner diameters of the tubing, Diameters of rod sections, and their lengths, Perforation depth, Reservoir pressure, Productivity index, API gravity of oil, Water cut, Pump setting depth, Flowing tubing head pressure, Bubble point pressure, Oil formation volume factor, Water formation volume factor, Water specific gravity, Safety factor to prime mover power, The maximum allowable acceleration factor, Volume

Casing Design

Image
This project was started as an assignment for my Drilling Engineering II course. Later on, I worked on it and made some improvements, and added a user interface. It takes several inputs, these are:  Depth, feet Mud Weight, ppg Expected formation pressure gradient, psi/ft Collapse design factor Joint strength design factor Yield strength design factor Internal yield design factor Also, the casing size should be chosen from the interface. I only created a list of 7'' and 9 5/8'' casings, which I believe should be enough for the moment. After the inputs are given and the casing size is chosen, the design process takes place and gives a table. This table includes the following: Section Interval, ft Length, % Casing Grade Casing Weight Coupling Type Example figures are shown below. Note: The program still contains some bugs since it is still in the development stage. Figure 1: 7'' Casing design, before the design. Figure 2: 7'' Casing design, final result. --