diff --git a/doc/template.html b/doc/template.html index af72777e6..f1f7a2b81 100644 --- a/doc/template.html +++ b/doc/template.html @@ -82,6 +82,7 @@

mumax 3.9c examples


Hysteresis

+Below is an example of a hysteresis loop where we step the applied field in small increments and find the magnetization ground state after each step. Minimize() finds the ground state using the conjugate gradient method, which is very fast. However, this method might fail on very high energy initial states like a random magnetization. In that case, Relax() is more robust (albeit much slower). {{.Example ` SetGridsize(128, 32, 1) @@ -90,8 +91,8 @@

mumax 3.9c examples

Msat = 800e3 Aex = 13e-12 -m = vortex(1, 1) -minimize() // high-energy states best minimized by relax() +m = randomMag() +relax() // high-energy states best minimized by relax() Bmax := 100.0e-3