{'fraction_non_alphanumeric': 0.04457329226309114, 'fraction_numerical': 0.01784743612973365, 'mean_word_length': 3.990280289330922, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Coordinate transformation makes perfect invisibility cloak with arbitrary shape

By investigating wave properties at cloak boundaries, invisibility cloaks with arbitrary shape constructed by general coordinate transformations are confirmed to be perfectly invisible to the external incident wave. The differences between line transformed cloaks and point transformed cloaks are discussed. The fields in the cloak medium are found analytically to be related to the fields in the original space via coordinate transformation functions. At the exterior boundary of the cloak, it is shown that no reflection is excited even though the permittivity and permeability do not always have a perfect matched layer form. While at the inner boundary, no reflection is excited either, and in particular no field can penetrate into the cloaked region. However, for the inner boundary of any line transformed cloak, the permittivity and permeability in a specific tangential direction are always required to be infinitely large. Furthermore, the field discontinuity at the inner boundary always exists; the surface current is induced to make this discontinuity self-consistent. For a point transformed cloak, it does not experience such problems. The tangential fields at the inner boundary are all zero, implying no field discontinuity exists


Introduction
The recent exciting development of invisibility cloaks, has attracted intense attentions and discussions [1]- [16]. Theoretically, the cloaks are constructed easily based on a coordinate transformation method as proposed in Ref. [1]. The object inside the cloak is invisible to the outside observer, because the light is excluded from the object and the exterior field is not perturbed. The invisibility of the linearly radially transformed cylindrical and spherical cloaks has been confirmed by both numerical calculations [3,4] and analytical solutions [5,6]. Experimentally, the invisibility cloak with simplified material parameters has been implemented by Schurig et.al at the microwave frequency. Inspired by the idea of the invisibility cloak, some interesting applications, such as field concentration [9], field rotation [10], and electromagnetic wormholes [11], have been proposed.
Up to now, most of discussions on invisibility cloaks focus on the cylindrical and spherical cloaks produced by a coordinate transformation only in the radial direction. For instance, in Ref. [1], linearly radially transformed cylindrical and spherical cloaks are discussed in detail, and their invisibility is confirmed by ray tracing. In Refs. [5] and [6], the invisibility performances of such cylindrical and spherical cloaks are further confirmed by obtaining the exact fields in the cloak medium directly from Maxwell's equations. In practice, it is sometimes desirable to have invisibility cloaks whose shapes are tailored for the objects to be cloaked. Thus, one needs to understand well about the properties of invisibility cloaks with arbitrary shape produced by general coordinate transformations. However, the investigations on an invisibility cloak with arbitrary shape are only seen in few papers [13,14]. The mechanism why the invisibility of a general cloak produced by compressing space is ensured, is still unclear. In this paper, we investigate the electromagnetic (EM) properties of invisibility cloaks with arbitrary shape constructed by general coordinate transformations, and we confirm their perfect invisibility. To figure out invisibility cloaks' main physical properties, we only focus on the ideal case without considering the practical implementation in this paper.
The paper is organized as follows. In section II, Maxwell's equations in a curved coordinate system are derived. In section III, we show how to construct an invisibility cloak by compressing space in a general manner. In section IV, the wave behaviors and the medium properties at the exterior boundary of the cloak are investigated. In section V, we study the the wave behaviors and the medium properties at the inner boundary of the cloak. Through sections IV and V, the invisibility of cloaks with arbitrary shape is confirmed, and the fields in the cloak medium are derived with simple expressions. In section VI, the cloak parameters and the fields in the cloak are derived when the transformed space is described under arbitrary coordinate system. In section VII, two examples of invisibility cloaks, i.e., cylindrical and spherical invisibility cloaks are investigated. In section VII, the paper is summarized.

Maxwell's equations in a curved coordinate system
Maxwell's Equations in a Cartesian (x, y, z) space take the form as Consider the transformation from cartesian space to an arbitrary curved space described by coordinates q 1 , q 2 , q 3 with The length of a line element in the transformed space is given by where the superscript "T " denotes the transpose of matrix, and Q = gg T with The volume of a space element is expressed as dv = det(g)dq 1 dq 2 dq 3 , where det(g) represents the determinant of g. Here, it is noted that the way of describing the space transformation in this paper is similar as in Ref. [13], where the time transformation is also taken into account. The space-time metric tensor g αβ defined in Ref. [13] is g αβ = diag[1, −Q] in the present paper, where only space transformation is considered. Then Maxwell's equations in the curved space take the form as [1,13] where the superscript "-1" denotes the inverse of matrix. The permittivity and permeability ε and µ in the Cartesian space are considered for a general case, i.e., they can be tensors. It is seen above that Maxwell's equations in the curved space have the same form as in the Cartesian space. However, the definitions of the permittivity, permeability, current density, and electric charge density are different, as shown in Eqs. (7) and (8).

Construction of invisibility cloaks
To construct a cloak, one usually starts from compressing an enclosed space with the exterior boundary unchanged [1]. As seen in Fig. 1, the region enclosed by boundary S 1 is compressed to the region bounded by the exterior boundary S 1 and the interior boundary S 2 . Such a space compression can be viewed as a certain coordinate transformation described by Eq. (3), which makes a connection between the points in the compressed space with coordinates (q 1 , q 2 , q 3 ) and the points with Cartesian coordinates (x, y, z) in the original space. The exterior boundary S 1 satisfies q 1 = x, q 2 = y, q 3 = z. Notice the interior boundary S 2 is obtained by blowing up a line or a point [15]. Thus the cloaks can be divided into two classes: line transformed cloaks and point transformed cloaks. The compressed shaded region in Fig. 1 is the desired cloak.
The permittivity and permeability tensors of the cloak in Cartesian coordinate system are given in Eq. (7). It seems that the cloak medium is very complex, whose permittivity and permeability are tensors and their values vary with the spatial location. However, the eigen functions of the wave equations in the cloak medium are quite simple, which relate with the eigen function of the uncompressed space by Eq. (9).
In order to achieve the invisibility, the cloak should be able to exclude light from a protected object without perturbing the exterior field. Thus for the above cloak, at the exterior boundary S 1 , external incident light should excite no reflection. While at the interior boundary S 2 , no reflection is either excited, and light can't penetrate into the cloaked region. In the following sections, we will prove the invisibility of the cloak by investigating the wave behaviors at the cloak's exterior and inner boundaries. For the simplicity of our discussions and considering the practical application, the invisibility cloak is considered to be placed in air. Then the permittivity and permeability of the cloak in Eq. (7) will be simplified to which is the same as proposed in Refs. [1] and [13]. The cloak is considered to be lossless at the working frequency.

Cloak's exterior boundary
In this section, we will prove that no reflection is excited at the exterior boundary. The transmitted electric field E i and magnetic field H i without interacting with the inner boundary S 2 are expressed as where E i and H i represent the electric and magnetic fields of the external incident waves. According to Eq. (9), it is easily seen that the fields expressed in Eq. (11) satisfy Maxwell's equations in the cloak medium. Thus in order to prove no reflection excited at S 1 , one only needs to confirm that tangential components of E i (H i ) and , where the subscripts "n" represent S 1 's normal direction pointing outward from the cloak; "t 1 " and "t 2 " represent S 1 's two tangential directions, which are vertical with each other. Thus Eq. (11) can also expressed as  where n, t 1 , t 2 represent the unit vectors in n, t 1 , and t 2 directions, respectively. At the exterior boundary S 1 , q 1 = x, q 2 = y, and can be expressed as 0 n, i.e., the vector with the magnitude 0 in the n direction. Therefore, g on S 1 can be expressed as with where i, j, k = 1, 2, 3 and (12) and noticing that n, t 1 , and t 2 are orthogonal with each other, it is easily obtained that at S 1 which indicates that the tangential components of E i (H i ) and E i ( H i ) are continuous across S 1 . Thus, it is proved that no reflection is excited at the exterior boundary. Consider the permittivity and permeability at S 1 for the transformed cloak. It should be noticed that no flection excited at the exterior boundary does not imply that the exterior boundary is a perfectly matched layer (PML), where the permittivity and permeability at S 1 have the PML form ε = µ = diag[u, 1/u, 1/u] with the principle axes in n, t 1 and t 2 directions, respectively. We find that parameters at S 1 have the PML form only when g is a symmetry matrix. Observing Eq. (13), we have g T t 1 = t 1 and g T t 2 = t 2 , indicating that t 1 and t 2 are the eigen vectors of g T with the same eigen value 1. Considering g is a symmetry matrix, we can know the other eigen vector of g T is n with eigen value det(g). Thus, n, t 1 , and t 2 are eigen vectors of Q −1 = (g T ) −1 g −1 , with eigen values 1/ det(g) 2 , 1, and 1, respectively. Thus based on Eq. (10), ε and µ for a symmetric g can be expressed as where the diagonal elements correspond to the principle axes n, t 1 , and t 2 , respectively. The radially transformed cylindrical and spherical cloaks fall into this category [1].

Cloak's inner boundary
In this section, we will prove that at the inner boundary S 2 , no reflection is excited and no field can penetrate into the cloaked region. As discussed in section III, the inner boundary is constructed by blowing up a line or a point, as seen in Fig. 2(a) and (b). So in the following, two cases that: (1) line transformed cloaks, (2) point transformed cloaks, will be discussed separately.

Case (1): line transformed cloaks
Assume that x = b 1 (s) , y = b 2 (s) and z = b 3 (s) characterize the line, which is mapped to the inner boundary S 2 . We have f 1 (q 1 , q 2 , q 3 ) = b 1 (s) and f 2 (q 1 , q 2 , q 3 ) = b 2 (s), and on the line maps to a closed curve on S 2 . The parameter s can be expressed as a function of q 1 , q 2 , q 3 with s = u(q 1 , q 2 , q 3 ). ∇ q s = ∂u/∂q 1 x + ∂u/∂q 2 y + ∂u/∂q 3 z is the gradient of s, which points in the direction of the greatest increase rate of s. For ∇ q b i , we have ∇ q b i = ∂b i /∂s∇ q s, where i = 1, 2, 3. Thus, ∇ q b i and ∇ q s have the same direction. For the ease of our discussion, we again decompose the incident fields at the inner boundary as , where the subscripts "n" denotes S 2 's normal direction, which points outward from the cloaked region; "t 1 " and "t 2 " denote the tangential directions of S 2 , with t 1 vertical with the plane determined by two vectors in n and ∇ q s directions, and t 2 vertical with t 1 . Since s varies on the surface S 2 , the direction of ∇ q s denoted by s q should not be parallel to S 2 's normal direction. Thus, the plane determined by the vectors in n and ∇ q s directions always exists. The n, t 1 , and t 2 directions are unique, as illustrated in Fig. 2(a). E i and H i at S 2 can also be expressed in Eq. (12), however, with the different definitions of n, t 1 and t 2 . Since f i (q 1 , q 2 , z) − b i (s) = 0 (i = 1, 2, 3) characterize the inner boundary S 2 , ∇ q f i − ∇ q b i characterize the normal direction of S 2 . Then g at S 2 can be written as with where F i = |F i | when the direction of ∇ q f i − ∇ q b i is as the same as n direction, and F i = −|F i | when the direction of ∇ q f i − ∇ q b i is opposite to n direction. Notice that t 1 is orthogonal with both n and s q , where s denotes the unit the vector in the direction of ∇ q s. Substituting Eq. (18) into Eq. (12), it is easily derive that (20) However, the other components of fields are not zero. In particular, with To further investigate how the waves interact with the inner boundary, the values of the permittivity and permeability at S 2 are needed. Observing g expressed in Eq. (18), it is easily obtained that g T t 1 = 0, indicating that Q t 1 = gg T t 1 = 0. Thus one of Q's eigen vectors is t 1 with the eigen value λ t1 = 0, implying det(g) = 0. Because Q is a symmetry matrix, the other two eigen vectors denoted by a and b should be orthogonal to each other and in n − t 2 plane. The corresponding eigen values are denoted by λ a and λ b , respectively, with where Since λ t1 λ a λ b = det(Q) = det(g) 2 , λ t1 = det(g) 2 /(λ a λ b ). Observing Eq. (10), it is obtained that Q ǫ = Q µ = det(g). Therefore, it is known that t 1 , a and b are the principle axes of the cloaked medium at S 2 with ε and µ expressed as where the diagonal elements correspond to the principle axes t 1 , a, and b, respectively. Since det(g) = 0, we have ǫ a = µ a = ǫ b = µ b = 0, indicating the cloaked medium at S 2 is isotropic in n − t 2 plane. Therefore, n and t 2 can be considered as the principle axes with ǫ n = µ n = ǫ t2 = µ t2 = 0. For ǫ t1 and µ t1 , it is seen that they have infinitely large values. Thus, the inner boundary operates similarly as a combination of the PEC (perfect electric conductor) and PMC (perfect magnetic conductor), which can support both electric and magnetic surface displacement currents in t 1 direction [8,12,15]. In order to have zero reflection at S 2 , the boundary conditions at this PEC and PMC combined layer require that the incident electric (magnetic) fields in t 1 direction and normal electric (magnetic) displacement fields are all zero. From Eq. (20), we have E i t1 = H i t1 = 0. Since ǫ n = µ n = 0, it is obtained that D i n = B i n = 0. Therefore, it is achieved that no reflection is excited at S 2 , and E i and H i expressed in Eq. (11) are just the total fields in the cloak medium. The PEC and PMC combined layer guarantees that no field can penetrate into the cloaked region. It is worth noting that the induced displacement surface currents in t 1 direction make E i t2 and H i t2 at S 2 down to zero. However, E i t2 and H i t2 are not zero at the location approaching S 2 in the cloak medium. Thus E i t2 and H i t2 are discontinuous across the inner boundary S 2 [8,12,15].

Case (2): point transformed cloaks
In this case, a point with the coordinate [c 1 , c 2 , c 3 ] maps to the inner boundary. At S 2 , we have f 1 (q 1 , q 2 , q 3 ) = c 1 , f 2 (q 1 , q 2 , q 3 ) = c 2 , and f 3 (q 1 , q 2 , q 3 ) = c 3 . The incident electric and magnetic fields at the inner boundary can be decomposed into where the definition of the subscript "n" denotes S 2 's normal direction, which direct outward from the cloaked region; "t 1 " and "t 2 represent S 2 's two tangential directions, which are vertical with each other, as shown in Fig. 2(b). Consider g at the inner boundary, which can be expressed as with where i = 1, 2, 3. Then substituting Eq. (27) into Eq. (11), we derive that at S 2 Unlike the case (1), in this case tangential fields are all zero, implying that no field discontinuity exists at S 2 .
Analyzing Q similarly as in the case (1), we obtain that n is eigen vector of Q with the eigen value λ n = F 2 1 + F 2 2 + F 2 3 . While the other two eigen vectors are t 1 and t 2 with the corresponding eigen values λ t1 = λ t2 = 0, indicating det(g) = 0. Considering λ n λ t1 λ t2 = det(g) 2 , we have λ t1 = λ t2 = det(g)/ (F 2 1 + F 2 2 + F 2 3 ). Therefore, n, t 1 , and t 2 are principle axes of the cloak medium at S 1 with ε and µ given as where the diagonal elements are in the principle axes n, t 1 , and t 2 , respectively. Since det(g) = 0, ǫ n = µ n = 0. Considering that ǫ n = µ n = 0 and tangential components of incident fields at S 2 are zero, it can be conclude that no reflection is excited at S 2 , and no field penetrates into the cloaked region. The fields expressed in Eq. (11) are the total fields in the cloak medium.
In the above sections, it has been proved that no reflection is excited at both the exterior boundary and the inner boundary of the cloak, and no field can penetrate into the cloaked region. Therefore, the invisibility of invisibility cloaks with arbitrary shape constructed by general coordinate transformations is confirmed.

Transformation under arbitrary coordinate system
The cloak parameters and the fields inside the cloak are expressed in Eqs. (10) and (11), respectively. These results are expressed under the Cartesian coordinate system, i.e., (q 1 , q 2 , q 3 ) representing Cartesian coordinates in the transformed space. However sometimes, it is much easier to discuss cloaks under other coordinate systems, such as the cylindrical cloak under the cylindrical coordinate system (r, φ, z). Thus, it is necessary to obtain the corresponding expressions for cloak parameters and the fields in a cloak under an arbitrary coordinate system, which has also been discussed in Ref. [13].
Consider coordinate transformation, where (q 1 , q 2 , q 3 ) denotes the coordinates of an arbitrary coordinate system (u, v, w) in the transformed space. The spatial metric tensor of such coordinate system is Q u = g u g T u , where g u can be obtained easily by considering the relationship between Cartesian coordinate system and this arbitrary coordinate system. For the cylindrical coordinate system and spherical coordinate system, the metric tensors are diag[1, r 2 , 1] and diag[1, r 2 , r 2 sin 2 θ], respectively. The spatial metric tensor of (q 1 , q 2 , q 3 ) is expressed as Q q = g q g T q , where g q is shown in Eq. (4). Assuming that (x 1 , y 1 , z 1 ) are the corresponding Cartesian coordinates of (q 1 , q 2 , q 3 ) in the transformed space, the spatial metric tensor of (x 1 , y 1 , z 1 ) is then obtained as Q c = g c g t c , where g c = g −1 u1 g q , and g u1 represents g u expressed under the coordinates (q 1 , q 2 , q 3 ). Thus, from Eq. (10), the permittivity and permeability of the cloak in Cartesian coordinates are obtained as ε = µ = det(gq) det(gu1) g T u1 Q −1 q g u1 . Then expressing ε and µ in (u, v, w) coordinate system, we easily have where , and Q u1 = g u1 g T u1 . As an example, P 1 = diag[1, r, 1] for the cylindrical coordinate system.
Consider the fields in the cloak. It is easy to know that the fields expressed in Cartesian coordinate system are E = g c E i and H = g c H i . Thus, the fields expressed in the (u, v, w) coordinate system are expressed as following where g u0 represents g u expressed under the coordinates (q 3 ) denotes the corresponding coordinates of the coordinate system (u, v, w) in the original space, then g q can be written as g q = g s g u0 , where Then Eqs. (34) and (35) can be expressed as

Examples: cylindrical and spherical cloaks
In this section, based on the results obtained above, the well known radially transformed cylindrical and spherical cloaks will be discussed as examples.
When f (r) = b(r − a)/(b − a), the fields obtained from the above equations agrees with the results in Ref. [5]. However, the process of the calculation here is simpler. At the inner boundary, observing Eqs. (45) and (46), the tangential components of fields are zero [5,15,16]. Combining with ǫ n = µ n = 0, it is known that no field can penetrate into the cloaked region.

Conclusions
In this paper, we have studied the properties of invisibility cloaks constructed by general coordinate transformations. The invisibility of cloaks is confirmed, by proving that no reflection is excited at both the exterior and interior boundaries of the cloak, and no field can penetrate into the cloaked region. The fields in the cloak medium are related to the fields in original EM space through E = gE i and H = gH i . Therefore, to calculate fields in the cloak medium, there is no need to process tedious calculations from the complex material parameters. At the exterior boundary, when g is a symmetry matrix, the permittivity and permeability of the cloak medium have the PML form, which is just the case for our well known radially transformed cylindrical and spherical cloaks. At the interior boundary, the properties of the cloak for line and point transformed invisibility cloaks are quite different. For a line transformed cloak, the components of the permittivity and permeability in t 1 direction (defined in section V) are infinitely large. While the other components are all zero. The fields in t 2 direction are discontinuous across the inner boundary. The surface displacement currents in t 1 direction are induced to make this discontinuity self-consistent. For any point transformed cloak, at the inner boundary, the components of the permittivity and permeability don't have infinitely large component, and the permittivity and permeability in the normal direction are zero. The tangential fields at the inner boundary are zero, implying no discontinuity exist. Therefore, comparing to line transformed cloaks, point transformed cloaks are more practical due to the absence of the singularity of the cloak medium.