hex2site Function

public pure elemental function hex2site(layout, H, label) result(site)

Convert hex coordinates to real 2D lattice sites [returning the xy coordinates for the unique unit-cell, sites "A" and "B": this of course does not account for border effects, so would be suitable only for simple, periodized, systems, which for now are out of scope.] Actual real-space layout has to be specified by passing a (scalar) unit_cell object.

Arguments

Type IntentOptional Attributes Name
type(unit_cell), intent(in) :: layout
type(hex), intent(in) :: H
character(len=1), intent(in) :: label

A or B

Return Value type(xy_site)


Calls

proc~~hex2site~~CallsGraph proc~hex2site xy_coordinates::hex2site proc~hex2center xy_coordinates::hex2center proc~hex2site->proc~hex2center proc~ith_corner_offset xy_coordinates::ith_corner_offset proc~hex2site->proc~ith_corner_offset