Skip to content

Commit

Permalink
Minor cleanup in symmetric magnetic field.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Sep 24, 2020
1 parent 4c6ae28 commit 1ebb802
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/analytic/symmetric_quadratic.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@doc raw"""
Symmetric quadratic equilibrium in (x,y,z) coordinates with covariant components of
Symmetric quadratic mangetic field in (x,y,z) coordinates with covariant components of
the vector potential given by
```math
A (x,y,z) = \frac{B_0}{4} \big( - y \, (2 + x^2 + y^2) , \, x \, (2 + x^2 + y^2) , \, 0 \big)^T
Expand Down Expand Up @@ -29,14 +29,14 @@ module SymmetricQuadratic
struct SymmetricQuadraticEquilibrium{T <: Number} <: CartesianEquilibrium
name::String
B₀::T
SymmetricQuadraticEquilibrium{T}(B₀::T) where T <: Number = new("SymmetricQuadraticEquilibrium", B₀)
SymmetricQuadraticEquilibrium{T}(B₀::T) where T <: Number = new("Symmetric Quadratic Magnetic Field", B₀)
end

SymmetricQuadraticEquilibrium(B₀::T=DEFAULT_B₀) where T <: Number = SymmetricQuadraticEquilibrium{T}(B₀)


function Base.show(io::IO, equ::SymmetricQuadraticEquilibrium)
print(io, "Symmetric Quadratic Equilibrium")
print(io, equ.name)
end


Expand Down

0 comments on commit 1ebb802

Please sign in to comment.