Skip to content

Commit

Permalink
Corrected type bug in lossy_propagation function to access the alpha …
Browse files Browse the repository at this point in the history
…and beta values correctly.
  • Loading branch information
LyceanEM committed Oct 4, 2024
1 parent 056f1ee commit d74a56e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lyceanem/utility/math_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def discrete_transmit_power(
weights, element_area, transmit_power=100.0, impedance=np.pi * 120.0
):
"""
Calculate the transmitting aperture amplitude density required for a given transmit power in watts.
Calculate the transmitting aperture voltages required for a given transmit power in watts.
Parameters
----------
weights
Expand All @@ -104,7 +105,7 @@ def discrete_transmit_power(
power_at_point * power_normalisation
) / element_area.reshape(-1, 1)
# calculate amplitude (V/m)
transmit_amplitude = ((transmit_power_density * impedance) ** 0.5)
transmit_amplitude = ((transmit_power_density * impedance) ** 0.5)*element_area.reshape(-1,1)
# transmit_excitation=transmit_amplitude_density.reshape(-1,1)*element_area.reshape(-1,1)
return transmit_amplitude

Expand Down

0 comments on commit d74a56e

Please sign in to comment.