Write a code using the finite-volume-method

Assignment Help Mechanical Engineering
Reference no: EM133109882

SEM400 Computational Fluid Dynamics - Deakin University

Assignment: Programming Exercise

In your first assignment, you will have to complete a programming task. You can use any programming language you prefer, but we recommend MatLab, as it allows for relatively easy implementation and visualization. You can use programming libraries only for the solution of linear algebraic problems (e.g. linsolve(A,b) or inv(A)) and for plotting data. All other routines need to be programmed in primitive statements (i.e, if statements, loops and assignments). We can offer support for MatLab, C and Fortran.

Your task is to write a code using the Finite-Volume-Method (FVM) to solve the following 1D equations.

Question 1): Solve the 1D heat conduction equation without a source term.

The 1D heat conduction equation without a source term can be written as:

d/dx (k.dT/dx) = 0

Where k is the thermal conductivity, T the local temperature and x the spatial coordinate.

Using the Finite Volume Method, use this equation to solve for the temperature T in a rod. The rod has a length of L = 2.0 m, a cross-section area of A = 10·10-2m3, the thermal conductivity is k = 1500 W/Km, and the temperatures at the ends are held constant at 200°C and 600°C, respectively

Question 2): Solve the 1D heat conduction equation with a source term.

The 1D heat conduction equation with a source term can be written as:

d/dx (k.dT/dx) + q = 0

with k being the thermal conductivity, T the local temperature, x the spatial coordinate and q the source term.

Using the Finite Volume Method, use this equation to solve for the temperature T across the thickness of a flat plate of thickness L = 3 cm. The thermal conductivity is k = 1.25 W/Km, and the temperatures at the two ends are held constant at 150°C and 300°C, respectively. An electric current creates a constant heat source of q = 1100 kW/m3.

Question 3): Solve the 1D convection-diffusion problem

The 1D convection-diffusion problem can be written as:

d/dx (ρuΦ) = d/dx(ΓdΦ/dx)

With Φ the property that is being transported, u the convection speed, Γ the diffusivity and ρ the density.

The length of the domain is L = 1.0 m, the density is ρ = 1.0 kg/m3, the diffusivity Γ = 0.1 kg/ms. Determine the distribution of Φ for the following cases.

i. u = 0.1 m/s using 5 cells.
ii. u = 2.5 m/s using 5 cells.
iii. u = 2.5 m/s using 20 cells

For Assignment 1, you need to submit your results for the programming exercise:

1) The MatLab code(s) (eg. myFVM.m)
2) A report

This part of the assignment will contribute 20% to your final grade. You will be graded on

• The code (working, easy readable, adaptable, efficient) (5 percentage points)
• Verification (compare to analytical results) (5 percentage points)
• Project report (10 percentage points)
a. Explain approach and code (!).
b. Show verification, results and
c. Interpretation, especially regarding your results from the convection-diffusion problem.
d. Show how the code can be used for other problems (i.e. set your own boundary conditions and solve, 1 example).

Reference no: EM133109882

Questions Cloud

Difference between perpetual and periodic inventory systems : Explain the difference between perpetual and periodic inventory systems. What types of businesses would use each system
Hard and soft capital soft capital rationing : Explain the distinction between hard and soft capital soft capital rationing, and outline the reasons why these conditions might occur.
Record the entries to first charge production costs : Record the entries to first charge production costs for the period and to then record the loss due to spoiled work
Calculating the cost of preferred stock : Of the components shown below, which is least likely to be of value in calculating the cost of preferred stock?
Write a code using the finite-volume-method : Write a code using the Finite-Volume-Method - Interpretation, especially regarding your results from the convection-diffusion problem
Calculate the market premium : As an analyst for a big firm, you use CAPM to estimate the equity cost of capital, but it just happens that when you calculate the market premium it's less than
Difference between the price a dealer : The bid-ask spread (informally referred to as the buy-sell spread) is the difference between the price a dealer will buy and sell a currency
Calculate the bond effective duration : 1) The value of a bond is $908. If yield increase or decreases by 50bps, the value became 866.80 and 952.30, respectively. Calculate the bond's effective durati
How much cash was paid for interest during the year : During the year, interest payable decreased from a $8,160 beginning balance to a $4,512 ending balance. How much cash was paid for interest during the year

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  The aircraft drops the supplies from a point 100 m above

a helicopter pilot drop supplies to a stranded avalanche survivor located on the east side of the a mountain that

  Power input to the compressor and the rate of heat transfer

Determine the power input (hp) to the compressor and the rate of heat transfer (Btu/hr) removed from the nitrogen in the heat exchanger.

  Elapsed time between submission and reimbursement

If you had a travel voucher submitted more than 55 days ago, what might you conclude?

  The increased weight in the tank is 4765 lbf what is the

water from a pipeline is diverted into a weigh tank for exactly 10 min. the increased weight in the tank is 4765 lbf.

  Air at 147 psia and 70 degrees farenheit is compressed

air at 14.7 psia and 70 degrees farenheit is compressed adiabatically by a centrifugal compressor to a pressure of 100

  Knowing the mass center of the automobile and driver is 2

a stunt driver proposes to drive a small automobile at the speed of 45 mihr on the vertical wall of a circular pit of

  Determine the resultant couple acting on the plate

Determine (a) the resultant couple acting on the plate if a = 8 in., (b) the value of a so that the resultant couple acting on the plate is 480 lb•in. clockwise.

  Find the velocity of the final system

If the bullets stick to the block and they move together find the velocity of the final system and find the total impulse of each bullet if the movement takes 0.5s before coming to a stop.

  Formula for the total output possibility

(a) Compute a formula for the total output possibility set for goods 1 and 2 and draw it when

  Engineering maintenance environment

How do you know how much tension or deflection is required for a belt assembly? What happens if too tight and what happens if too slack?

  What is the value of re for the smaller channel

The Reynolds number for a particular micro channel flow is found to be Re = 2. If all channel dimensions (length, width, and height) are reduced by a factor of 10, and the time required for a particle to traverse the length of the channel is invarian..

  Calculate the horizontal deflection at the top

Assume simple supports between sign and post. Calculate the horizontal deflection at the top of the post due to the weight of the sign.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd