How can I get a two custom pluses as a source in FDTD simulation?
I used the code provided here https://support.lumerical.com/hc/en-us/articles/360034383114-Creating-a-custom-source-time-signal-for-an-FDTD-source to get two gaussian pulses as below.
Next, I need to modify this to get a signal line below. It is a smoothed edges return to zero signal. Can you please help me with that? I searched for a RZ function or something, but I could not find any. What should I change in the coding ?
Appreciate your time :)
Best Answer
-
kjohnson Ansys Employee Posts: 44
Hello @YounusMandalawi ,
To use this signal you will have to somehow change lines 17 and 18 to create a vector that corresponds to your time signal. I don't think there are any built-in functions to create the type of signal you're interested in, unless you can use mathematical functions like the double Gaussian pulse example. Alternatively, if you have the data for the signal in a text file you could import the data with the readdata command:
Answers
Hello @YounusMandalawi ,
To use this signal you will have to somehow change lines 17 and 18 to create a vector that corresponds to your time signal. I don't think there are any built-in functions to create the type of signal you're interested in, unless you can use mathematical functions like the double Gaussian pulse example. Alternatively, if you have the data for the signal in a text file you could import the data with the readdata command:
Thank you. I changed the numbers in that equation to get different pulse duration and gaussian order.
I have one more question please. Is is normal that at the time monitor, I only can see the signal at the Z dimension only??? It is 0 for X and Y.
This will depend on the polarization of the source, not the time signal. If you have a plane wave polarized in the z direction the x and y components of the electric field will be zero.