Self-consistent many-body solver

Advanced Mean Field Solver Calculator

Solve, sweep, compare, and diagnose interacting mean-field models using one large PHP application.

Calculation result

No result yet.
Waiting

Charts and diagnostics

Iteration history

Iter.InputMapOutputResidualUpdateFree energyMixingMethodTime

Sweep results

PassParameterValueSolutionResidualEnergyPhaseStableIterations

Alternative solutions

1. Mean-field model

Core equations
Scalar Ising magnetization with mean-field coupling.
Energy-like inputs must share one unit system.
All controls remain included in project exports.

2. Physical parameters

Exchange or effective coupling.

3. Order parameters and initial state

Separate vector values using commas.
Multiple solutions: nonlinear equations may contain stable, metastable, unstable, and symmetry-related fixed points. Multi-start mode compares distinct converged states.

4. Numerical solver

5. Convergence and stopping

6. Jacobian, derivatives, and stability

7. Lattice and geometry

Stored in exports. Homogeneous built-in equations use z directly.

8. Thermal occupations and integration

9. Parameter sweeps and continuation

10. Custom equation builder

Separate vector equations with semicolons or line breaks. Use x0, x1, beta, and parameter names.
Allowed functions include tanh, exp, log, sqrt, abs, min, max, pow, fermi, bose, and langevin. Arbitrary PHP code is never executed.

11. Performance and execution

This portable build runs sequentially.

12. Presets and examples

13. Import and export

Ready. Select a model and solve.

Formula used

The application solves a fixed-point equation x = F(x; p). It reports the residual R(x) = F(x; p) − x. Convergence requires small residual and update norms.

Linear mixing uses xn+1 = xn + αR(xn). Newton methods solve a numerical linearization. Stability comes from the map Jacobian and available free-energy curvature.

Curie–Weiss: m = tanh[(J z m + h)/(kB T)]
Antiferromagnet: mA = tanh[(h − J z mB)/(kB T)]
BCS: Δ = 2 g N(0) ∫ Δ tanh(E/2kBT)/(2E) dε
Hubbard closure: nσ = f(μ ± h − U n−σ)

How to use this calculator

  1. Select a built-in physical model or custom equations.
  2. Enter all physical parameters using consistent units.
  3. Choose one initial state or enable multiple starts.
  4. Use adaptive mixing for a robust first calculation.
  5. Set tolerances, iteration limits, and derivative controls.
  6. Enable continuation sweeps for phase boundaries and hysteresis.
  7. Inspect convergence history, free energy, and stability warnings.
  8. Export the complete configuration and numerical results.
Important: numerical convergence does not guarantee the globally stable physical phase. Compare free energies, Hessian estimates, multiple starts, and forward versus reverse sweeps.

Implementation notes and limitations

Numerical guidance

Reduce mixing when iterates oscillate. Increase integration points for BCS convergence tests. Increase the boson cutoff until Bose–Hubbard values stop changing.

Newton and Broyden methods are sensitive to starting values. Continuation usually provides better guesses near phase boundaries.

Physical scope

Mean-field theory neglects many fluctuations and correlations. The Hubbard option is an atomic homogeneous closure. The Bose option is a finite single-site Gutzwiller calculation.

Controls marked “documented” are retained for project planning but are not separate numerical kernels in this portable file.

Glossary

Order parameter
A quantity distinguishing phases, such as magnetization or a superconducting gap.
Residual
The difference between the calculated mean field and the current mean field.
Mixing
Damping that combines old and newly calculated values.
Continuation
Using a nearby solved point as the next initial state.
Metastability
A locally stable solution that is not necessarily the global free-energy minimum.
Spectral radius
The largest Jacobian eigenvalue magnitude. Values below one support local fixed-point stability.
Hessian
The matrix of second free-energy derivatives. Positive eigenvalues suggest a local minimum.
Solving self-consistent equations
Sweeps and local diagonalizations can require additional computation.

Related Calculators

Average Calculator StatisticsGeometric Mean CalculatorInter Quartile Range CalculatorLower Quartile CalculatorMaximum CalculatorMean Calculator StatisticsMedian Calculator StatisticsMidhinge Calculator StatisticsMid Range Calculator StatisticsMode Calculator Statistics

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.