-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
197 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "SphericalScattering" | ||
uuid = "1a9ea918-b599-4f1f-bd9a-d681e8bb5b3e" | ||
authors = ["Bernd Hofmann <[email protected]> and contributors"] | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
|
||
[deps] | ||
LegendrePolynomials = "3db4a2ba-fc88-11e8-3e01-49c72059a882" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
""" | ||
field(sphere::Sphere, excitation::Excitation, quantity::Field; parameter::Parameter=Parameter()) | ||
Compute the total field in the presence of a sphere for a given excitaion. | ||
""" | ||
function field(sphere::Sphere, excitation::Excitation, quantity::Field; parameter::Parameter=Parameter()) | ||
|
||
# incident and scattered field | ||
Finc = field(excitation, quantity; parameter=parameter) | ||
Fsca = scatteredfield(sphere, excitation, quantity; parameter=parameter) | ||
|
||
return Finc .+ Fsca | ||
end | ||
|
||
|
||
|
||
""" | ||
field(sphere::Sphere, excitation::PlaneWave, quantity::Field; parameter::Parameter=Parameter()) | ||
Descriptive error for the total far-field in the presence of a sphere for an incident plane wave. | ||
""" | ||
function field(sphere::Sphere, excitation::PlaneWave, quantity::FarField; parameter::Parameter=Parameter()) | ||
|
||
return error("The total far-field for a plane-wave excitation is not defined") | ||
end | ||
|
||
|
||
""" | ||
field(sphere::Sphere, excitation::SphericalMode, quantity::Field; parameter::Parameter=Parameter()) | ||
Descriptive error for the total far-field in the presence of a sphere for an incident spherical mode. | ||
""" | ||
function field(sphere::Sphere, excitation::SphericalMode, quantity::FarField; parameter::Parameter=Parameter()) | ||
|
||
return error("The total far-field for a spherical mode excitation is not defined") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
49fd087
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
49fd087
There was a problem hiding this comment.
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/76572
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: