-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additiona methods for res2tep and add tests
- Loading branch information
1 parent
f61afbe
commit 9d24a4d
Showing
6 changed files
with
105 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using PSSFSS | ||
using Test | ||
@testset "TEP Creation" begin | ||
using PSSFSS | ||
using TicraUtilities: TicraUtilities as TU | ||
FGHz = 3.0 | ||
Px = Py = 5.0 | ||
Lx = 4.0 | ||
Ly = 0.2 | ||
Nx = 130 | ||
Ny = 6 | ||
sheet = rectstrip(; Px, Py, Lx, Ly, Nx, Ny, units=cm, sigma=5.7e8) | ||
steering = (θ = 0:30:60, ϕ = 0:60:300) | ||
strata = [Layer(), sheet, Layer()] | ||
resultfile = tempname() | ||
logfile = devnull | ||
showprogress = false | ||
results = analyze(strata, FGHz, steering; resultfile, logfile, showprogress) | ||
teppssfss_file = tempname() | ||
res2tep(resultfile, teppssfss_file) | ||
tep_pssfss = TU.read_tepfile(teppssfss_file) | ||
tep_ticra = TU.read_tepfile(joinpath(pkgdir(PSSFSS), "test", "ticra_tools_dipole.tep")) | ||
@test maximum(abs, TU.get_sff(tep_pssfss) - TU.get_sff(tep_ticra)) < 0.001 | ||
@test maximum(abs, TU.get_sfr(tep_pssfss) - TU.get_sfr(tep_ticra)) < 0.001 | ||
@test maximum(abs, TU.get_srf(tep_pssfss) - TU.get_srf(tep_ticra)) < 0.001 | ||
@test maximum(abs, TU.get_srr(tep_pssfss) - TU.get_srr(tep_ticra)) < 0.001 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[Title] Electrical Properties of Periodic Unit Cell | ||
[Version] 1.0.0 | ||
[Name] strip_01 | ||
[Class] periodic_unit_cell_rectangular_patch | ||
[Frequencies] 1 | ||
[ParameterSweeps] 0 | ||
[IncidenceAngles] 0.000 60.000 3 0.000 300.000 6 [deg] | ||
|
||
[Frequency] 1 3.00000000 [GHz] | ||
[SFront] -0.00000275 -0.00169425 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.21023730 -0.40673981 0.99999725 -0.00169425 -0.00000000 -0.00000000 -0.00000000 -0.00000000 0.78976270 -0.40673981 | ||
[SRear] -0.00000275 -0.00169425 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.21023730 -0.40673981 0.99999725 -0.00169425 -0.00000000 -0.00000000 -0.00000000 -0.00000000 0.78976270 -0.40673981 | ||
[SFront] -0.00000344 -0.00149632 0.00000000 0.00000000 0.00000000 0.00000000 -0.14181702 -0.34816039 0.99999656 -0.00149632 0.00000000 0.00000000 0.00000000 0.00000000 0.85818298 -0.34816039 | ||
[SRear] -0.00000344 -0.00149632 0.00000000 0.00000000 0.00000000 0.00000000 -0.14181702 -0.34816039 0.99999656 -0.00149632 0.00000000 0.00000000 0.00000000 0.00000000 0.85818298 -0.34816039 | ||
[SFront] -0.00000768 -0.00100278 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.04417554 -0.20478660 0.99999232 -0.00100278 -0.00000000 -0.00000000 -0.00000000 -0.00000000 0.95582446 -0.20478660 | ||
[SRear] -0.00000768 -0.00100278 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.04417554 -0.20478660 0.99999232 -0.00100278 -0.00000000 -0.00000000 -0.00000000 -0.00000000 0.95582446 -0.20478660 | ||
[SFront] -0.15767866 -0.30547842 -0.09103423 -0.17538987 -0.09103423 -0.17538987 -0.05256139 -0.10295564 0.84232134 -0.30547842 -0.09103423 -0.17538987 -0.09103423 -0.17538987 0.94743861 -0.10295564 | ||
[SRear] -0.15767866 -0.30547842 -0.09103423 -0.17538987 -0.09103423 -0.17538987 -0.05256139 -0.10295564 0.84232134 -0.30547842 -0.09103423 -0.17538987 -0.09103423 -0.17538987 0.94743861 -0.10295564 | ||
[SFront] -0.20158462 -0.34698498 -0.10079145 -0.17275676 -0.10078987 -0.17276275 -0.05039740 -0.08785502 0.79841538 -0.34698498 -0.10079145 -0.17275676 -0.10078987 -0.17276275 0.94960260 -0.08785502 | ||
[SRear] -0.20158462 -0.34698498 -0.10079145 -0.17275676 -0.10078987 -0.17276275 -0.05039740 -0.08785502 0.79841538 -0.34698498 -0.10079145 -0.17275676 -0.10078987 -0.17276275 0.94960260 -0.08785502 | ||
[SFront] -0.44212317 -0.46035189 -0.12762823 -0.13264339 -0.12762766 -0.13267301 -0.03684366 -0.03915826 0.55787683 -0.46035189 -0.12762823 -0.13264339 -0.12762766 -0.13267301 0.96315634 -0.03915826 | ||
[SRear] -0.44212317 -0.46035189 -0.12762823 -0.13264339 -0.12762766 -0.13267301 -0.03684366 -0.03915826 0.55787683 -0.46035189 -0.12762823 -0.13264339 -0.12762766 -0.13267301 0.96315634 -0.03915826 | ||
[SFront] -0.15767866 -0.30547842 0.09103423 0.17538987 0.09103423 0.17538987 -0.05256139 -0.10295564 0.84232134 -0.30547842 0.09103423 0.17538987 0.09103423 0.17538987 0.94743861 -0.10295564 | ||
[SRear] -0.15767866 -0.30547842 0.09103423 0.17538987 0.09103423 0.17538987 -0.05256139 -0.10295564 0.84232134 -0.30547842 0.09103423 0.17538987 0.09103423 0.17538987 0.94743861 -0.10295564 | ||
[SFront] -0.20158462 -0.34698498 0.10079145 0.17275676 0.10078987 0.17276275 -0.05039740 -0.08785502 0.79841538 -0.34698498 0.10079145 0.17275676 0.10078987 0.17276275 0.94960260 -0.08785502 | ||
[SRear] -0.20158462 -0.34698498 0.10079145 0.17275676 0.10078987 0.17276275 -0.05039740 -0.08785502 0.79841538 -0.34698498 0.10079145 0.17275676 0.10078987 0.17276275 0.94960260 -0.08785502 | ||
[SFront] -0.44212317 -0.46035189 0.12762823 0.13264339 0.12762766 0.13267301 -0.03684366 -0.03915826 0.55787683 -0.46035189 0.12762823 0.13264339 0.12762766 0.13267301 0.96315634 -0.03915826 | ||
[SRear] -0.44212317 -0.46035189 0.12762823 0.13264339 0.12762766 0.13267301 -0.03684366 -0.03915826 0.55787683 -0.46035189 0.12762823 0.13264339 0.12762766 0.13267301 0.96315634 -0.03915826 | ||
[SFront] -0.00000275 -0.00169425 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.21023730 -0.40673981 0.99999725 -0.00169425 -0.00000000 -0.00000000 -0.00000000 -0.00000000 0.78976270 -0.40673981 | ||
[SRear] -0.00000275 -0.00169425 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.21023730 -0.40673981 0.99999725 -0.00169425 -0.00000000 -0.00000000 -0.00000000 -0.00000000 0.78976270 -0.40673981 | ||
[SFront] -0.00000344 -0.00149632 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.14181702 -0.34816039 0.99999656 -0.00149632 -0.00000000 -0.00000000 -0.00000000 -0.00000000 0.85818298 -0.34816039 | ||
[SRear] -0.00000344 -0.00149632 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.14181702 -0.34816039 0.99999656 -0.00149632 -0.00000000 -0.00000000 -0.00000000 -0.00000000 0.85818298 -0.34816039 | ||
[SFront] -0.00000768 -0.00100278 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.04417554 -0.20478660 0.99999232 -0.00100278 -0.00000000 -0.00000000 -0.00000000 -0.00000000 0.95582446 -0.20478660 | ||
[SRear] -0.00000768 -0.00100278 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.04417554 -0.20478660 0.99999232 -0.00100278 -0.00000000 -0.00000000 -0.00000000 -0.00000000 0.95582446 -0.20478660 | ||
[SFront] -0.15767866 -0.30547842 -0.09103423 -0.17538987 -0.09103423 -0.17538987 -0.05256139 -0.10295564 0.84232134 -0.30547842 -0.09103423 -0.17538987 -0.09103423 -0.17538987 0.94743861 -0.10295564 | ||
[SRear] -0.15767866 -0.30547842 -0.09103423 -0.17538987 -0.09103423 -0.17538987 -0.05256139 -0.10295564 0.84232134 -0.30547842 -0.09103423 -0.17538987 -0.09103423 -0.17538987 0.94743861 -0.10295564 | ||
[SFront] -0.20158462 -0.34698498 -0.10079145 -0.17275676 -0.10078987 -0.17276275 -0.05039740 -0.08785502 0.79841538 -0.34698498 -0.10079145 -0.17275676 -0.10078987 -0.17276275 0.94960260 -0.08785502 | ||
[SRear] -0.20158462 -0.34698498 -0.10079145 -0.17275676 -0.10078987 -0.17276275 -0.05039740 -0.08785502 0.79841538 -0.34698498 -0.10079145 -0.17275676 -0.10078987 -0.17276275 0.94960260 -0.08785502 | ||
[SFront] -0.44212317 -0.46035189 -0.12762823 -0.13264339 -0.12762766 -0.13267301 -0.03684366 -0.03915826 0.55787683 -0.46035189 -0.12762823 -0.13264339 -0.12762766 -0.13267301 0.96315634 -0.03915826 | ||
[SRear] -0.44212317 -0.46035189 -0.12762823 -0.13264339 -0.12762766 -0.13267301 -0.03684366 -0.03915826 0.55787683 -0.46035189 -0.12762823 -0.13264339 -0.12762766 -0.13267301 0.96315634 -0.03915826 | ||
[SFront] -0.15767866 -0.30547842 0.09103423 0.17538987 0.09103423 0.17538987 -0.05256139 -0.10295564 0.84232134 -0.30547842 0.09103423 0.17538987 0.09103423 0.17538987 0.94743861 -0.10295564 | ||
[SRear] -0.15767866 -0.30547842 0.09103423 0.17538987 0.09103423 0.17538987 -0.05256139 -0.10295564 0.84232134 -0.30547842 0.09103423 0.17538987 0.09103423 0.17538987 0.94743861 -0.10295564 | ||
[SFront] -0.20158462 -0.34698498 0.10079145 0.17275676 0.10078987 0.17276275 -0.05039740 -0.08785502 0.79841538 -0.34698498 0.10079145 0.17275676 0.10078987 0.17276275 0.94960260 -0.08785502 | ||
[SRear] -0.20158462 -0.34698498 0.10079145 0.17275676 0.10078987 0.17276275 -0.05039740 -0.08785502 0.79841538 -0.34698498 0.10079145 0.17275676 0.10078987 0.17276275 0.94960260 -0.08785502 | ||
[SFront] -0.44212317 -0.46035189 0.12762823 0.13264339 0.12762766 0.13267301 -0.03684366 -0.03915826 0.55787683 -0.46035189 0.12762823 0.13264339 0.12762766 0.13267301 0.96315634 -0.03915826 | ||
[SRear] -0.44212317 -0.46035189 0.12762823 0.13264339 0.12762766 0.13267301 -0.03684366 -0.03915826 0.55787683 -0.46035189 0.12762823 0.13264339 0.12762766 0.13267301 0.96315634 -0.03915826 |