Periodic boundaries IIΒΆ

Learning targets

  • Periodic boundary conditions

  • 2D hexagonal lattice

  • Define unit cell as polygon with specially devoted Unit Cell construction

This example describes a unit cell of a 2D hexagonal lattice (equilateral triangular lattice) of elliptical objects in a background medium. The periodic computational domain is constructed as a polygon where the points are automatically determined from the unit cell geometry. This ease this input of the unit cell point coordinates and also sets the periodic boundary conditions as default.

The resulting geometry and mesh correspond to the following figure:

_images/ex2d_periodic_boundaries_hexagonal.png

.jcm Input File

  • layout.jcm [ASCII]

     1Layout2D { 
     2  Name = "TutorialExample2D" 
     3  UnitOfLength = 1e-09 
     4  
     5  MeshOptions {
     6    MinimumMeshAngle = 20 
     7    MaximumSideLength = 100 
     8    CurvilinearDegree = 2
     9  }
    10  Objects {
    11    Polygon { 
    12      Name = "ComputationalDomain/Air" 
    13      DomainId = 1 
    14      Priority = -1 
    15      PeriodicUnitCell {
    16        LatticeAngle = 60
    17        LatticeVectorLengths = [500 500] 
    18        Shape = Hexagonal        
    19      }
    20    } 
    21    
    22    Ellipse {
    23      Name = "EllipticalObject"  
    24      DomainId = 2 
    25      Priority = 1 
    26      RefineAll = 2
    27      RadiusX = 200
    28      RadiusY = 100
    29      RotationAngle = 15
    30      MeshOptions {
    31        MaximumSideLength = 50 
    32      }
    33    }
    34    
    35  } 
    36}