Meshing Quandary: 1/3 2/3 Rule and SmoothMeshLines() Function Clash #102
-
|
Hello everyone, I've been working on finding a solution for a 3-segment SL/MSL (Stepped Impedance Matching Transformer) as described in my earlier post. While parsing SL/MSL Tutorials and experimenting with various setups, I came across the 1/3 2/3 ratio meshing rule and confusing behavior when using the SmoothMeshLines() function. Here's an example of what I encountered: As you can see, the vector for the 1/3 2/3 rule mesh is correctly defined as [0 56 656]. However, when I used the SmoothMeshLines() function, it changed the mesh points in the same line, resulting in a "freestyle" mesh: The SmoothMeshLines() function seems to have altered ratio of the mesh lines positions, which is not what I expected. Consequently, the distance between (256 and 140) is not half of the distance between (266 and 256). Could someone kindly help me understand if I missed something or if there's a better way to achieve desired meshing? Thank you for your assistance and insights! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
You seem to confuse the local mesh resolution (used in thirds rule) and the maximum mesh size. Parameter "resolution" has a misleading name, that is really the maximum possible mesh size in areas where we don't need to resolve geometry details. This is calculated as a fraction of the effective wavelength in your dielectrics, e.g. lambda/20. For transmission lines, we want to have ~ 5 cells across the line width, this determines the local mesh size for line width. The cells at the outer boundary are offset using the thirds rule, using this local mesh size. |
Beta Was this translation helpful? Give feedback.
Maybe you misunderstood me - the numbers in your example make no sense because you create the third rules from the wrong "resolution" value. It must be one third of the local mesh density used to mesh the line width.
In your example, your 1/3 offset is larger than the line width because you calculate it from lambda/50. That goes wrong because the 1/3 mesh offset is larger than the entire line width...
In your example with 512µm line width, mesh size across line width should be around 100µm, and 1/3 rule refers to this local mesh size. It does not refer to the much larger maximum mesh size (misleading name "resolution" in your code) calculated from lambda/50!