And I also wonder can I use PML into a time dependent question like this Efficient usage of the Unified Form Language — FEniCS Workshop?
I am sorry, but for now it is ready-to-use only for harmonic time dependency, not for general transient analysis.
Oh! So for my model, E and H are produced from the electrons’ movement described by time-dependent PDEs, and you mean that I may can’t use it as a PML layer to simulate EM field travel in the space freely? Well, I remember that when I use FDTD, there is a PML that could be used generally even the EM field is scattered by the metal. Do you know something about it?
And I also want to know do you mean that time-dependent form is not available or the changing frequency is not available. I think the if code could be used in single frequency helmholtz_with_PML.py (eventhough it calculate different frequency), I could estimate the frequency of EM field in my model and PML layer now could also absorb the EM
field now? Then I could update the equation with time. It seems reasonable.
Can I ask if you looked at the script? As you can see, you can change the frequency and you can define a full frequency range to simulate on. But the PML is defined with complex cooridinate stretch, assuming harmonic time dependency.
For general transient analysis it needs to be adapted.
Yeah, l looked at it. I’m sorry that I may not understand it properly. I just want to find some proper boundary conditions for EM field. PML is what I used before.