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

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

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