Ba2NiIrO6 Tutorial¶
This chapter shows a complete, practical workflow for running Material-MC with the provided Ba2NiIrO6 example.
Prerequisites¶
Before running this example, make sure:
Material-MC has been built (the executable is
build/MMC).MPI is available on your system.
You are in the project root directory.
Example files¶
The example folder contains two required input files:
example/Ba2NiIrO6/POSCAR: crystal structure (lattice vectors + atomic positions)example/Ba2NiIrO6/input.toml: Monte Carlo and Hamiltonian settings
In this example:
Method:
ptmc(parallel tempering Monte Carlo)Temperature range:
0.0to400.0Temperature points:
200Supercell size:
[8, 8, 4]Magnetic elements:
NiandIrModel:
Heisenberg
Run the simulation¶
From the project root, run:
mpirun -np 8 ./build/MMC \
-c example/Ba2NiIrO6/POSCAR \
-i example/Ba2NiIrO6/input.toml \
-o Ba2NiIrO6_output.txt \
-s Ba2NiIrO6_spin
Command-line options:
-c: structure file path (POSCAR)-i: parameter file path (TOML)-o: output table file name-s: spin-output filename prefix
Check outputs¶
After a successful run, check:
log.txt: parsed settings and simulation logBa2NiIrO6_output.txt: thermodynamic results vs. temperatureBa2NiIrO6_spin*: spin structure output files (with your chosen prefix)
What to tune next¶
A typical next step is editing example/Ba2NiIrO6/input.toml:
relaxing_steps/counting_stepsfor convergence and statisticstemperature_points_numberfor temperature resolutioncell_numberfor system size effectsexchange parameters in
[[Elements.Neighbors]]for model studies
This gives you a reproducible baseline workflow: keep POSCAR fixed, tune input.toml, and compare output curves from *_output.txt.