Help entries

Estas entradas pueden ser vistas en el REPL de Julia usando ? name.

FundamentosDMC.OptionsType

Structure containing the options and parameters of the simulation.

Examples

julia> opt = Options()

julia> opt = Options(nsteps=2000)
source
FundamentosDMC.SystemType

Structure containing the system initial coordinates and box sides.

Example

julia> sys = System(n=100,sides=[100,100])
source
FundamentosDMC.forces!Method
forces!(x::Vector{T},f::Vector{T},opt::Options) where T

Subroutine that computes the force. It modifies the input f vector.

source
FundamentosDMC.mcMethod
mc(sys::System{T},opt=Options=Options()) where T

Peforms a Monte-Carlos simulation.

source
FundamentosDMC.minimize!Method
minimize!(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
source
FundamentosDMC.potentialMethod
potential(x::Vector{T},sys::System{T},opt::Options) where T

Function that computes the potential energy given a vector of positions, x.

source
FundamentosDMC.printxyzMethod
printxyz(time,x,sys,traj_file_buffer)

Subroutine that writes the current coordinates (or velocities) to output files, previously opened in respective buffers.

source
FundamentosDMC.printxyzMethod
printxyz(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.

source
FundamentosDMC.printxyzMethod
printxyz(x,sys,file::String)

Prints one set of coordinates (or velocities), given in x to file file. Overwrites the file.

source
FundamentosDMC.radial_distributionMethod
radial_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.

source
FundamentosDMC.velocity_distributionMethod
velocity_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.

source