Help entries
Estas entradas pueden ser vistas en el REPL de Julia
usando ? name
.
FundamentosDMC.Options
— TypeStructure containing the options and parameters of the simulation.
Examples
julia> opt = Options()
julia> opt = Options(nsteps=2000)
FundamentosDMC.Point2D
— TypeStructure that contains a two-dimensional point, subtype of FieldVector from StaticArrays.
FundamentosDMC.Point3D
— TypeStructure that contains a three-dimensional point, subtype of FieldVector from StaticArrays.
FundamentosDMC.System
— TypeStructure containing the system initial coordinates and box sides.
Example
julia> sys = System(n=100,sides=[100,100])
FundamentosDMC.dim
— Methoddim(T::DataType)
Returns the dimension associated to a Point2D
(2
) or Point3D
(3
).
FundamentosDMC.forces!
— Methodforces!(x::Vector{T},f::Vector{T},opt::Options) where T
Subroutine that computes the force. It modifies the input f
vector.
FundamentosDMC.image
— Methodimage(x,sides)
Move coordinates to minimum periodic image.
FundamentosDMC.init_velocities
— Methodinit_velocities(sys::System{T},opt::Options) where T
Initialize velocities with random distribution.
FundamentosDMC.kinetic
— Methodkinetic(v)
Function that computes the kinetic energy given a velocity vector v
.
FundamentosDMC.mc
— Methodmc(sys::System{T},opt=Options=Options()) where T
Peforms a Monte-Carlos simulation.
FundamentosDMC.md
— Methodmd(sys::System{T},opt::Options) where T
Performs a simple MD simulation.
FundamentosDMC.md_berendsen
— Methodmd_berendsen(sys::System{T},opt::Options) where T
Performs a MD simulation with a Berendsen bath.
FundamentosDMC.md_isokinetic
— Methodmd_isokinetic(sys::System{T},opt::Options) where T
Performs a MD simulation with an isokinetic bath.
FundamentosDMC.md_langevin
— Methodmd_langevin(sys::System{T},opt::Options) where T
Performs a MD simulation with a Langevin bath.
FundamentosDMC.minimize!
— Methodminimize!(sys::System{T},opt::Options)
Minimizes the potential energy of sys.x0
. Modifies sys.x0
.
Example
julia> sys = System(n=100,sides=[100,100])
julia> minimize!(sys,Options(tol=1e-3))
Energy before minimization: 38322.72337856496
Energy after minimization: -74.15646912098042
FundamentosDMC.potential
— Methodpotential(x::Vector{T},sys::System{T},opt::Options) where T
Function that computes the potential energy given a vector of positions, x
.
FundamentosDMC.printxyz
— Methodprintxyz(time,x,sys,traj_file_buffer)
Subroutine that writes the current coordinates (or velocities) to output files, previously opened in respective buffers.
FundamentosDMC.printxyz
— Methodprintxyz(time,x,v,sys,traj_file_buffer,vel_file_buffer)
Subroutine that writes the current coordinates and velocities to output files, previously opened in respective buffers.
FundamentosDMC.printxyz
— Methodprintxyz(x,sys,file::String)
Prints one set of coordinates (or velocities), given in x
to file file
. Overwrites the file.
FundamentosDMC.radial_distribution
— Methodradial_distribution(
sys::System{T},
trajfile::String;
dmax::Float64=10.,
nbins::Int=100
) where T
Computes the g(r). If T=Point3D
the system will be read as three-dimensional.
FundamentosDMC.random_rotate
— Methodrandom_rotate(v)
Randomly rotate vector v
, which might be a Point2D
or a Point3D
FundamentosDMC.readxyz
— Methodreadxyz(file; first=1, last=-1)
Function that reads a xyz file.
FundamentosDMC.remove_drift!
— Methodremove_drift!(v)
Removes possible drift from velocities.
FundamentosDMC.velocity_distribution
— Methodvelocity_distribution(
sys::System{T},
velfile::String;
vmax::Float64=2.,
nbins::Int=100
) where T
Computes the distribution of velocities. If T=Point3D
the system will be read as three-dimensional.