-
Notifications
You must be signed in to change notification settings - Fork 5
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
8 changed files
with
182 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
""" | ||
rcs(sphere::Sphere, excitation::PlaneWave, point_cart; parameter::Parameter=Parameter()) | ||
Compute the bistatic radar cross-section (RCS). | ||
""" | ||
function rcs(sphere::Sphere, excitation::PlaneWave, points_cart; parameter::Parameter=Parameter()) | ||
|
||
FF = scatteredfield(sphere, excitation, FarField(points_cart); parameter=parameter) | ||
|
||
return 4π * norm.(FF) .^ 2 / abs2(excitation.amplitude) | ||
end | ||
|
||
|
||
|
||
""" | ||
rcs(sphere::Sphere, excitation::PlaneWave; parameter::Parameter=Parameter()) | ||
Compute the monostatic radar cross-section (RCS): the bistatic RCS solely for the incident direction of the plane wave. | ||
""" | ||
function rcs(sphere::Sphere, excitation::PlaneWave; parameter::Parameter=Parameter()) | ||
|
||
point_cart = -excitation.direction | ||
|
||
return rcs(sphere, excitation, [point_cart]; parameter=parameter)[1] | ||
end | ||
|
||
|
||
|
||
""" | ||
rcs(sphere::Sphere, excitation::Excitation, point_cart; parameter::Parameter=Parameter()) | ||
RCS only defined for plane waves, so far. | ||
""" | ||
function rcs(sphere::Sphere, excitation::Excitation, point_cart; parameter::Parameter=Parameter()) | ||
|
||
return error("The (bistatic) RCS is only defined for a plane-wave excitation (so far).") | ||
end | ||
|
||
|
||
|
||
""" | ||
rcs(sphere::Sphere, excitation::Excitation; parameter::Parameter=Parameter()) | ||
RCS only defined for plane waves, so far. | ||
""" | ||
function rcs(sphere::Sphere, excitation::Excitation; parameter::Parameter=Parameter()) | ||
|
||
return error("The (monostatic) RCS is only defined for a plane-wave excitation (so far).") | ||
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
2c43216
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
Release notes:
New Features:
2c43216
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/100364
Tagging
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: