Python: NF2FF mirroring, how to specify? #267
-
|
Dear all, I have an antenna model with PEC boundary at zmin, so I want to enable mirroring when creating the NF2FF box. My code: This gives an error message: How to specify this properly? From the documentation I understood that I need this array with 6 integers? Any insight is much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Nobody? The python documentation at mirror – (6,) int array – 0 (Off), 1 (PEC) or 2 (PMC) boundary mirroring However, the Matlab code at % 'Mirror': Add mirroring in a given direction (dir), with a given If the Matlab call is correct, how to interpret the position value, is that using the unit set by mesh.SetDeltaUnit() or do I need to specify SI units here? |
Beta Was this translation helpful? Give feedback.
-
|
Hello Volker, the python function CreateNF2FFBox setups mirror automatically by analyzing the boundary condiitons. I'm not sure if that is always desirable but this is the reason for the error . Maybe we have to change/fix that. You could work around that by directly setting up the nf2ff object instead of using the CreateNF2FFBox "helper function". But this too is not ideal. Or you could overwrite the mirror setup after creation (dirty hack): But again if your boundary condition in zmin is already PEC, than this should already be set to 1? |
Beta Was this translation helpful? Give feedback.
The value is only 0 (off), 1 (PEC) or 2 (PMC) and the position is taken automatically from the simulation domain...
Is that what you mean?