Posts

Showing posts from December, 2021

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