Skip to content

Commit

Permalink
Update to wording in tutorial 07
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros committed Aug 30, 2024
1 parent dac6abd commit 4c3b25b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/07_Dipole_Dipole.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,29 @@
#
# This example shows how long-range dipole-dipole interactions can affect a spin
# wave calculation. These interactions can be included two ways: Ewald summation
# or real-space space with a distance cutoff. The study follows [Del Maestro and
# or in real-space with a distance cutoff. The study follows [Del Maestro and
# Gingras, J. Phys.: Cond. Matter, **16**, 3339
# (2004)](https://arxiv.org/abs/cond-mat/0403494).

using Sunny, GLMakie

# Create a Pyrochlore crystal from spacegroup 227.
# Create a pyrochlore crystal from spacegroup 227.

units = Units(:K, :angstrom)
latvecs = lattice_vectors(10.19, 10.19, 10.19, 90, 90, 90)
positions = [[1/8, 1/8, 1/8]]
cryst = Crystal(latvecs, positions, 227, setting="1")
view_crystal(cryst)

# Create a system with antiferromagnetic nearest neighbor exchange.

sys = System(cryst, [1 => Moment(s=7/2, g=2)], :dipole)
J1 = 0.304 # (K)
set_exchange!(sys, J1, Bond(1, 2, [0,0,0]))

# Reshape to the primitive cell with four atoms. To facilitate indexing, the
# function [`position_to_site`](@ref) accepts positions with respect to the
# original (cubic) cell.
# Reshape to the primitive cell, which contains four atoms. To facilitate
# indexing, the function [`position_to_site`](@ref) accepts positions with
# respect to the original (cubic) cell.

shape = [1/2 1/2 0; 0 1/2 1/2; 1/2 0 1/2]
sys_prim = reshape_supercell(sys, shape)
Expand Down Expand Up @@ -59,7 +60,7 @@ res3 = intensities_bands(swt, path)

# Create a panel that qualitatively reproduces Fig. 2 of [Del Maestro and
# Gingras](https://arxiv.org/abs/cond-mat/0403494). That previous work had two
# errors: The energy scales are too small by a factor of 2 and, in addition,
# errors: Its energy scale is too small by a factor of 2 and, in addition,
# slight corrections are needed for the third dispersion band.

fig = Figure(size=(768, 300))
Expand Down

2 comments on commit 4c3b25b

@kbarros
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/114224

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.0 -m "<description of version>" 4c3b25bd45f5d7fbdca55ea7dea4cc4e0f462079
git push origin v0.7.0

Please sign in to comment.