tem_spongeLayer_box_type Derived Type

type, public, extends(spongeLayer_base_type) :: tem_spongeLayer_box_type

This type contains data to define spongeLayer box


Components

Type Visibility Attributes Name Initial
real(kind=rk), public :: thickness

Thickness of the sponge layer. For planar sponge thickness is defined implicitly in place_normal

real(kind=rk), public :: dampFactor

Damp factor or strength for the sponge Layer

real(kind=rk), public :: dampExponent

damping exponent for the sponge layer

character(len=labelLen), public :: dampProfile

damping profile

real(kind=rk), public, allocatable :: targetState(:)

target states. For viscous sponge, viscosity is stored and multiplied with sponge strength

real(kind=rk), public :: origin(3)

Box origin, bottom left corner of sponge layer

real(kind=rk), public :: extent(3)

Length of box in each dimension

logical, public :: rounded_corner

To create sponge box with rounded corners

real(kind=rk), public :: corner_radius

Corner radius for rounded box


Source Code

  type, extends(spongeLayer_base_type) :: tem_spongeLayer_box_type
    !> Box origin, bottom left corner of sponge layer
    real(kind=rk) :: origin(3)
    !> Length of box in each dimension 
    real(kind=rk) :: extent(3)
    !> To create sponge box with rounded corners
    logical :: rounded_corner
    !> Corner radius for rounded box
    real(kind=rk) :: corner_radius
  end type tem_spongeLayer_box_type