Skip to content

Commit

Permalink
Changed time-domain flux with complex fields to only use real part
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyflex committed Dec 1, 2023
1 parent b07b167 commit 106333e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tidy3d/components/data/monitor_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,8 @@ def poynting(self) -> ScalarFieldTimeDataArray:
# Tangential fields are ordered as E1, E2, H1, H2
tan_fields = self._colocated_tangential_fields
dim1, dim2 = self._tangential_dims
e_x_h = tan_fields["E" + dim1] * tan_fields["H" + dim2]
e_x_h -= tan_fields["E" + dim2] * tan_fields["H" + dim1]
e_x_h = np.real(tan_fields["E" + dim1]) * np.real(tan_fields["H" + dim2])
e_x_h -= np.real(tan_fields["E" + dim2]) * np.real(tan_fields["H" + dim1])
return e_x_h

@cached_property
Expand Down

0 comments on commit 106333e

Please sign in to comment.