Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporal profile #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Temporal profile #17

wants to merge 2 commits into from

Conversation

txdai
Copy link
Contributor

@txdai txdai commented Feb 20, 2025

This pull request focuses on the temporal profiles of sources. The changes include the introduction of new classes for temporal profiles and modifications to existing methods to utilize these profiles.

Key changes include:

Introduction of Temporal Profiles:

  • Added a new abstract base class TemporalProfile and its implementations SingleFrequencyProfile and GaussianPulseProfile to define how source amplitude varies in time. (src/fdtdx/objects/sources/source.py)

Modifications to Source Class:

  • Updated the Source class to include a temporal_profile attribute, which defines the time-dependent amplitude variation of the source. (src/fdtdx/objects/sources/source.py) [1] [2]

Refactoring of Update Methods:

  • Refactored the update_E method to use the temporal_profile for calculating the temporal amplitude of the H field. (src/fdtdx/objects/sources/plane_source.py)
  • Refactored the update_H method to use the temporal_profile for calculating the temporal amplitude of the E field. (src/fdtdx/objects/sources/plane_source.py)

Added gaussian pulse in addition to the single-frequency scheme. This would allow for broadband simulation, and together with phasor, allow for recording of multiple frequencies in the results
Cleanup Fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant