Equations & Features
Physical Quantities Computed By MESH¶
By classifying the geometries into three different categories: planar geometry where the basic components are plates, grating geometry which contains at least one layer has a grating along direction, and patterns where at least one layer has either rectangle or circular patterns. The details about these three types are discussed below.
In general, the total heat transfer between bodies with temperatures and is written as
where the quantity characterize the strength of heat transfer between the two bodies involved.
Heat transfer in planar geometries¶
For planar geometries (implemented as SimulationPlanar object), the quantity computed by integrating the and vector over the whole space, i.e.
And in the case of an isotropic material in and direction, the above integral can be reduced to
MESH directly provides functions to compute , and directly.
Heat transfer in grating geometries¶
In the case of a grating geometry (implemented as SimulationGrating object), the heat transfer rate is written as
Here again, MESH gives access to a few things
- settings of the integral: for isotropic geometries and can be reduced to twice of the integral over the positive axis.
- directly computation of and , and allows to print out in the process of obtaining .
Heat transfer in pattern geometries¶
In the case of a pattern geometry (implemented as SimulationPattern object), the heat transfer rate is written as
Again similar to the grating geometries, integral settings and printing of intermediate are supported. In addition, multiple different kinds of patterns can exist in one layer. However, the code now only supports a rectangle lattice. In MESH, for 2D patterns the supported types of patterns supported are rectangle, circle, ellipse and polygon, and each pattern cannot partially overlap with each other. But one pattern can be fully contained inside another pattern. In addition, extending the code to non-trivial lattice and adding supports to more patterns are in principle doable.
Supports over both scalar dielectric and tensor dielectric¶
MESH also supports material whose dielectric can be scalar, diagonal, or a tensor. These three different types are encapsulated into a Union type in MESH. Currently for tensor types, MESH can only deal with the case when epsilon in the direction can be decomposed from and directions, i.e.
A Comprehensive Lua Wrapper for Users¶
Lua wrapper for C code is widely used because of easy implementation and high readability. For example, S4 which is also an implementation of RCWA for periodic geometries, also utilizes Lua as its front. Here MESH not only gives the user basic functionalities of computing physical quantities related to heat transfer, but also allows users to directly use MPI in a lua script, so that users have better control over the simulation at run time. To show the advantages of directly revealing MPI interface to the users, a concrete example of lua MPI interface is explained in the example section. MESH also provides a vanilla version that can be built without MPI. In that case, OpenMP is used if the system has OpenMP libraries built in.