Skip to content

Conversation

@gpeairs
Copy link
Member

@gpeairs gpeairs commented Jan 7, 2026

Updates default CPW mesh size to 2 * min(trace, gap) (using min instead of max). (Closes #17.) Based on benchmarking simulations of simple CPW resonators, this is a better starting point for AMR in Palace when the trace and gap are different. Even though you have more mesh elements, the cost of simulation (in core hours for a given accuracy) can go down, because mesh elements with high aspect ratio cause slow convergence in the linear solver. The factor of 2 seems to be a sweet spot as well.

Also updates global mesh grading default from 0.9 to 0.75, which anecdotally is more robust with complex geometries, and did not add significant cost in benchmarking simulations. (Closes #104.)

@gpeairs gpeairs requested a review from hughcars January 7, 2026 17:24
@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@gpeairs gpeairs merged commit d6dddc5 into main Jan 8, 2026
10 checks passed
@gpeairs gpeairs deleted the gp/cpw-mesh branch January 8, 2026 10:13
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

Successfully merging this pull request may close these issues.

Change default mesh grading? SolidModels CPW default mesh sizing

2 participants