Ionic Liquids
The ionic liquid example demonstrates a molecular condensed-phase ALF workflow with a richer fragment library than the simple water example. It is intended as a starting point for mixtures containing solvent molecules, cations, anions, and small organic fragments.
The files needed to run the example are located in examples/IL.
Before You Run
This example is a template, not a ready-to-run cluster job.
Edit
parsl_configs.pyfor the target Slurm partitions, accounts, QoS, walltimes, worker initialization commands, and GPU resource requests.Edit
orca_config.jsonsoQM_run_commandpoints to the local ORCA executable and requested output includes the properties inproperties_list.Edit
hippynn_config.jsonfor the desired species, network, training, and device settings.Review
builder_config.jsonbefore changing the fragment library. The builder expects fragment names to match files infragment_library.
Workflow Pattern
Stage |
Task |
|---|---|
Builder |
|
Sampler |
|
QM |
|
ML |
|
The builder assembles systems from fragment_library using
solute_molecule_options and solvent_molecules. This is useful when the
active-learning space includes multiple possible cation/anion combinations or
solvent environments.
The sampler uses HIPPYNN models through HIPNN_ASE_load_ensemble. Unlike the
simple water example, this sampler config includes temperature and density
fluctuation ranges, so ALF can explore both thermal and box-size variation
during MLMD.
The QM task uses the ORCA double-check interface, which is useful when the workflow should validate a first calculation with a second ORCA input before accepting the label.
Recommended Bring-Up Commands
From examples/IL:
python -m alframework --master master_config.json --test_builder
python -m alframework --master master_config.json --test_qm
python -m alframework --master master_config.json --test_ml
python -m alframework --master master_config.json --test_sampler
python -m alframework --master master_config.json
Configuration Files
File |
Purpose |
|---|---|
|
Connects the condensed-phase builder, MLMD sampler, ORCA double-check task, HIPPYNN training task, queue controls, outputs, and Parsl configs. |
|
Defines fragment-library choices, solvent probabilities, cell ranges, radius scaling, minimum distance, maximum atom count, and coordinate shaking. |
|
Defines MD time step, maximum time, uncertainty thresholds, temperature and density schedules, trajectory output, and ML calculator options. |
|
Defines ORCA commands and input blocks. |
|
Defines HIPPYNN ensemble and training settings. |
|
Generic CPU/GPU Slurm template copied from the water example. |
Expected Outputs
The run writes the standard ALF outputs: status.txt, h5store/data-*.h5,
models/model-*, sampling/metadata-*.p, ORCA scratch directories under
QM_scratch_dir, and optional status_plots/ output.
See Builders for condensed-phase builder settings, Samplers for MLMD and density fluctuation controls, and Parsl And HPC Execution for adapting the copied Parsl template.