Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PhysicalModels/MagneticModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct Magnetic{A} <: Magneto
# Energy #
Ψmm(ℋ₀,N) = (-μ / 2.0 ) * ((ℋ₀+ℋᵣ(N))⋅(ℋ₀+ℋᵣ(N))) * (1 + χe)
∂Ψmm_∂φ(ℋ₀,N) = (-μ ) * (ℋ₀+ℋᵣ(N)) * (1 + χe)
∂Ψmm_∂φφ(ℋ₀,N) = (-μ ) * I2 * (1 + χe)
∂Ψmm_∂φφ(ℋ₀,N) = (-μ ) * I3 * (1 + χe)
return (Ψmm, ∂Ψmm_∂φ, ∂Ψmm_∂φφ)
end

Expand Down
2 changes: 1 addition & 1 deletion test/TestConstitutiveModels/PhysicalModelTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ end

@test Ψ(H0(∇φ),N) == -8.64641328e-6
@test norm(∂Ψφ(H0(∇φ),N)) == 4.6615625980239715e-6
@test norm(∂Ψφφ(H0(∇φ),N)) == 1.7771007624780312e-6
@test norm(∂Ψφφ(H0(∇φ),N)) == 2.1764950447910513e-6
end


Expand Down