Periodic boundaries IΒΆ

Learning targets

  • Periodic boundary conditions

  • 2D-periodic square lattice of 3D objects with transparent boundary conditions in the third dimension

This example constructs the unit cell of an periodic array of nano-scale circular holes in a thin layer (e.g. metal) on top of a substrate.

The following figure shows an image of parts of the geometry and mesh:

_images/ex3d_pinhole_periodic_square_mesh.png

The periodic boundary conditions are defined in the 2D section of the 3D layout, the transparent boundary conditions are applied in the Extrusion section of the layout.

.jcm Input File

  • layout.jcm [ASCII]

     1Layout3D {
     2  UnitOfLength = 1e-09
     3  
     4  MeshOptions {
     5    MaximumSideLength = 50
     6  }
     7  BoundaryConditions {
     8    Boundary {
     9      Direction = Vertical 
    10      Class = Transparent 
    11    }
    12    Boundary {
    13      Direction = Horizontal 
    14      Class = Periodic
    15    }
    16  }
    17  Extrusion {
    18    Objects {
    19      Polygon { 
    20        Name = "ComputationalDomain/Background" 
    21        DomainId = 1
    22        Priority = -1 
    23        Points = [-200 -200, 200 -200, 200 200, -200 200] 
    24      } 
    25      
    26      Circle {
    27        Name = "Circle" 
    28        DomainId = 2
    29        Radius = 100
    30        RefineAll = 2
    31      }
    32    }
    33    MultiLayer {
    34      MeshOptions {
    35        MaximumSideLengthZ = 50
    36      }    
    37      
    38      Layer {
    39        Thickness = 100
    40        DomainId = 1
    41      }
    42      Layer {
    43        Thickness = 20
    44        DomainIdMapping = [1 2 
    45                           2 3]
    46      }
    47      LayerInterface {
    48        GeometryValues = [
    49        Circle/Radius = 80
    50        ]
    51        GlobalZ = 10
    52      }
    53      Layer {
    54        Thickness = 100
    55        DomainIdMapping = [1 3]
    56      }
    57     }  
    58  } 
    59}