Skip to content

All effective waves should have the same structure #5

Open
@arturgower

Description

@arturgower

The effective wave types should have the same structure. For example see EffectivePlaneWaves

struct EffectivePlaneWaveMode{T<:AbstractFloat,Dim} <: AbstractWaveMode{T,Dim}
ω::T
wavenumber::Complex{T}
basis_order::Int
direction::SVector{Dim,Complex{T}} # the effective direction where sum(direction.^2) == 1
eigenvectors::Array{Complex{T}} # the effective ampliudes
end

Each effective wave type should have only enough information for fully describe the value of this wave at some point in space.

The necessary fields are the eigenvectors, basis_order, wavenumber, and ω. Extra fields should be used sparring and only when necessary. This is certainly not the case for:

struct EffectiveRegularWaveMode{T<:AbstractFloat,Dim,P<:PhysicalMedium{T,Dim},S<:AbstractSetupSymmetry{Dim}} <: AbstractRegularWaveMode{T,Dim}
ω::T
wavenumber::Complex{T}
medium::P
material::Material{Dim}
eigenvectors::Array{Complex{T}} # the effective eigenvectors, each column is one eigenvector
basis_order::Int
basis_field_order::Int
function EffectiveRegularWaveMode::T, wavenumber::Complex{T}, source::AbstractSource{T}, material::Material{Dim}, eigenvectors::Array{Complex{T}};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions