Implements a simulation box with appropriate boundary conditions.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | imcon | ||||
real(kind=rp), | public, | dimension(3,3) | :: | basis | |||
real(kind=rp), | public, | dimension(3,3) | :: | dl_basis | |||
real(kind=rp), | public | :: | volume | ||||
logical, | public | :: | is_deforming | ||||
logical, | public | :: | is_aligned | Whether the basis vectors are aligned with the laboratory frame |
procedure, public :: init => smbx_init | |
procedure, public :: set_basis => smbx_set_basis | |
procedure, public :: freeze => smbx_freeze | |
procedure, public :: unfreeze => smbx_unfreeze | |
procedure, public :: get_image => smbx_get_image | |
procedure, public :: wrap_all => smbx_wrap_all | |
procedure, public :: to_center => smbx_to_center | |
procedure, public :: to_origin => smbx_to_origin | |
procedure, public :: get_rnd_points => smbx_get_rnd_points |
Initializes an instance of smbx_t. Can also be called to reset.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(smbx_t), | intent(out) | :: | this | An instance of |
||
integer, | intent(in) | :: | imcon | Flag specifying boundary conditions on the simulation box. |
Sets all three basis vectors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(smbx_t), | intent(inout) | :: | this | |||
real(kind=rp), | intent(in), | dimension(3,3) | :: | bv |
Specifies this as non-deforming.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(smbx_t), | intent(inout) | :: | this |
Specifies this as deforming.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(smbx_t), | intent(inout) | :: | this |
Returns the image of r under PBC.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(smbx_t), | intent(in) | :: | this | |||
real(kind=rp), | intent(inout), | dimension(3) | :: | r |
Wraps atom positions w.r.t. periodic boundary conditions.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(smbx_t), | intent(in) | :: | this | |||
real(kind=rp), | intent(inout), | dimension(:,:) | :: | coords |
Adjusts atom positions such that the c.o.m. of the atoms is at the center of the box. Assumes all atoms to have the same mass and aligned axis. Optionally returns the original c.o.m.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(smbx_t), | intent(in) | :: | this | |||
real(kind=rp), | intent(inout), | dimension(:,:) | :: | coords | ||
real(kind=rp), | intent(out), | optional | dimension(3) | :: | com |
Adjusts atom positions such that the c.o.m. of the atoms is at the origin. Assumes all atoms to have the same mass and aligned axis. Optionally returns the original c.o.m.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(smbx_t), | intent(in) | :: | this | |||
real(kind=rp), | intent(inout), | dimension(:,:) | :: | coords | ||
real(kind=rp), | intent(out), | optional | dimension(3) | :: | com |
Returns uniformly distributed points within the box.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(smbx_t), | intent(in) | :: | this | |||
real(kind=rp), | intent(out), | dimension(:,:) | :: | coords |