Expand description
Initialization procedures.
Port of initial.f90, restmol.f90, cenmass.f90.
Call order matches Packmol’s initial.f90 exactly:
- compute_dmax
- restmol(type 0, solve=true) → sizemin/sizemax
- first random guess (within sizemin/sizemax)
- Phase 1: constraint-only GENCAN per type (reduced x!)
- Rescale sizemin/sizemax + compute cm_min/cm_max per type
- Setup cell grid + place fixed atoms
- Random initial point using cm_min/cm_max (restmol(false) only, up to 20 tries)
- Random angles
- Phase 2: constraint-only GENCAN per type (reduced x!)
Structs§
- Swap
State - Saved state for swaptype operations (mirrors
swaptypemod.f90).
Functions§
- compute_
dmax - Compute maximum internal distance per molecule type.
- init_
xcart_ from_ x - Initialize xcart from x (COM + Euler angles).
- initial
- Full initialization procedure.
Faithful port of
initial.f90. - restmol
- Run a single-molecule GENCAN solve (restmol).
Port of
restmol.f90.