Layout2DΒΆ

Type:section
Appearance:simple

Warning

This layout definition is meant to replace the previously employed Layout in a future version of JCMsuite. These features are currently made a available as a beta version of JCMgeo in addition to the current version. See here for more information about differences in the syntax.

The layout section contains all information about the geometry of the simulation project. The layout section is defined in the file layout.jcm. In the Layout2D complex geometries for JCMgeo are built from simple geometrical objects, so-called geometrical primitives or primitives. These are Objects like for example polygons, circles or parallelograms. In the Objects section of the layout an arbitrary number of primitives are arranged. The primitives can be located and aligned in a global coordinate system, or they can be located and aligned relative to each other. Also, identifiers are given to the different geometrical objects which allow to attribute material and source properties (in the file materials.jcm and sources.jcm) to these regions, and instructions on mesh refinement in the different regions of the geometry can be specified.

A Layout2D section for a 2D geometry looks like this:

Layout2D {
  UnitOfLength = 1e-9
  Objects {
    Polygon {
      Name = "ComputationalDomain"
      DomainId = 1
      Priority = -1
      Points = [0 0, 500 0, 500 500, 0 500]
      Boundary {
        Number = 1
        BoundaryClass = Periodic
      }
      Boundary {
        Number = 2
        BoundaryClass = Periodic
      }
      Boundary {
        Number = 3
        BoundaryClass = Periodic
      }
      Boundary {
        Number = 4
        BoundaryClass = Periodic
      }
    }
    Polygon {
      Name = "Triangular Object"
      DomainId = 2
      Priority = 1
      MeshOptions {
        MaximumSideLength = 50
      }
      Points = [100 100, 300 100, 100 300]
    }
  }
}

This layout describes a rectangular computational domain with periodic boundaries. It contains a triangular object with domain identifier 2 and a background object with domain identifier 1. All 2D objects are defined in an x-y-coordinate system.

Please also consult the geometry tutorial which comes with the software distribution for a detailed description of the layout format.