Rough SurfaceΒΆ

Learning targets

  • Construct a rough surface as a texture on the interface of two layers

  • Periodified Gaussian rough surfaces

This example constructs a Gaussian rough surface between two homogeneous layers:

_images/ex3d_rough_surface.png

.jcm Input File

  • layout.jcm [ASCII]

     1Layout3D {
     2  UnitOfLength = 1e-9
     3  
     4  MeshOptions {
     5    MaximumSideLength = 100
     6  }
     7  Extrusion {
     8    Objects {
     9      Parallelogram {
    10        Name = "ComputationalDomain"
    11        DomainId = 1
    12        Height = 2000
    13        Width = 2000
    14        
    15        Boundary {
    16          Class=Periodic
    17        }
    18      }
    19    }
    20    MultiLayer {
    21      LayerInterface {
    22        BoundaryClass = Transparent
    23      }
    24      Layer {
    25        DomainId = 2
    26        Thickness = 200
    27      }
    28      LayerInterface {
    29        Texture {
    30          RoughSurface {
    31            CorrelationLengths=[50 50]
    32            RMSHeight = 50.0
    33            RandomSeed = 1
    34          }
    35          MeshOptions {
    36            MaximumSideLength = 50
    37          }	
    38        }
    39      }
    40    }
    41  }
    42}
    43Layout3D {
    44  UnitOfLength = 1e-9
    45  
    46  MeshOptions {
    47    MaximumSideLength = 200
    48  }
    49  Extrusion { 
    50    Objects {
    51      Parallelogram {
    52        Name = "ComputationalDomain"
    53        DomainId = 1
    54        Height = 2000
    55        Width = 2000
    56        
    57        Boundary {
    58          Class=Periodic
    59        }
    60      }
    61    }
    62    MultiLayer {
    63      Layer {
    64        DomainId = 7
    65        Thickness = 200
    66      }
    67      
    68      LayerInterface {
    69        BoundaryClass = Transparent
    70      }
    71    }
    72  }
    73}
    

Note

A texture can be placed within each LayerInterface section. In this example the texture was placed between two stacked layouts. This way we can define the meshing quality on both sides of the texture individually.