# 0.10 Numerical simulation  (Page 2/8)

 Page 2 / 8

The unit square is now discretized into JMAX by JMAX grid points where the boundary conditions and dependent variables will be evaluated. The grid spacing is $\delta =1/\left(JMAX-1\right)$ . The first and last row and column are boundary values.

The partial derivatives will be approximated by finite differences. For example, the second derivative of vorticity is discretized by a Taylor's series.

$\begin{array}{ccc}\hfill {w}_{i+1}& =& {w}_{i}+\delta {\left(\frac{\partial w}{\partial x}\right)}_{i}+\frac{{\delta }^{2}}{2}{\left(\frac{{\partial }^{2}w}{\partial {x}^{2}}\right)}_{i}+\frac{{\delta }^{3}}{6}{\left(\frac{{\partial }^{3}w}{\partial {x}^{3}}\right)}_{i}+\frac{{\delta }^{4}}{24}{\left(\frac{{\partial }^{4}w}{\partial {x}^{4}}\right)}_{\overline{x}}\hfill \\ \hfill {w}_{i-1}& =& {w}_{i}-\delta {\left(\frac{\partial w}{\partial x}\right)}_{i}+\frac{{\delta }^{2}}{2}{\left(\frac{{\partial }^{2}w}{\partial {x}^{2}}\right)}_{i}-\frac{{\delta }^{3}}{6}{\left(\frac{{\partial }^{3}w}{\partial {x}^{3}}\right)}_{i}+\frac{{\delta }^{4}}{24}{\left(\frac{{\partial }^{4}w}{\partial {x}^{4}}\right)}_{\overline{\overline{}}x}\hfill \\ \hfill {\left(\frac{{\partial }^{2}w}{\partial {x}^{2}}\right)}_{i}& =& \frac{{w}_{i-1}-2\phantom{\rule{0.166667em}{0ex}}{w}_{i}+{w}_{i+1}}{{\delta }^{2}}-\frac{{\delta }^{2}}{24}\left[{\left(\frac{{\partial }^{4}w}{\partial {x}^{4}}\right)}_{\overline{x}}+{\left(\frac{{\partial }^{4}w}{\partial {x}^{4}}\right)}_{\overline{\overline{}}x}\right]\hfill \\ & =& \frac{{w}_{i-1}-2\phantom{\rule{0.166667em}{0ex}}{w}_{i}+{w}_{i+1}}{{\delta }^{2}}+O\left({\delta }^{2}\right)\hfill \end{array}$

The finite difference approximation to the PDE at the interior points results in the following set of equations.

