Difference between revisions of "Thareq Wibisono"

From ccitonlinewiki
Jump to: navigation, search
Line 34: Line 34:
  
 
[[File:Bouching ball result.png]]
 
[[File:Bouching ball result.png]]
 +
 +
== Date: 9 March 2021' ==
 +
 +
Last week, we are given an assignment to investigate the parameter used for a gas turbine cycle in Open-Modelica software. My journey started by investigating the main component of the the gas turbine cycle which include the compressor, the combustion turbine, and the combustion chamber. Albeit the initial plan to investigate all of the component, I only able to investigate the input and output parameter of the compressor that are specific for the ThermoSysPro libraries which will be discussed below.
 +
 +
'''Compressor'''
 +
 +
Compressor is a device that are responsible to compress air to increase the pressure and temperature of the upstream air up to a certain point depending on the compressor unit specification. Because we idealized the system to be isentropic (adiabatic and reversible), there exist isentropic efficiency (''tau'') to relate the actual power and the idealized power. In ThermalSysPro system, there are several input that must be considered which are:
 +
 +
1. Inlet and outlet pressure ('''''Pi''''' and '''''Po''''')
 +
 +
2. Inlet mass flow rate ('''''m_dot''''')
 +
 +
3. Nominal compression rate
 +
 +
4. Inlet and outlet air temperature ('''''Ti''''' and '''''To''''')
 +
 +
5. Air composition ('''''XCO2''''', '''''XO2''''', '''''XH20''''', '''''XSO2''''')
 +
 +
It is worth mention, that the air composition will remain constant through out the process as there are no chemical reaction (combustion) occurring within the compressor. The parameter mention above will be used to calculate the power required for the compressor which have the following governing equation
 +
 +
 +
'''''W_cp = m_dot * (hi - ho)'''''
 +
 +
 +
As we can see from the equation above, we do not know the inlet and outlet specific enthalpy ('''''hi''''' and '''''ho'''''). The inlet specific enthalpy can be calculated by taking the '''''Pi''''', '''''Ti''''', and the air composition ('''''XCO2''''', '''''XO2''''', '''''XH20''''', '''''XSO2''''') using the following governing equation:
 +
 +
 +
'''''h = u * (Pi / rho_i)'''''
 +
 +
 +
in which '''''u''''' is the specific energy and '''''rho_i''''' is the inlet density which can be calculated by taking into account the inlet temperature ('''''Ti''''') and the air composition which will not be discussed in this today's wiki. Meanwhile, the oulet specific enthalpy can be calculated by using the relation between the specific enthalpy and the isentropic efficiency ('''''tau''''') by using the following equation:
 +
 +
 +
'''''tau = (his - hi) / (ho - hi)'''''
 +
 +
 +
which can be modified as:
 +
 +
 +
'''''ho = hi + ((his - hi) / tau)'''''
 +
 +
 +
in which his '''''his''''' is the isentropic specific enthalpy that take into account the outlet pressure '''''Po''''', the isentropic temperature ('''''Tis''''') and the air composition.

Revision as of 15:04, 9 March 2021

Date: 23 Feb 2021

Today I have learn about the correlation between justice and its usage in our current mechanical knowledge. Although it is rather an odd correlation as justice refers to the socio-economic term, the meaning of justice itself express the state of equilibrium in which one does not have to do another work to balance out the inequalities. As an engineer, justice is important not only to uphold social inequalities but also, in a more technical sense, an obligatory to understand how physical system works through a mathematical equations. Any physical system will find its own way to reach a state of equilibrium by increasing its entropy. By the time it reach the state of equilibrium, the entropy will reach its maximum level and any entities within the mathematical equation will balanced out.

But before dwell deeper to the topic, a simple definition to energy must be provided as many still have a vague idea about the term. The energy can be explained as the ability to do work, as one of my classmate says. It is a mechanism that structured life. like the flowing water, the energy is not stagnant. It constantly deliver one self to another entities in a various form. For example when we do an activity, we tend to be in exhaustion state by running a few kilometers as the energy is flowing from the chemical energy in our body to mechanical energy by moving our leg and dissipated as heat to the environment.

