StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Finite Difference Method and MATLAB - Assignment Example

Cite this document
Summary
"Finite Difference Method and MATLAB" paper calculates the heat exchange area and the log mean temperature difference, which is calculated using the formula and examines Finite Element Method and MATLAB 4, Integral Transformation Methods, Bessel functions, Legendre functions. …
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER93.5% of users find it useful

Extract of sample "Finite Difference Method and MATLAB"

Table of Contents 1.1). Finite Difference Method and MATLAB 2 For this we need to calculate the heat exchange area and the log mean temperature difference, which is calculated as using the formula 2 1.2. Finite Element Method and MATLAB 4 9 1.5. Legendre functions 9 References 12 1.1). Finite Difference Method and MATLAB To demonstrate the usage of this finite difference method, diffusion equation is applied. It should be noted that heat diffusion depends on three factors change of time, temperature in both ends and resistance of the wire. Thus the diffusion equation to be considered in this case is Where D =: The overall heat transfer coefficient of the equipment can also be calculated from the equation For this we need to calculate the heat exchange area and the log mean temperature difference, which is calculated as using the formula Where, ΔT is the temperature difference between the two streams at the inlet of the hot stream end and   at the exit end. This can be solved using Matlab with the following condition; assume that the length of diffusing wire is 2m and takes is 12 seconds Let w be length of wire t be time. The following code is used to solve in matlab There are also special cases whereby the finite difference method algorithm is only applicable to modeling if one wants the sampled input to also become periodic. 1.2. Finite Element Method and MATLAB The following equation for steady turbulent flow can be solved using Finite Element Method and MATLAB. The equation is Where g is the gravitational acceleration, H is the flow depth, S0 is the bed slope, f is the Darcy–Weisbach friction factor which can be evaluated by application of the Manning and the Darcy–Weisbach formulae in the form, n is Manning’s roughness coefficient, is the density of the water, Ud is the depth-averaged stream wise velocity, q is the longitudinal unit flow rate(= UH), s is the channel side slope (1 : s, vertical : horizontal) and y is the lateral direction. Then is the dimensionless eddy viscosity coefficient given by is the depth averaged eddy viscosity is the shear stress in the x-direction on the plane perpendicular to the y-direction.  is the linear scale factor to apportion the secondary flow terms based upon the reach Averaged sinuosity,  (defined as the ratio of the channel thalweg length to the valley length), is the secondary flow parameter for a straight compound channel arethe depth-averaged local mean velocities in the x and y directions, Cuv is the meandering coefficient. The model can be solved using the finite element method with the parameters, f, ,  and Cuv determined empirically. Due to the dynamic nature of the finite element method is able to find very many applications. It is common to use the finite element method while river modeling. But it is often very useful when dealing with structures that are repetitive in nature such as crystals. The ability of finite element method to identify periodically repetitive components makes it a favorable method for this purpose. Other situations and applications that utilize the finite element method include sampling, and correlation and convolution theory just to name a few. In order to better comprehend how the finite element method, it works in the computation of Discrete Fourier Transform as shown in the code above('DFT of G (Avg,3)) , it is important to first understand the nature of Discrete Fourier Transform and how it correlates to the finite element method. The finite element method and the Discrete Fourier Transform differ in the way that each represents data. This means that the finite element method deals with complex numbers while the Discrete Fourier Transform deals with real numbers only. Therefore, finite element method is actually based on the complex version of Discrete Fourier Transform which utilizes complex numbers in performing its computations. However, the finite element method can be used to calculate the real version of Discrete Fourier Transform and this is where finite element method serves its most common function. It is thus important to understand how both the real Discrete Fourier Transform and the complex Discrete Fourier Transform store their data in order to be able to better comprehend how data from real Discrete Fourier Transform can be transferred into and out of complex Discrete Fourier Transform format in the use of finite element method algorithm to calculate the complex Discrete Fourier Transform. 1.3. Integral Transformation Method In this function will be demonstrated using transfer function G(s) = whilst maintaining satisfactory relative stability. Matlab will used as G(s) = = = >> num= [0 0 0 35]; >> den= [1 80 700 0]; >> bode(num,den) System performance specification was based upon closed-loop time domain criteria of rise time and damping ratio. The compensators were designed using analogue frequency response design methods, based upon open-loop frequency response criteria of phase margin (PM) and gain crossover frequency (cg). The design method assumed second order relationships between open-loop frequency and closed-loop time response measures. These assumptions were invested to determine their reasonableness in the system. Having obtained the required compensators in analogue form, a digital equivalent was evaluated. The performance of the continuous-time and discrete-time controllers was compared G(s) = : 1 20 ; 10 2K : 20-2K : 2K a = =50-K b = =10K a=10 K=40 20-2K = =50-K 20-50 = -K+2K K= -30 Combining (1), and (3) =⇒ -30 < K < 40. The use of the Integral Transformation Method is what has enabled many electronic techniques to be possible and practical today. This is because, unlike the previous approaches, the F Integral Transformation Method only utilizes hundreds of times fewer lines of code. For instance, it is common to find Integral Transformation Method utilizing only a few dozen lines of coded as compared to the previous versions which used thousands. 1.4. Bessel functions We begin by Where 1.5. Legendre functions This can demonstrated using Black Scholes Model of option valuing. The model uses l uses theoretical approach to calculate options’ call price. Legendre functions is formed using five key option determinants which include risk free interest rates, stock price, and time to expiration, stock price and volatility. The equation for solution a model is formed below C = SN(d1) – Xе-rTN(d2) P = Xе-rTN(-d2) - SN(-d1) Where l C and P is the price of European call and put options and d1 = d2 = = d1- in the equations above S is Current stock price, X is Exercise or strike price of option, r is Annual risk –free interest rate, T is time to expiration in years, σ is Standard deviation or volatility of the relative price change of the underlying stock price and N(x) is The cumulative normal distribution function let take an example where consider a European call option with three months to expiry. The stock price is 69, 25, the strike price is 65, the risk-free interest rate is 5, 75% per year, and the volatility is 15% per year. Thus, S=69, 25, X=65, T=0, 25, r=0, 0575, σ = 0, 3. The first step is to determine d1 and d2 d1 = = 1,073 d2= d1- = 0,998 we have value for the cumulative standard normal distribution N(d) for various values of das N(1,073) ≈ 0,8588, and N(0,998) ≈ 0,8413. Then е-rT = е-0,0575x0, 25 = 0, 9857 the equation C = SN(d1) – Xе-rTN(d2) Call = 69, 25 (0, 8588) – 65 (0, 9857) (0, 8413) = 5,574 This function enables calculation larger amounts of options at fast speeds which is good for investors with large amount of data therefore utilize this model extensively. However, the model’s approach of calculating options at its expiration makes it weaker to Binomial model whose calculations are done on several internals. References Gonzalez, RC, Woods, RE and Eddins, SL, 2009, Digital Image Processing Using MatLab’, New York: Prentice Hall. Read More

Other situations and applications that utilize the finite element method include sampling, and correlation and convolution theory just to name a few. In order to better comprehend how the finite element method, it works in the computation of Discrete Fourier Transform as shown in the code above('DFT of G (Avg,3)) , it is important to first understand the nature of Discrete Fourier Transform and how it correlates to the finite element method. The finite element method and the Discrete Fourier Transform differ in the way that each represents data.

This means that the finite element method deals with complex numbers while the Discrete Fourier Transform deals with real numbers only. Therefore, finite element method is actually based on the complex version of Discrete Fourier Transform which utilizes complex numbers in performing its computations. However, the finite element method can be used to calculate the real version of Discrete Fourier Transform and this is where finite element method serves its most common function. It is thus important to understand how both the real Discrete Fourier Transform and the complex Discrete Fourier Transform store their data in order to be able to better comprehend how data from real Discrete Fourier Transform can be transferred into and out of complex Discrete Fourier Transform format in the use of finite element method algorithm to calculate the complex Discrete Fourier Transform. 1.3.

Integral Transformation Method In this function will be demonstrated using transfer function G(s) = whilst maintaining satisfactory relative stability. Matlab will used as G(s) = = = >> num= [0 0 0 35]; >> den= [1 80 700 0]; >> bode(num,den) System performance specification was based upon closed-loop time domain criteria of rise time and damping ratio. The compensators were designed using analogue frequency response design methods, based upon open-loop frequency response criteria of phase margin (PM) and gain crossover frequency (cg).

The design method assumed second order relationships between open-loop frequency and closed-loop time response measures. These assumptions were invested to determine their reasonableness in the system. Having obtained the required compensators in analogue form, a digital equivalent was evaluated. The performance of the continuous-time and discrete-time controllers was compared G(s) = : 1 20 ; 10 2K : 20-2K : 2K a = =50-K b = =10K a=10 K=40 20-2K = =50-K 20-50 = -K+2K K= -30 Combining (1), and (3) =⇒ -30 < K < 40.

The use of the Integral Transformation Method is what has enabled many electronic techniques to be possible and practical today. This is because, unlike the previous approaches, the F Integral Transformation Method only utilizes hundreds of times fewer lines of code. For instance, it is common to find Integral Transformation Method utilizing only a few dozen lines of coded as compared to the previous versions which used thousands. 1.4. Bessel functions We begin by Where 1.5. Legendre functions This can demonstrated using Black Scholes Model of option valuing.

The model uses l uses theoretical approach to calculate options’ call price. Legendre functions is formed using five key option determinants which include risk free interest rates, stock price, and time to expiration, stock price and volatility. The equation for solution a model is formed below C = SN(d1) – Xе-rTN(d2) P = Xе-rTN(-d2) - SN(-d1) Where l C and P is the price of European call and put options and d1 = d2 = = d1- in the equations above S is Current stock price, X is Exercise or strike price of option, r is Annual risk –free interest rate, T is time to expiration in years, σ is Standard deviation or volatility of the relative price change of the underlying stock price and N(x) is The cumulative normal distribution function let take an example where consider a European call option with three months to expiry.

The stock price is 69, 25, the strike price is 65, the risk-free interest rate is 5, 75% per year, and the volatility is 15% per year.

Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(Finite Difference Method and MATLAB Assignment Example | Topics and Well Written Essays - 1500 words, n.d.)
Finite Difference Method and MATLAB Assignment Example | Topics and Well Written Essays - 1500 words. https://studentshare.org/mathematics/2053442-math-coursework
(Finite Difference Method and MATLAB Assignment Example | Topics and Well Written Essays - 1500 Words)
Finite Difference Method and MATLAB Assignment Example | Topics and Well Written Essays - 1500 Words. https://studentshare.org/mathematics/2053442-math-coursework.
“Finite Difference Method and MATLAB Assignment Example | Topics and Well Written Essays - 1500 Words”. https://studentshare.org/mathematics/2053442-math-coursework.
  • Cited: 0 times

CHECK THESE SAMPLES OF Finite Difference Method and MATLAB

STUDY OF DIGITAL FILTER SHARPENING

This research will attempt ro critically scrutinize other interventions put forward by other researchers such as HARRIS who embraces IIR prototypes, to quantify the quality improvements for several IIR prototypes achievable, to analyze the feasibility of using double precision floating point in matlab to solve problems regarding curricular signal processing in relation to getting data for analysis in filtering.... The paper adopts an original method, which will be restricted to linear phase FIR prototypes for producing high standard and quality filters, evaluates the weaknesses of filter sharpening, examines the possibility of double filter sharpening as a procedural act for improving filter performance....
21 Pages (5250 words) Dissertation

Design of a Bandpass Fir Digital Filter

For this work XILINX and matlab software's were used for the design.... Keywords Digital filter, XILINX and matlab software's, Field Programmable Gate Arrays (FPGA), SPARTAN-3E, DSP Chips, DIP switches Contents ABSTRACT 2 Contents 3 1.... The preliminary work will use matlab tools and the result will compare with the theoretical result.... Scope of work The scope of this work is to design and develop a finite impulse response band pass digital filter....
38 Pages (9500 words) Dissertation

Mathematical Models and Methods

Temperature distribution along the length of a rod kept at constant temperatures at the ends and insulated elsewhere can be modelled by a a partial differential equation which is first order in time and second order in distance .... The temperature distribution at time zero is.... ... ... The boundary conditions specify the constant values at the ends ....
12 Pages (3000 words) Essay

Weather Forecasting for Weather Derivatives

The goal is to determine which method leads to the smallest forecasting error.... This research proposal examines three different approaches in the pricing of weather derivatives through forecasting daily temperature based on historical readings.... The forecast is performed only for the one time step ahead....
7 Pages (1750 words) Research Proposal

Questions to solve belongs control and instrumentation

The matlab is shown below ... he Z-N method does not give the final solution when compared to the... iscreet time systems are characterized by difference equations.... Using Bounded Input Bounded Output the system is stable since the output is bounded for every finite inputs; the system will be unable to blow up during its operation.... he open loop transfer function will be From the system therefore m has zero finite zeros....
3 Pages (750 words) Coursework

Lab report paraphrasing

he third section of the Experiment 2 was to determine the time used by matlab to finish solving the FFT and DFT CODE.... The above table demonstrates that the matlab function (FFT) on Engineering and construction Lab report Experiment Taking the following continuous-time signal x(t) represented by ; Determine theFourier transform of the signal for T= 0.... 077iIt is clear from the tables above that Part 1 results as well as part 2 results are identical; something that is anticipated since the first part makes use of the equation introduced in the Discrete Fourier Transform introduction with the second part making use of the Fast Fourier Transform matlab....
1 Pages (250 words) Essay

Method of Generating Random Number

In the "method of Generating Random Number" paper, the inverse transform method of generating random numbers will be used to generate random numbers.... If a wrong method is used the generated numbers may cover a small section of the population if a similar process is repeated over and over again.... This forms the basis of the inverse transform method, because....
11 Pages (2750 words) Assignment

Self-tuning ID Controller Design for Continuously Stirred Tank Reactor

The paper 'Self-tuning РID Controller Design for а Continuously Stirred Tank Reactor' introducing the methods of determining the rate of reaction as well as the products of reaction by taking into consideration the number of reactants and the temperature of the reaction tank.... ... ... ... the system was connected to a preferred personal computer with ideal software that could actually retrieve the data....
52 Pages (13000 words) Term Paper
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us