20.11.2014 Views

PPKE ITK PhD and MPhil Thesis Classes

PPKE ITK PhD and MPhil Thesis Classes

PPKE ITK PhD and MPhil Thesis Classes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

70<br />

3. INVESTIGATING THE PRECISION OF PDE SOLVER<br />

ARCHITECTURES ON FPGAS<br />

determine the optimal computational precision of the advection equation solver<br />

architecture.<br />

3.1 The Advection Equation<br />

For the test the simple advection equation (3.1) is selected, where the analytical<br />

solution is known <strong>and</strong> can be easily generated.<br />

∂u<br />

∂t +c∂u =0 (3.1)<br />

∂x<br />

where t denotes time, u is conserved property, c is the advection speed. The<br />

initial condition is a proper periodical function with the property of:<br />

u(x,t 0 )=u 0 (x) (3.2)<br />

the range of the function is from 0 to 1. Periodic boundary condition are used on<br />

the boundaries. With this initial conditions the architecture can easily be tested,<br />

because of the periodicity, the result should be in the same range as the initial<br />

condition. The analytical solution is<br />

ũ(x,t)=u 0 (x−c(t−t 0 )) (3.3)<br />

The numerical approximation of the advection equation is not easy, especially<br />

if the initial condition u 0 is discontinuous function. Its structure <strong>and</strong> solution<br />

method is similar to those equations which used in Fluid Flow simulation [55].<br />

This is a good starting equation which helps us investigating the precision of<br />

the arithmetic unit on FPGA to reach the predefined accuracy of the solution.<br />

However this chapter deals only with the one-dimensional case, <strong>and</strong> this 1D can<br />

not be used in real life applications, it gives us experience for the two- <strong>and</strong> three<br />

dimensional cases.<br />

3.2 Numerical Solutions of the PDEs<br />

In order to solve the continuous space-time PDE the equations has to be discretized.<br />

Since logically structured arrangement of data is fundamental for the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!