Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/atmospheric_attenuation' into at…
Browse files Browse the repository at this point in the history
…mospheric_attenuation
  • Loading branch information
LyceanEM committed Jul 15, 2024
2 parents 557c0d5 + a3f7ac9 commit a1ad18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lyceanem/electromagnetics/empropagation.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,12 +775,12 @@ def lossy_propagation(point1,point2,alpha,beta):
normal[0] = point1["nx"]
normal[1] = point1["ny"]
normal[2] = point1["nz"]
angle=cmath.acos(clip(dot_vec(outgoing_dir,normal),-1.0,1.0))
projection_dot=dot_vec(outgoing_dir,normal)
front=-(1/(2*cmath.pi))
G=(cmath.exp(-(alpha+1j*beta)*length))/length
#dG=cmath.cos(angle)*(-(alpha+1j*beta)-(1/lengths))*G
dG=(-(alpha+1j*beta)-(1/length))*G
loss=front*dG*cmath.cos(angle)
loss=front*dG*projection_dot
#loss = G

#test replacement with old loss funciton
Expand Down

0 comments on commit a1ad18f

Please sign in to comment.