CDTK.Tools.VibronicCouplingModel module

VibronicCouplingModel

class CDTK.Tools.VibronicCouplingModel.VibronicCouplingModel(**opts)[source]

Bases: object

distance_min()[source]

Returns the distance of the HO minima for each mode

print_parameters()[source]

Return formatted string with all model parameters

run_mctdh()[source]

Run MCTDH. Make name directory if it does not exist. Overwrite name directory if it exists.

set_spf(spf)[source]

Set all SPF numbers to spf

set_xixfn(x, n)[source]

Set xi to -x, xf to x for all modes. Set # DVR to n for all modes.

spatial_resolution()[source]

Returns the spatial resolution for each mode

write_inp()[source]

Fill in the MCTDH input template for the vibronic coupling model. Write file.

write_op()[source]

Fill in the MCTDH operator template for the vibronic coupling model. Write file.

write_results(t_fs, dat, fname)[source]

Write results file for use in GNUPLOT etc print parameters print t - dat to fname

CDTK.Tools.VibronicCouplingModel.coherence(rho)[source]

Calculate the coherence from a time-dependent 2x2 density matrix rho rho[i, :, :] = rho(t[i])

Returns |rho12| / sqrt(rho11 * rho22)

CDTK.Tools.VibronicCouplingModel.get_dm_t(fname)[source]

Get density matrix elements from expectation file

Expected format: t_fs Norm DM11 DM12 DM22

CDTK.Tools.VibronicCouplingModel.rdcheck_OK(fname)[source]

Analyze output of ‘rdcheck85 0 0’

Return True if the natural weight of the highest SPF does not exceed MAX_NATURAL_WEIGHT

CDTK.Tools.VibronicCouplingModel.rdgpop_OK(fname)[source]

Analyze output of ‘rdgpop85 <n> <f>’

Return True if the density at the edge of the position grid / the final edge of the basis grid does not exceed MAX_GRID_EDGE_AMPLITUDE

CDTK.Tools.VibronicCouplingModel.rho(dm11, dm12, dm22)[source]

Construct time dependent 2x2 density matrix from elements

CDTK.Tools.VibronicCouplingModel.trace_squared(rho)[source]

Calculate the squared trace from a time-dependent 2x2 density matrix rho rho[i, :, :] = rho(t[i])

Returns Tr[rho^2]