¶
Sources¶
A collection of source objects to induce light into a simulation. The spatial profile of the sources can be either a plane, a gaussian or a mode. The temporal profile is set through the correponding attribute. All sources are implemented using the Total-Field/Scattered-Field formulation (also known as soft sources), except for the sources explicitly marked as "hard". These directly set the electric/magnetic field to a fixed value.
fdtdx.objects.sources.GaussianPlaneSource
¶
Bases: LinearlyPolarizedPlaneSource
Source code in src/fdtdx/objects/sources/plane_source.py
A source with a spatial profile of a gaussian.
fdtdx.objects.sources.ConstantAmplitudePlaneSource
¶
Bases: LinearlyPolarizedPlaneSource
Source code in src/fdtdx/objects/sources/plane_source.py
A source with a spatial profile of a plane.
fdtdx.objects.sources.ModePlaneSource
¶
Bases: PlaneSource
Source code in src/fdtdx/objects/sources/plane_source.py
638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 |
|
A source with the spatial profile of a mode. The mode is computed automatically and by default a first order mode is used. In the future, we will develop a better interface to support other modes as well.
fdtdx.objects.sources.HardConstantAmplitudePlanceSource
¶
Bases: DirectionalPlaneSourceBase
Source code in src/fdtdx/objects/sources/plane_source.py
827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 |
|
A hard source with the spatial profile of a plane.
Temporal Profiles¶
fdtdx.objects.sources.SingleFrequencyProfile
¶
Bases: TemporalProfile
Simple sinusoidal temporal profile at a single frequency.
Source code in src/fdtdx/objects/sources/profile.py
A temporal profile which exhibits just a single wave throughout the whole simulation time.
fdtdx.objects.sources.GaussianPulseProfile
¶
Bases: TemporalProfile
Gaussian pulse temporal profile with carrier wave.
Source code in src/fdtdx/objects/sources/profile.py
A temporal pulse of a gaussian envelope.