SimulationBox

This type represents the simulation box of a molecular simulation.

Simulation Box

MolecularDynamicsFiles.SimulationBoxType
struct SimulationBox

Stores the properties of the simulation box of a particle system.

Fields:

  • basis: simulation box vectors stored in columns
  • origin: simulation box origin
  • bc: boundary conditions
  • istriclinic: box is triclinic flag
source
MolecularDynamicsFiles.SimulationBoxMethod
SimulationBox(
    basis::AbstractMatrix{Float64},
    origin::AbstractVector{Float64},
    bc::BoundaryConditions,
    istriclinic::Bool
) -> SimulationBox

Construct simulation box. basis is a 3x3 matrix with simulation box vectors in columns. origin is a 3-component vector.

source

Boundary Conditions (styles) of a simulation box

MolecularDynamicsFiles.BoundaryConditionsType
struct BoundaryConditions

Stores boundary conditions for each face of the simulation box.

Fields:

  • xlo: boundary style of the lower face of the box in dimension x
  • xhi: boundary style of the higher face of the box in dimension x
  • ylo: boundary style of the lower face of the box in dimension y
  • yhi: boundary style of the higher face of the box in dimension y
  • zlo: boundary style of the lower face of the box in dimension z
  • zhi: boundary style of the higher face of the box in dimension z
source
MolecularDynamicsFiles.pbcMethod
pbc(bc::BoundaryConditions) -> Tuple{Bool, Bool, Bool}

Return periodic boundary conditions (if the boundary style for each dimension is periodic).

source