Perfect mesh for multilayerd hyperball (for Mie scattering problem)

91 views
Skip to first unread message

Konstantin Ladutenko

unread,
Sep 3, 2015, 10:34:12 AM9/3/15
to deal.II User Group
Hi,

I would like to share a code, which produce a perfect (to my opinion) mesh of a multilayered sphere (or cylinder), which I am going to use for solving Mie scattering problem. It works fine for 2D and 3D, see the attached screenshots for initial mesh and two global refinements. It takes radii of boundaries (the last one is the outer radius of the mash) as a vector of doubles, e.g. std::vector<double> radii = {0.2, 0.3, 0.9, 1.0} used for screenshots. The produced grid is coarse, however, layers boundaries are formed exactly with mesh faces. This code can also be used to produce a nice mesh for step-6 with radii = {0.3, 0.5, 1.0}

The code uses anisotropic mesh refinement to produce as coarse mesh as possible (I was not able to deal with creation of a good mesh from a set of points, vertices numbering is too complicated for me). It can be useful both for beginners as an example of grid creation with scaling and manifold and for advanced users as a common code ready to go. It will be nice if this code can be distributed along with Deal II examples, e.g. as a recipe in Deal II cookbook (at the moment the only type of example is a step from tutorial, my source looks to be too simple to for a full tutorial step. However, this can save some time for a person, who need to create a mesh for parametric model in deal.ii). I should note that multilayer spherical particles have various applications in cancer treatment, medical diagnostics, cloaking and plasmonic devices, in the study of thermal properties of insulating materials, as well as for improving solar cells performance, etc. This way the code can be useful for a quite large community.

Best regards,
Kostya
grid-2.eps.png
grid-1.eps.png
grid-0.eps.png
3d-ref0.png
3d-ref1.png
3d-ref2.png
grid-mie.cc

Sungho Yoon

unread,
Sep 3, 2015, 7:30:57 PM9/3/15
to deal.II User Group


Hi, I am interested in this one. Thank you. am working with two phase flow in 3d circular pipe. Always, feel the lack of the resolution of wall in the efficient way to find the wall layer in mixing. I will have a look at the code inside if it could be fitted on. Sungho

2015년 9월 3일 목요일 오전 7시 34분 12초 UTC-7, Konstantin Ladutenko 님의 말:

Konstantin Ladutenko

unread,
Sep 4, 2015, 5:42:21 AM9/4/15
to deal.II User Group
Yep! Multilayered hyperball can be useful not only in nanoscale and electromagnetics, but also in other tasks. I suppose that simple climate simulations or earth geophysics can also benefit from such a mesh.
Reply all
Reply to author
Forward
0 new messages