Skip to content

Commit

Permalink
Merge pull request #4 from AshtonSBradley/add-current-W>0-in-2D
Browse files Browse the repository at this point in the history
+ rotating frame current
  • Loading branch information
AshtonSBradley authored Apr 3, 2023
2 parents c0e243f + 5bbe329 commit 20a1d9a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6'
- 'nightly'
# - '1.6'
- '1.8'
# - 'nightly'
os:
- ubuntu-latest
arch:
- x64
# - x64
- x86
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "QuantumFluidSpectra"
uuid = "8ddfec37-9569-48bd-b1f3-d8731767ee3a"
authors = ["Ashton Bradley <[email protected]> and contributors"]
version = "0.1.4"
version = "0.1.5"

[deps]
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
Expand Down
9 changes: 5 additions & 4 deletions src/analysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ function current(psi::Psi{1})
return jx
end

function current(psi::Psi{2})
@unpack ψ = psi
function current(psi::Psi{2}= 0)
@unpack ψ,X = psi
x,y = X
ψx,ψy = gradient(psi)
jx = @. imag(conj(ψ)*ψx) # TODO add rot frame -n(Wxr) term, and in 3D
jy = @. imag(conj(ψ)*ψy)
jx = @. imag(conj(ψ)*ψx) + Ω*y'
jy = @. imag(conj(ψ)*ψy) - Ω*x
return jx,jy
end

Expand Down

2 comments on commit 20a1d9a

@AshtonSBradley
Copy link
Owner Author

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

@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/80874

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.1.5 -m "<description of version>" 20a1d9a122b2dac87498adf4a302958603bc7965
git push origin v0.1.5

Please sign in to comment.