unit_cell Derived Type

type, public :: unit_cell

Wrapper type to define all about a honeycomb structure


Inherits

type~~unit_cell~~InheritsGraph type~unit_cell unit_cell type~hex_orientation hex_orientation type~unit_cell->type~hex_orientation orientation

Components

Type Visibility Attributes Name Initial
type(hex_orientation), public :: orientation

armchair or zigzag

real(kind=8), public :: size = 1d0

lattice parameter

real(kind=8), public, dimension(2) :: origin = [0d0, 0d0]

Type-Bound Procedures

procedure, public :: print => print_unit_cell

call layout%print

  • public impure elemental subroutine print_unit_cell(C, unit)

    Pretty print of hex coordinates

    Arguments

    Type IntentOptional Attributes Name
    class(unit_cell), intent(in) :: C
    integer, intent(in), optional :: unit

    default = $stdout