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

EM_boundary_conditions set as "PML" in 3Dcartesian is ok? #700

Open
zk-fdu opened this issue Mar 14, 2024 · 5 comments
Open

EM_boundary_conditions set as "PML" in 3Dcartesian is ok? #700

zk-fdu opened this issue Mar 14, 2024 · 5 comments

Comments

@zk-fdu
Copy link

zk-fdu commented Mar 14, 2024

Hi,
I want to set a electromagnetic boundary condition as "PML " in 3Dcartesian so that incident wave along x axis is not reflective when crossing the medium.However, when i self-defined a laser wave via Laser Envelope Model and run the code, th code immediately killed. The resulting message is "Segmentation fault (Address not mapped to object [(nil)])" . I checked this question online, which says this resulted from insufficeint memory. Strangely, I set a electromagnetic boundary as "silver-muller" when the rest remained unchanged, and the code run normally. Therefore, I wanna know if EM_boundary_conditions set as "PML" in 3Dcartesian is ok in Laser Envelope Model? Thanks a lot!

@Guilleaumes
Copy link

Hello,

Can you provide your namelist in order I can check all parameters is correctly given ?

Using Envelope PML is not very user friendly for now and namelist writting could be cumbersome with this functionnality for now. We are trying to change that. On top of that, be aware that PML envelope in X direction is currently instable and lead to some spurious energy growth at the present day. It's due to the fact FDTD scheme assume "forward envelope propagation" and fixe carrier wave with +k0.

PML Envelope have been extensively tested and used for Y and Z PML (transverse PML)

PML Envelope for 2D, 3D and AM are currently improved by the Smilei Team on all of theses aspect, so you're feedback are welcome.

@zk-fdu
Copy link
Author

zk-fdu commented Mar 19, 2024

Hi, @Guilleaumes
Thanks for your answer!
I run the code in the version of smilei5.0. Regarding Laser Envelope Model,two namelist.py will be given as follows: one is based on EM_boundary_conditions"reflective",which is named after "reflective_Envelope" and run fine; the other on EM_boundary_conditions"PML", referred to as "PML_Envelope" and run abnormally. I don't know why. I would appreciate it very much if you could help me!
PML_Envelope.txt.txt
reflective_Envelope.txt.txt

@Guilleaumes
Copy link

After checking your input, you have to define BC condition as :

Main(
...
EM_boundary_conditions = [['silver-muller','silver-muller'],['PML','PML'],['PML','PML']],
number_of_pml_cells = [[0,0],[16,16],[16,16]],
...
)

LaserEnvelope(
...
Envelope_boundary_conditions = [ ["reflective", "reflective"],["PML","PML"],["PML","PML"]],
...
)

x-PML with Envelope is not supported for now

@zk-fdu
Copy link
Author

zk-fdu commented Jun 8, 2024 via email

@mccoys
Copy link
Contributor

mccoys commented Jun 8, 2024

Can this be closed?

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

No branches or pull requests

3 participants