Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuamsalazar authored Dec 20, 2023
1 parent c69a559 commit 31e716e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions h_ext-sweeps/xplot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## xplot.sh

Generates and shows the desired plot (SOT fields, Hext, or magnetization). If you want to see the magnetization state of, the simulation at $H_\text{ext}=3$ mT:
```bash
./xplot gmrx.py 3
```

The script calls a `gnuplot` script containing the parameters for the plot. You can call whatever plot needed, three scripts are included as default:

| Script File | Plot |
|--------------|-------------|
| g mrx .gp | Relaxation of magnetization (\$\vec{m}\$ vs $t$) |
| g bsweep .gp | B field sweep (\$m_z\$ vs $H_\text{ext}$) |
| g sot .gp | Torques dynamics (SOT vs $t$) |
| g hext .gp | Fields dynamics ($H_\text{ext}$ vs $t$) |

z.B.

![Generated plot for Hext = 3 mT](../../assets/xplot_001.png)

Calling the function once will generate the plot in `./plt_mx_H-003.png`, show it and update it every 5 seconds.

0 comments on commit 31e716e

Please sign in to comment.