Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All effective waves should have the same structure #5

Open
arturgower opened this issue Mar 11, 2021 · 0 comments
Open

All effective waves should have the same structure #5

arturgower opened this issue Mar 11, 2021 · 0 comments

Comments

@arturgower
Copy link
Member

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}};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant