Download Hw2.pdf

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Unification (computer science) wikipedia , lookup

Equations of motion wikipedia , lookup

Navier–Stokes equations wikipedia , lookup

BKL singularity wikipedia , lookup

Two-body problem in general relativity wikipedia , lookup

Derivation of the Navier–Stokes equations wikipedia , lookup

Itô diffusion wikipedia , lookup

Differential equation wikipedia , lookup

Finite element method wikipedia , lookup

Perturbation theory wikipedia , lookup

Schwarzschild geodesics wikipedia , lookup

Exact solutions in general relativity wikipedia , lookup

Partial differential equation wikipedia , lookup

Transcript
MANE-6940HEG
Studies in Computational Fluid Dynamics
Homework 2
1
Consider the problem of determining an approximation to the function u(x, t) in x > 0, t > 0
that satisfies the 1D wave equation
∂u
∂u
+ a(x, t)
=0
∂t
∂x
where
a(x, t) =
1 + x2
1 + 2xt + 2x2 + x4
subject to the initial condition
(
u(x, 0) =
1 (0.2 ≤ x ≤ 0.4)
0 (otherwise)
and the boundary condition
u(0, t) = 0
a.- Use the method of finite differences using the various different finite different schemae
presented in the text to obtain approximations for u(x, t). Carry out mesh extensions and give
the values of the approximation error as a function of the number of nodes in the FD model.
b.- Solve the problem using the finite element method in COMSOL and compare with your
previous results.
1
2
Consider the problem of determining the function φ(x) that satisfies the steady state, 1D,
linearized Burgers (convection-diffusion) equation
50
d2 φ
dφ
= 2
dx
dx
for x ∈ [0, 1], subject to the conditions
φ(0) = 1
φ(1) = 0
a.- Obtain, plot and tabulate the exact solution of the problem.
b.- Use the method of finite differences with central diferences throughout to obtain a
discrete analogue of the convection-diffusion equation, create a mesh of uniformly spaced nodes
(spacing h) and solve the resulting set of algebraic equations to obtain an approximate solution
of the problem. Compare against the exact solution.
c.- Use the method of finite differences with central diferences for the second derivative
and upwinding for the first derivative to obtain a discrete analogue of the convection-diffusion
equation, create a mesh of uniformly spaced nodes (spacing h) and solve the resulting set of
algebraic equations to obtain an approximate solution of the problem. Compare against the
exact solution and against your results for the previous question.
d.- Use the method of finite differences with central diferences for the second derivative
and the best scheme you can find for the first derivative to obtain a discrete analogue of the
convection-diffusion equation, create a mesh of uniformly spaced nodes (spacing h) and solve the
resulting set of algebraic equations to obtain an approximate solution of the problem. Compare
against the exact solution and against your results for the previous questions.
e.- Solve the problem using the finite element method in COMSOL and compare with your
previous results.
2