Date: 24 Feb 2021

The assignment given yesterday is to define the component of the combined cycle plant which are shown below

CombinedCycle Assign.PNG

Date: 2 March 2021

Last session of the class we are given a task to learn the open-modelica software as to get the general workflow of the software and its feeling. The main learning source for my learning journey is via youtube and a website titled "Modelica by Example" created by Dr. Michael M. Tiller. I began my journey with the familiarity of modelica language which is the driving program for the software. The syntax of the program, like most of the available high-language program, contain a familiar properties such as the if, elif, and else statement, iteration with for and while loop, variable declaration, array, etc. I tried to play around with the language and manage to write several interesting program. One of those is a function that return a calculation of a polynomial algebaric expression. The script is shown below

Figure 2. Code script for polynomial evaluator function

As you can see form the script, the function takes x as the input and return fx as the output. The parameter (variable that remain constant through out the simulation) is written below the protected statement which include the polynomial constant a, b, and c. Because we are dealing with the Real number, we must specified it after typing the parameter. The algorithm statement will carry out the actual evaluation which in this case will return fx as the output

Because it is a function, it cannot be simulated directly. So I create a new class, which are able to call and simulate the function, with the following script

Figure 3. Code script for simulating polynomial evaluator

which will return the following result

Figure 4. Result for polynomial evaluator function

Another program that I write is the bouncing ball program which calculate the bouncing trajectory of a free falling ball when hitting the ground. The script to the program is shown below

Figure 5. Code script for simulating the trajectory of a bouncing ball

In short the program will try to calculate the trajectory and the velocity of the ball. When the ball is bounced back, the velocity is decrease by a constant e. When the ball reach 0 m in height, the program will terminate. The resulting plot is shown below

Bouching ball result.png

Date: 9 March 2021'

Last week, we are given an assignment to investigate the parameter used for a gas turbine cycle in Open-Modelica software. My journey started by investigating the main component of the the gas turbine cycle which include the compressor, the combustion turbine, and the combustion chamber. Albeit the initial plan to investigate all of the component, I only able to investigate the input and output parameter of the compressor that are specific for the ThermoSysPro libraries which will be discussed below.

Compressor

Compressor is a device that are responsible to compress air to increase the pressure and temperature of the upstream air up to a certain point depending on the compressor unit specification. Because we idealized the system to be isentropic (adiabatic and reversible), there exist isentropic efficiency (tau) to relate the actual power and the idealized power. In ThermalSysPro system, there are several input that must be considered which are:

1. Inlet and outlet pressure (Pi and Po)

2. Inlet mass flow rate (m_dot)

3. Nominal compression rate

4. Inlet and outlet air temperature (Ti and To)

5. Air composition (XCO2, XO2, XH20, XSO2)

It is worth mention, that the air composition will remain constant through out the process as there are no chemical reaction (combustion) occurring within the compressor. The parameter mention above will be used to calculate the power required for the compressor which have the following governing equation


W_cp = m_dot * (hi - ho)


As we can see from the equation above, we do not know the inlet and outlet specific enthalpy (hi and ho). The inlet specific enthalpy can be calculated by taking the Pi, Ti, and the air composition (XCO2, XO2, XH20, XSO2) using the following governing equation:


h = u * (Pi / rho_i)


in which u is the specific energy and rho_i is the inlet density which can be calculated by taking into account the inlet temperature (Ti) and the air composition which will not be discussed in this today's wiki. Meanwhile, the oulet specific enthalpy can be calculated by using the relation between the specific enthalpy and the isentropic efficiency (tau) by using the following equation:


tau = (his - hi) / (ho - hi)


which can be modified as:


ho = hi + ((his - hi) / tau)


in which his his is the isentropic specific enthalpy that take into account the outlet pressure Po, the isentropic temperature (Tis) and the air composition.