$\begin{array}{c}{\psi }_{i+1,j}+{\psi }_{i-1,j}+{\alpha }^{2}{\psi }_{i,j+1}+{\alpha }^{2}{\psi }_{i,j-1}-2\left(1+{\alpha }^{2}\right){\psi }_{i,j}+{\delta }^{2}{w}_{i,j}=0\hfill \\ {w}_{i+1,j}+{w}_{i-1,j}+{\alpha }^{2}{w}_{i,j+1}+{\alpha }^{2}{w}_{i,j-1}\phantom{\rule{1.em}{0ex}}\phantom{\rule{1.em}{0ex}}\phantom{\rule{1.em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}-2\left(1+{\alpha }^{2}\right){w}_{i,j}=0\hfill \\ i,j=2,\phantom{\rule{0.277778em}{0ex}}3,\phantom{\rule{0.277778em}{0ex}}\cdots JMAX-1\hfill \end{array}$

The vorticity at the boundary is discretized and expressed in terms of the components of velocity at the boundary, the stream function values on the boundary and a stream function value in the interior grid. (A greater accuracy is possible by using two interior points.) The stream function at the first interior point $\left(i=2\right)$ from the $x$ boundary is written with a Taylor's series as follows.

$\begin{array}{ccc}\hfill {\psi }_{2}& =& {\psi }_{1}±\delta {\left(\frac{\partial \psi }{\partial x}\right)}_{1}+\frac{{\delta }^{2}}{2}{\left(\frac{{\partial }^{2}\psi }{\partial {x}^{2}}\right)}_{1}+O\left({\delta }^{3}\right)\hfill \\ \hfill {\left(\frac{{\partial }^{2}\psi }{\partial {x}^{2}}\right)}_{1}& =& \frac{2\left({\psi }_{2}-{\psi }_{1}\right)}{{\delta }^{2}}\mp \frac{2}{\delta }{\left(\frac{\partial \psi }{\partial x}\right)}_{1}+O\left(\delta \right)\hfill \\ & =& \frac{2\left({\psi }_{2}-{\psi }_{1}\right)}{{\delta }^{2}}±\frac{2}{\delta }{v}_{y}^{BC}+O\left(\delta \right)\hfill \\ \hfill {w}_{1}^{BC}& \equiv & {\left(\frac{\partial {v}_{y}}{\partial x}-\alpha \frac{\partial {v}_{x}}{\partial y}\right)}^{BC}\hfill \\ & =& -{\left(\frac{{\partial }^{2}\psi }{\partial {x}^{2}}\right)}_{1}-\alpha \frac{\partial {v}_{x}^{BC}}{\partial y}\hfill \\ & =& -\frac{2\left({\psi }_{2}-{\psi }_{{}_{1}}^{BC}\right)}{{\delta }^{2}}\mp \frac{2}{\delta }{v}_{y}^{BC}-\alpha \frac{\partial {v}_{x}^{BC}}{\partial y}+O\left(\delta \right)\hfill \end{array}$

The choice of sign depends on whether $x$ is increasing or decreasing at the boundary. Similarly, on a $y$ boundary,

${w}_{1}^{BC}=-\frac{2{\alpha }^{2}\left({\psi }_{2}-{\psi }_{1}^{BC}\right)}{{\delta }^{2}}±\frac{2\alpha \phantom{\rule{0.166667em}{0ex}}{v}_{x}^{BC}}{\delta }+\frac{\partial {v}_{y}^{BC}}{\partial x}+O\left(\delta \right)$

The boundary condition on the stream function is specified by the normal component of velocity at the boundaries. Since we have assumed zero normal component of velocity, the stream function is a constant on the boundary, which we specify to be zero.

The stream function at the boundary is calculated from the normal component of velocity by numerical integration using the trapezodial rule, e.g.,

${\psi }_{j}={\psi }_{j-1}+\frac{\delta }{2}\left[{\left({v}_{x}\right)}_{j-1}+{\left({v}_{x}\right)}_{j}\right]/\alpha$

## Solution of linear equations

The finite difference equations for the PDE and the boundary conditions are a linear system of equations with two dependent variables. The dependent variables at a ${x}_{i}$ , ${y}_{j}$ grid point will be represented as a two component vector of dependent variables,

${\mathbf{u}}_{i,j}=\left[\begin{array}{c}{\psi }_{i,j}\\ {w}_{i,j}\end{array}\right]$

The pair of equations for each grid point can be represented in the following form

$\begin{array}{c}{\mathbf{a}}_{i,j}\phantom{\rule{0.166667em}{0ex}}{\mathbf{u}}_{i+1,j}+{\mathbf{b}}_{i,j}\phantom{\rule{0.166667em}{0ex}}{\mathbf{u}}_{i-1,j}+{\mathbf{c}}_{i,j}\phantom{\rule{0.166667em}{0ex}}{\mathbf{u}}_{i,j+1}+{\mathbf{d}}_{i,j}\phantom{\rule{0.166667em}{0ex}}{\mathbf{u}}_{i,j-1}+{\mathbf{e}}_{i,j}\phantom{\rule{0.166667em}{0ex}}{\mathbf{u}}_{i,j}={\mathbf{f}}_{i,j}\hfill \\ i,j=2,\phantom{\rule{0.277778em}{0ex}}3,\phantom{\rule{0.277778em}{0ex}}\cdots JMAX-1\hfill \end{array}$

Each coefficient is a 2x2 matrix. For example,

${\mathbf{e}}_{i,j}\phantom{\rule{0.166667em}{0ex}}{\mathbf{u}}_{i,j}=\left[\begin{array}{c}{e}_{i,j,1,1}\phantom{\rule{0.166667em}{0ex}}{\psi }_{i,j}+{e}_{i,j,1,2}\phantom{\rule{0.166667em}{0ex}}{w}_{i,j}\\ {e}_{i,j,2,1}\phantom{\rule{0.166667em}{0ex}}{\psi }_{i,j}+{e}_{i,j,2,2}\phantom{\rule{0.166667em}{0ex}}{w}_{i,j}\end{array}\right]$

The components of the 2x2 coefficient matrix are the coefficients from the difference equations. The first row is coefficients for the stream function equation and the second row is coefficients for the vorticity equation. The first column is coefficients for the stream function variable and the second column is the coefficients for the vorticity variable. For example, at interior points not affected by the boundary conditions,

$\begin{array}{c}{\mathbf{a}}_{i,j}=\left[\begin{array}{cc}1& 0\\ 0& 1\end{array}\right]\hfill \\ {\mathbf{b}}_{i,j}=\left[\begin{array}{cc}1& 0\\ 0& 1\end{array}\right]\hfill \\ {\mathbf{c}}_{i,j}=\left[\begin{array}{cc}{\alpha }^{2}& 0\\ 0& {\alpha }^{2}\end{array}\right]\hfill \\ {\mathbf{d}}_{i,j}=\left[\begin{array}{cc}{\alpha }^{2}& 0\\ 0& {\alpha }^{2}\end{array}\right]\hfill \\ {\mathbf{e}}_{i,j}=\left[\begin{array}{cc}-2\left(1+{\alpha }^{2}\right)& {\delta }^{2}\\ 0& -2\left(1+{\alpha }^{2}\right)\end{array}\right]\hfill \\ {\mathbf{f}}_{i,j}=\left[\begin{array}{c}0\\ 0\end{array}\right]\hfill \end{array}$

The coefficients for the interior grid points adjacent to a boundary are modified as a result of substitution the boundary value of stream function or the linear equation for the boundary vorticity into the difference equations. The stream function equation is coupled to the vorticity with the ${\mathbf{e}}_{ij}$ coefficient and the vorticity equation is coupled to the stream function through the boundary conditions. For example, at a $x=0$ boundary, the coefficients will be modified as follows.

can someone help me with some logarithmic and exponential equations.
20/(×-6^2)
Salomon
okay, so you have 6 raised to the power of 2. what is that part of your answer
I don't understand what the A with approx sign and the boxed x mean
it think it's written 20/(X-6)^2 so it's 20 divided by X-6 squared
Salomon
I'm not sure why it wrote it the other way
Salomon
I got X =-6
Salomon
ok. so take the square root of both sides, now you have plus or minus the square root of 20= x-6
oops. ignore that.
so you not have an equal sign anywhere in the original equation?
Commplementary angles
hello
Sherica
im all ears I need to learn
Sherica
right! what he said ⤴⤴⤴
Tamia
what is a good calculator for all algebra; would a Casio fx 260 work with all algebra equations? please name the cheapest, thanks.
a perfect square v²+2v+_
kkk nice
algebra 2 Inequalities:If equation 2 = 0 it is an open set?
or infinite solutions?
Kim
The answer is neither. The function, 2 = 0 cannot exist. Hence, the function is undefined.
Al
y=10×
if |A| not equal to 0 and order of A is n prove that adj (adj A = |A|
rolling four fair dice and getting an even number an all four dice
Kristine 2*2*2=8
Differences Between Laspeyres and Paasche Indices
No. 7x -4y is simplified from 4x + (3y + 3x) -7y
is it 3×y ?
J, combine like terms 7x-4y
im not good at math so would this help me
yes
Asali
I'm not good at math so would you help me
Samantha
what is the problem that i will help you to self with?
Asali
how do you translate this in Algebraic Expressions
Need to simplify the expresin. 3/7 (x+y)-1/7 (x-1)=
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
what's the easiest and fastest way to the synthesize AgNP?
China
Cied
types of nano material
I start with an easy one. carbon nanotubes woven into a long filament like a string
Porter
many many of nanotubes
Porter
what is the k.e before it land
Yasmin
what is the function of carbon nanotubes?
Cesar
what is nanomaterials​ and their applications of sensors.
what is nano technology
what is system testing?
preparation of nanomaterial
Yes, Nanotechnology has a very fast field of applications and their is always something new to do with it...
what is system testing
what is the application of nanotechnology?
Stotaw
In this morden time nanotechnology used in many field . 1-Electronics-manufacturad IC ,RAM,MRAM,solar panel etc 2-Helth and Medical-Nanomedicine,Drug Dilivery for cancer treatment etc 3- Atomobile -MEMS, Coating on car etc. and may other field for details you can check at Google
Azam
anybody can imagine what will be happen after 100 years from now in nano tech world
Prasenjit
after 100 year this will be not nanotechnology maybe this technology name will be change . maybe aftet 100 year . we work on electron lable practically about its properties and behaviour by the different instruments
Azam
name doesn't matter , whatever it will be change... I'm taking about effect on circumstances of the microscopic world
Prasenjit
how hard could it be to apply nanotechnology against viral infections such HIV or Ebola?
Damian
silver nanoparticles could handle the job?
Damian
not now but maybe in future only AgNP maybe any other nanomaterials
Azam
can nanotechnology change the direction of the face of the world
At high concentrations (>0.01 M), the relation between absorptivity coefficient and absorbance is no longer linear. This is due to the electrostatic interactions between the quantum dots in close proximity. If the concentration of the solution is high, another effect that is seen is the scattering of light from the large number of quantum dots. This assumption only works at low concentrations of the analyte. Presence of stray light.
the Beer law works very well for dilute solutions but fails for very high concentrations. why?
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
Got questions? Join the online conversation and get instant answers!