ComplementΒΆ

Learning targets

  • Invert a domain to create the complement

This example inverts a circle so that the defined domain becomes the exterior of the circle with is truncated by the computational domain.

_images/ex2d_complement_mesh.png

.jcm Input File

  • layout.jcm [ASCII]

     1Layout2D {  
     2  UnitOfLength = 1  
     3  Objects {
     4    
     5    Parallelogram {
     6      Name = "ComputationalDomain"
     7      Width = 8
     8      Height = 8
     9      Priority = -1
    10      DomainId = 1
    11    }
    12    
    13    
    14    Circle {
    15      Radius = 3
    16      RefineAll = 2
    17      DomainId=2
    18      Complement = yes
    19    }
    20  }  
    21  
    22}