Skip to content

Commit

Permalink
Corrected label to new format in line with vtk mesh requirements, and…
Browse files Browse the repository at this point in the history
… added area normalisation component to time domain scattering.
  • Loading branch information
LyceanEM committed Dec 17, 2024
1 parent 240236b commit eb7089c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lyceanem/electromagnetics/beamforming.py
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ def GPUBeamformingMap(Etheta, Ephi, DirectivityMap, az_range, el_range, waveleng
def create_display_mesh(
field_data,
field_radius=1.0,
label="Poynting Vector (Magnitude)",
label='Poynting_Vector_(Magnitude_(W/m2))',
log_type="amplitude",
plot_max=None,
):
Expand Down
2 changes: 2 additions & 0 deletions lyceanem/models/time_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def calculate_scattering(
else:
conformal_E_vectors = desired_E_axis.reshape(num_sources, 3)

# convert from field strengths to diffraction integral components
conformal_E_vectors = conformal_E_vectors * aperture_coords.point_data['Area'].reshape(-1, 1)
if scattering == 0:
# only use the aperture point cloud, no scattering required.
scatter_points = meshio.Mesh(
Expand Down

0 comments on commit eb7089c

Please sign in to comment.