home

Spontaneous Magnetization

Spontaneous magnetization mm in an Ising ferromagnet appears below the critical temperature TcT_c. The derivative of mm diverges in the limit TTcT \to T_c^-.


Spontaneous Magnetization

Download

PNG PNG (HD) PDF SVG

Code

spontaneous-magnetization.typ (52 lines)

#import "@preview/cetz:0.5.2": canvas, draw
#import "@preview/cetz-plot:0.1.4": plot

#set page(width: auto, height: auto, margin: 8pt, fill: none)

#let arcsinh(x) = calc.ln(x + calc.sqrt(calc.pow(x, 2) + 1))

// Magnetization function
#let magnetization(x) = {
  if x >= 0 and x < 1 {
    calc.pow(1 - calc.pow(calc.sinh(arcsinh(1) / x), -4), 1 / 8)
  } else {
    0
  }
}

#canvas({
  let axis-mark = (end: "stealth", fill: black)
  draw.set-style(axes: (
    x: (mark: axis-mark, label: (anchor: "south-east", offset: -0.2)),
    y: (mark: axis-mark, label: (anchor: "north-west", offset: -0.2)),
  ))

  plot.plot(
    size: (8, 5),
    x-label: $T \/ T_c$,
    y-label: $m(0,T)$,
    y-max: 1.5,
    x-tick-step: 0.5,
    y-tick-step: 0.5,
    axis-style: "left",
    x-grid: true,
    y-grid: true,
    {
      // Main magnetization curve
      plot.add(
        style: (stroke: blue + 1.5pt),
        domain: (0.01, 2), // Avoid x=0 due to division
        samples: 300,
        magnetization,
      )

      // Dashed line y=x from 0 to 1
      plot.add(
        style: (stroke: (dash: "dashed", thickness: 1pt)),
        domain: (0, 1),
        x => x,
      )
    },
  )
})