User (COMPANY NAME) (Company Address)
User (COMPANY NAME) (Company Address)
Result..........................................................................................................................................6
Result........................................................................................................................................10
References................................................................................................................................11
List of figures
In all governing equation, differential equations are used to represent the properties. Using
the numerical techniques, the differential formulas are converted to numerical forms. Rather
than using the direct differential forms in MATLAB, it is recommended to use the numerical
form to simplify the solution. The numerical form of differential equations is shown below.
The first order differential forms can be expressed in three forms. One is the forward
difference approach, backward difference approach and central difference approach. It is
found that the central difference approach is having less error than the other two methods.
The idea behind the numerical form is to find the slope of dependent variable with respect to
an independent variable at a location. To find the slope very close nodes are used. If the nodal
difference is more the solution will get diverged and the error will repeat or get multiplied in
each iteration. The second order differential equation is expressed in the centre difference
method.
d2 x x i+1−2 x+ x i−1
=
d y2 Δ y2
Two nodes used in first-order differential term and three nodes are used in the second order
differential term. If the order of differential terms is three there will be five nodes in the
numerical form. These nodes are derived from Taylor series expansion or the addition of
Taylor series expansion of two different terms. There are chances that the truncation error is
present in each term. The order of truncation error is always less than 0.01. In this report,
there are two task t be completed and the governing equation I each task are converted into
numerical form and it needs to be solved using MATLAB.
Description of Task 1
It is a simple initial value problem in which the initial conditions have to be specified. It
consists of an electric generator which produces power when it is moved. The system is
placed in moving water and the water is moving the system which creates the movement and
then power is produced. The system is a combination of damper, mass, and spring. The
damper is connected with the generator. Whatever the damping energy produced will be
converted to power. The working of the system is explained below. The system consisting of
mass, damper, and spring is placed in flowing water. Water is allowed to move in a specified
speed. When the water is flowing over the mass causes the movement of mass in the direction
of flow. The movement of the mass is first allowed and then restricted by the damper. The
spring of the system allows the continuous movement of mass but the damper is stopping the
movement of the mass. The presence of flowing water continues the cycle and the system
continuously generating power.
2∗pi∗t
U =U 0 +U m sin(¿ )¿
T
The equation shows that the velocity is not constant and is a function of time. ‘T’ is given as
the time for the oscillatory flow field. Thus, the velocity is a function of sine and the velocity
increases and decreases with time. The term ‘T’ is related to the KC number and is given as
T Um
KC = . Substituting the T in the velocity
D
2∗pi∗t∗Um
U =U 0 +U m sin(¿ )¿
KC D
U0 is the steady part of the velocity and is constant. The second part in the velocity term
varies with time and KC number. KC number is the term relates the drag force of water with
respect to its inertia force applied on an object in the flow field. As based on the velocity
term, when KC number increases since value decreases and the velocity is also decreased.
For a small KC number, the flow field will be more fluctuating in nature.
The system consists of a mass, spring, and damper. The governing equation to solve the
mass, spring damper system under free vibration is given below.
d 2 x dx
m 2 +c +k x=0
dt dt
And if a continuous force acting one it rather than short excitation the equation becomes
d2 x dx
m 2
+c +k x=F
dt dt
In free vibration, the power produced will reduce and ends after some cycle. If the damping
coefficient is critically damped it will not undergo any cyclic movement. There are cases that
the vibration can be stopped based on the damping coefficient. If the damping coefficient is
underdamped the system will vibrate and ends after some cycles, If the system is critically
damped or overdamped the vibration will end even without completing a cycle. If the system
is undergoing forced vibration, vibration will continuous but the amplitude of vibration will
be controlled. The more the damping the vibration amplitude will be less and it undergoes
more time to finish one cycle.
The force acting on the system in this problem is drag force due to water and inertia force due
to water. The total force is the summation of drag force and inertia force. Force term is
expressed as
d Vr 1
F = C A md + ρ C D A |V r|V r
dt 2
CA is the added mass coefficient, and is the mass of the water, rho is the density of water, Cd
is the drag coefficient, A is the projected area against the flow direction and Vr is the relative
velocity between water and the mass. Adding the force in the governing equation
d2 x dx d Vr 1
m +c +k x = C A m d + ρ C D A |V r|V r
dt 2
dt dt 2
Now the system is balanced and the system will have controlled vibration based on the force
acting on it. Applying the numerical term in the governing equation
Matlab codes are generated based on this governing equation and is shown below
close all
clear all
clc
c = 100 ; % dampinf coefficient
k = 200 ; % thermal conductivity
Ca = 1 ; % added mass coefficient
Cd = 1.8 ; % drag coefficient
m = 50 ; % mass of cylinder in the vibratory system
L = 1 ; % kength of cylinder
d = 1024 ; % density of water
LD = 8 ;
time = 50 ; % total time taken for the analysis
n = 10000 ; % Number of divitions in the total time
total_time = linspace(0,time,n);
Um = 1+LD/10 ; % steady velocity of water
U0 = 0.1*Um ;
D = (10+LD)/100; % Diameter of the cylinder
A = L*D ; % projected area of cylinder
m1 = d*pi/4*(D^2); % mass of water
[x_location,P] = analysis1a(LD, time, n, total_time, Ca, Cd,
k, c, A, D, U0, Um, d, L, m, m1);
[x_location,P] = analysis1b(LD, time, n, total_time, Ca, Cd,
k, c, A, D, U0, Um, d, L, m, m1);
KC = 10 ;
dt = total_time(2)-total_time(1);
T = KC *D/Um; x_location(1) = 0;
U = U0 + Um*sin(2*pi*total_time/T);
i=1; V(i)= 0; Vr = U(i)-V(i);P(1) = 0;
x_location(i+1) =
((2*m*x_location(i)+2*m*dt*U0)/(dt^2)+c*U0+k*x_location(i)
+Ca*m1*(U(i+1)-U(i))/dt+Ca*m1*(2*x_location(i)
+2*dt*U0)/dt^2+0.5*d*A*abs(Vr)*Vr)/(2/dt^2)/(m+Ca*m1);
for i = 2:n-1
V(i) = (x_location(i)-x_location(i-1))/dt;
Vr = U(i)-V(i);
x_location(i+1) = (1/((m/dt^2)-(c/2/dt)+
(Ca*m1/dt^2)))*(m*(2*x_location(i)-x_location(i-1))/dt^2-
c*x_location(i-1)/2/dt-k*x_location(i)+Ca*m1*(U(i+1)-U(i))/dt-
Ca*m1*(x_location(i-1)-
2*x_location(i))/dt^2+0.5*d*Cd*A*abs(Vr)*Vr);
P(i) = c*(V(i)^2);
end
figure(3)
plot(total_time(1:end-1),P)
xlabel("Time in seconds")
ylabel("Power developed (W)")
hold on
Result
As per the objective, the graphs are plotted to check the change in power with respect to KC
number and damping coefficient. The analysis is carried out to check the behavior of the
system at a KC value of 10 and the damping value of 100m NS/m. The total time taken for
the analysis is 50seconds and the time division is 0.0005 seconds. The graph is plotted with
power developed on the Y axis and time-in s X axis. The graph is shown below.
Figure 2: power developed at KC = 10 c = 100Ns/m
Power is fluctuating at the initial stage and becomes stable. It takes around -3 seconds for this
particular system to get in stable condition. It can be seen that the system undergoes the
cyclic process. The variation of power at different KC number is shown below.
Description of Task 2
In this task, the CFD techniques are used in heat transfer analysis. Heat transfer I simply
energy transfer from high energy level to low energy level. Energy can be transferred by heat,
work or by mass. This problem deals with energy transfer by heat as well as mass. One
dimensional conduction equation is used to solve the system. The system is a 2 m length soil
and the analysis field are divided into 200 nodes. The soil temperature to reach 25C is to be
analyzed. In this system soil at an initial temperature of 18C is used. The top surface of the
soil is kept as 30C. It can be seen that the system will undergo thermal equilibrium after some
time and will reach 30C. It is considered to be a one-dimensional analysis as the heat is
conducting in one direction only towards the direction perpendicular to the surface). Along
with the conduction heat transfer ground water of velocity 0.016m/s is flowing in the same
direction of heat flow. Thus, heat transfer will be boosted up due to mass transfer of
groundwater.
The governing equation for the analysis of heat conduction with the mass transfer is shown
below
∂T ∂T ∂2 T
+u =α 2
∂t ∂x ∂x
Δt is the time division, u is the velocity of water and T i+1 ,n is the temperature which is to be
calculated at each time step The other temperature value are taken from previthe ous time
step and the codes needed to converged for each loops.
The objective of this analysis is to find the time to reach 25C at a location 1.5 meter from top
ground. The analysis of time to reach 25C at location 1.5m with varying thermal diffusivity is
also performed. ‘α ' is called thermal diffusivity and is a function of thermal conductivity,
density and specific heat. The bottom boundary condition is given as there is no heat transfer
at location x = 2 m from the ground. To write code for this condition T(n) at x = 2m is same
as T(n-1). MATLAB code for this governing equation is given below.
close all
clear all
clc
n = 200 ; % number of division space
L = 2 ; % total analysis length
s = linspace(0,L,n) ; %total space is devided in to 'n' parts
ds = s(2)-s(1); % difference between each nodes
LD = 8 ;
T = zeros(1,n)+(10+LD); % initial condition of temperature
T(1) = 30; % boundary condition of soil
dt = .0001; % each time step for iteration
T1 = T;
u = 0.002*(1+LD) ; % velocity of water
T_D = 0.0002 ; % thermal diffusivity
[time] = analysis2a(LD, n, T_D, u, L, ds, T, dt, T1);
disp(time)
[tm,time] = analysis2b(LD, n, T_D, u, L, ds, T, dt, T1);
time_25C = tm ;
Result
Two analysis are performed in this task. One is to find the time for reaching 25C at location x
= 1.5 m. And the other task is to find the variation of time taken for different values of
thermal diffusivity. The analysis one shows that location 1.5 m from ground reaches 25C in
169 seconds. The temperature reaches 25C in 169 seconds and take more time to reach 25C
at location beyond 1.5m. Same way the locations less than 1.5m from the ground will reach
25C in lesser time than 169 seconds.
Figure 5: Time variation with thermal diffusivity.
The second analysis is plotted on a graph with the time taken on Y-axis and thermal
diffusivity on X-axis. The graph is shown in the image above. The thermal diffusivity is
varied from 0.0002m2s to 0.001m2/s with a variation of 0.0001m2/s. From the result, the
time taken to reach 25C is increased with thermal diffusivity and then decreases. Thermal
diffusivity has an important role in distributing the heat inside a material. Moreover, this term
comes with transient heat conduction. In steady state heat conduction, the system reaches
steady state and the governing equation used in the steady state will not have thermal
diffusivity term or any time terms. Before reaching a steady state, a system will undergo
unsteady state condition which is governed by the terms explained in the above equations.
The more thermal conductivity the more the material will transfer heat within the material.
The reason the time has taken is increased will be initially the material will try to store the
heat rather than conducting it. Since the part at x =2 meter from the ground is insulated the
heat will be reflected back and get stored everywhere. This will increase the time taken to
reach the specified temperature.
References
Rajput, R. (2010). A textbook of fluid mechanics ("Fluid mechanics and Hydraulic
machines"--Part I). Ram Nagar, New Delhi: S. Chand.
Holman, J., & Bhattacharyya, S. (2002). Heat Transfer. New Delhi: McGraw Hill
Education.
Danko, G. Model Elements and Network Solutions of Heat, Mass and Momentum
Transport Processes.