Code construction - PowerPoint PPT Presentation

About This Presentation
Title:

Code construction

Description:

The multipole expansion is a consequence of the separation of variables ... have multipole components and sum up the multipoles. ... – PowerPoint PPT presentation

Number of Views:18
Avg rating:3.0/5.0
Slides: 4
Provided by: URYU
Category:

less

Transcript and Presenter's Notes

Title: Code construction


1
Code construction 2 Poisson solver.
  • The multipole expansion is a consequence of the
    separation of variables
  • on the spherical coordinate (r, q, f), and it
    decreases the number of
  • floating operations drastically.
  • Integrations in three coordinates r, q, f
    are performed first. We then
  • have multipole components and sum up
    the multipoles .
  • The number of floating operation can be
    minimized as one choose the
  • order of integration and sums in multipoles
    appropriately.

2
subroutine greens_formula_volume
end subroutine greens_formula_volume
3
  • Surface integral is calculated in the same way,
    so it is not written here.
  • Integration in r is not necessary in the
    surface integrals. Instead r is
  • replaced by the radius of the boundary.

subroutine Poisson_solver
call greens_formula_volume
call greens_formula_surface
end subroutine Poisson_solver
  • f(new) is not use as it is for the next
    iteration. To avoid a divergence of
  • iterations, we introduce a convergence factor
    l in the following way
  • f(new) is not use as it is for the next
    iteration. To avoid a divergence of
  • iterations, we introduce a convergence factor
    l in the following way

subroutine update_grfield
end subroutine update_grfield
f(N) is the field value at the Nth iteration.
Write a Comment
User Comments (0)
About PowerShow.com