SimulationBox
This type represents the simulation box of a molecular simulation.
Simulation Box
MolecularDynamicsFiles.SimulationBox — Typestruct SimulationBoxStores the properties of the simulation box of a particle system.
Fields:
basis: simulation box vectors stored in columnsorigin: simulation box originbc: boundary conditionsistriclinic: box is triclinic flag
MolecularDynamicsFiles.SimulationBox — MethodSimulationBox(
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.
MolecularDynamicsFiles.istriclinic — Methodistriclinic(box::SimulationBox) -> Bool
Return if the box is triclinic.
MolecularDynamicsFiles.pbc — Methodpbc(box::SimulationBox) -> Tuple{Bool, Bool, Bool}
Return periodic boundary conditions.
MolecularDynamicsFiles.bc — Methodbc(box::SimulationBox) -> BoundaryConditions
Return boundary conditions.
MolecularDynamicsFiles.basis — Methodbasis(box::SimulationBox) -> SMatrix{3, 3, Float64}
Return simulation box vectors in columns.
MolecularDynamicsFiles.origin — Methodorigin(box::SimulationBox) -> SVector{3, Float64}
Return box origin.
Boundary Conditions (styles) of a simulation box
MolecularDynamicsFiles.BoundaryCondition — ModuleEnum-module containing constants corresponding to boundary condition types.
Possible boundary conditions are the same as in LAMMPS.
MolecularDynamicsFiles.BoundaryCondition.Periodic — ConstantPeriodic boundary condition.
MolecularDynamicsFiles.BoundaryCondition.Fixed — ConstantFixed boundary condition.
MolecularDynamicsFiles.BoundaryCondition.ShrinkWrapped — ConstantShrink-wrapped boundary condition.
MolecularDynamicsFiles.BoundaryCondition.MinShrinkWrapped — ConstantShrink-wrapped with a minimum value boundary condition.
MolecularDynamicsFiles.BoundaryConditions — Typestruct BoundaryConditionsStores boundary conditions for each face of the simulation box.
Fields:
xlo: boundary style of the lower face of the box in dimension xxhi: boundary style of the higher face of the box in dimension xylo: boundary style of the lower face of the box in dimension yyhi: boundary style of the higher face of the box in dimension yzlo: boundary style of the lower face of the box in dimension zzhi: boundary style of the higher face of the box in dimension z
MolecularDynamicsFiles.BoundaryConditions — MethodBoundaryConditions(
xlo,
xhi,
ylo,
yhi,
zlo,
zhi
) -> BoundaryConditions
Construct boundary conditions, specifying boundary type for each face. See BoundaryCondition.
MolecularDynamicsFiles.pbc — Methodpbc(bc::BoundaryConditions) -> Tuple{Bool, Bool, Bool}
Return periodic boundary conditions (if the boundary style for each dimension is periodic).