11.07.2015 Views

Numerical Algorithm of Solving the Forced sin-Gordon Equation

Numerical Algorithm of Solving the Forced sin-Gordon Equation

Numerical Algorithm of Solving the Forced sin-Gordon Equation

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.

260 PROCEEDINGS OF THE IMCSIT. VOLUME 3, 2008This transformation allows simplifying significantly numericalintegration and speed up <strong>the</strong> algorithm <strong>of</strong> calculation<strong>of</strong> functions u 1,2.(χ, t). The area <strong>of</strong> integration can becovered by a rectangular mesh and <strong>the</strong>n, <strong>the</strong> standardSimpson method can be used [9].Fig. 4. The Characteristic triangle with <strong>the</strong> family <strong>of</strong> curvesconst γ = .Fig. 6. The rectangular integration area R(v, u).The first integral (13) in <strong>the</strong> new variables (v, u) has<strong>the</strong> form(21)Fig. 5. The solution surface <strong>of</strong> (15) representing <strong>the</strong> Riemannfunction. Each curve is a solution <strong>of</strong> (19), (20) for particular fixedvalue <strong>of</strong> γ .The boundary value problem (19), (20) can be solvednumerically u<strong>sin</strong>g <strong>the</strong> relaxation method [9]. Since <strong>the</strong> solution<strong>of</strong> this BVP approaches zero when ±∞ <strong>the</strong>nfor numerical calculations this problem can be solved forfinite values <strong>of</strong> χ which are found manually from <strong>the</strong>limcondition .In <strong>the</strong> numerical calculations <strong>of</strong> <strong>the</strong> double integrals(13) and (14) one <strong>of</strong> <strong>the</strong> most difficult tasks is integrationover <strong>the</strong> triangle A . First, <strong>the</strong> integral needs to becalculated for various values <strong>of</strong> ( χ0, τ0). The area <strong>of</strong> <strong>the</strong>rectangle A becomes larger when <strong>the</strong> value <strong>of</strong> τ0 increases.The second difficulty is that changing <strong>the</strong> value <strong>of</strong><strong>the</strong> parameter a leads to changing <strong>the</strong> rectangle A shape.Therefore, it is very difficult to develop a universalalgorithm for various values <strong>of</strong> ( χ0, τ0) and <strong>the</strong> parametera . The integration area A (Fig. 3) can be mapped into awhere <strong>the</strong> double integral is calculated u<strong>sin</strong>g <strong>the</strong> Simpsonmethod and <strong>the</strong> value <strong>of</strong> ϕ ( v, u)at each point <strong>of</strong> <strong>the</strong> integralsum is a solution <strong>of</strong> <strong>the</strong> boundary value problem(19), (20).The numerical algorithm was implemented in a programwritten in C++. For calculating values <strong>of</strong> <strong>the</strong> Besselfunctions, double integrals and solving ordinary differentialequations <strong>the</strong> code given in [9] was used.As an example, <strong>the</strong> function Φ ( t) = <strong>sin</strong>(10 t)was considered.Two graphs in a plane ( x, u1) representing results<strong>of</strong> calculations <strong>of</strong> <strong>the</strong> integral (21) forareshown in Fig. 7 and Fig. 8.rectangle(Fig. 6) with coordinates(v, u) by means <strong>of</strong> transformationFig. 7. V = 0.95, t = πwhere t 0= τ 0+ V χ 0/ a .

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

Saved successfully!

Ooh no, something went wrong!