Skip to content

Commit

Permalink
hysteresis example final tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
barnex committed Jun 19, 2015
1 parent b3bf913 commit 4e8e828
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h1>mumax 3.9c examples</h1>

<hr/><h2>Hysteresis</h2>

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)
Expand All @@ -90,8 +91,8 @@ <h1>mumax 3.9c examples</h1>
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
Expand Down

0 comments on commit 4e8e828

Please sign in to comment.