Skip to content

FIX: SurfaceGround assignment bug in Q2D boundary module - #7134

Merged
Samuelopez-ansys merged 21 commits into
mainfrom
7133-bug-located-in-method-of-assigning-surface-ground-in-q2d-not-available
Feb 10, 2026
Merged

Samuelopez-ansys merged 21 commits into
mainfrom
7133-bug-located-in-method-of-assigning-surface-ground-in-q2d-not-available

Conversation

@gchaturve

@gchaturve gchaturve commented Jan 23, 2026 •

Copy link
Copy Markdown
Contributor
  • Fixed bug in src/ansys/aedt/core/modules/boundary/common.py for SurfaceGround conductor assignment
  • Added comprehensive test case for SurfaceGround assignment with closed solution type in Q2D
  • Test validates SurfaceGround assignment on modeler regions with various solve options

Fixes #7133

Description

Fixes the missing surface ground assignment workflow in Q2D when using PyAEDT.

Issue linked

Issue number-#7133
While setting up a Q2D Extractor model using PyAEDT, there is no clear or dedicated API method available to assign a surface ground. Unlike manual AEDT workflows, the PyAEDT interface does not clearly expose a function to define a surface as ground for Q2D simulations.
This limitation makes it difficult to programmatically define proper reference conditions in Q2D models, which can affect the correctness and repeatability of capacitance and field extraction results when using PyAEDT.

Checklist

  • I have tested my changes locally.
  • I have added necessary documentation or updated existing documentation.
  • I have followed the coding style guidelines of this project.
  • I have added appropriate tests (unit, integration, system).
  • I have reviewed my changes before submitting this pull request.
  • I have linked the issue or issues that are solved by the PR if any.
  • I have agreed with the Contributor License Agreement (CLA).

- Fixed bug in src/ansys/aedt/core/modules/boundary/common.py for SurfaceGround conductor assignment
- Added comprehensive test case for SurfaceGround assignment with closed solution type in Q2D
- Test validates SurfaceGround assignment on modeler regions with various solve options

Fixes #7133
@gchaturve gchaturve self-assigned this Jan 23, 2026
@gchaturve
gchaturve requested a review from a team as a code owner January 23, 2026 07:43
@gchaturve gchaturve linked an issue Jan 23, 2026 that may be closed by this pull request
2 tasks done
@Samuelopez-ansys
Samuelopez-ansys marked this pull request as draft January 26, 2026 11:50
@nunesanderson

nunesanderson commented Jan 26, 2026 •

Copy link
Copy Markdown
Contributor

Hi @gchaturve

Is this PR ready to review?
Do you have pre-commit installed?

@gchaturve

Copy link
Copy Markdown
Contributor Author

Hi @gchaturve

Is this PR ready to review? Do you have pre-commit installed?

Hello @nunesanderson
The PR is ready for review.
I haven’t installed pre-commit yet

@nunesanderson

Copy link
Copy Markdown
Contributor

Hi @gchaturve
Is this PR ready to review? Do you have pre-commit installed?

Hello @nunesanderson The PR is ready for review. I haven’t installed pre-commit yet

Hi @gchaturve

Could you please install it
image

and update this PR?

@gchaturve

Copy link
Copy Markdown
Contributor Author

Hi @gchaturve
Is this PR ready to review? Do you have pre-commit installed?

Hello @nunesanderson The PR is ready for review. I haven’t installed pre-commit yet

Hi @gchaturve

Could you please install it image

and update this PR?

Yes Thankyou for feedback I will do it and update the PR.

@gchaturve
gchaturve marked this pull request as ready for review January 27, 2026 09:59
@gchaturve

Copy link
Copy Markdown
Contributor Author

Hello @nunesanderson I have updated PR and its ready for review.

@nunesanderson

Copy link
Copy Markdown
Contributor

Hello @nunesanderson I have updated PR and its ready for review.

Hi @gchaturve

It seems that you did not push your commit. The pre-commit is still failing and I don't see a recent commit

image

eblanco-ansys
eblanco-ansys previously approved these changes Jan 30, 2026
@eblanco-ansys eblanco-ansys changed the title Fix: SurfaceGround assignment bug in Q2D boundary module FIX: SurfaceGround assignment bug in Q2D boundary module Jan 30, 2026
@codecov

codecov Bot commented Jan 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 19.55%. Comparing base (36ede02) to head (5eb7475).
⚠️ Report is 2 commits behind head on main.

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (85.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #7134       +/-   ##
===========================================
- Coverage   82.39%   19.55%   -62.84%     
===========================================
  Files         254      248        -6     
  Lines       76563    76264      -299     
===========================================
- Hits        63081    14911    -48170     
- Misses      13482    61353    +47871     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nunesanderson

Copy link
Copy Markdown
Contributor

Hello @gchaturve Did you manage to update this PR?

@gmalinve

@gchaturve

gchaturve commented Feb 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Hello @nunesanderson @eblanco-ansys
I have done pre-commit run now I request to review.

@gmalinve gmalinve left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @gchaturve! :)
I left some comments

Comment thread tests/system/general/test_q2d.py Resolved
Comment thread tests/system/general/test_q2d.py Resolved
Comment thread tests/system/general/test_q2d.py Resolved
@gchaturve

Copy link
Copy Markdown
Contributor Author

Thank you for the feedback @gmalinve
I did the changes now I request you to review the changes and provide me feedback.

@gchaturve
gchaturve requested a review from gmalinve February 10, 2026 06:51
@eblanco-ansys

Copy link
Copy Markdown
Contributor

Applied some minor commit suggestions @gchaturve

Comment thread src/ansys/aedt/core/q3d.py Resolved
Comment thread src/ansys/aedt/core/q3d.py Resolved
Comment thread src/ansys/aedt/core/q3d.py Resolved
Comment thread src/ansys/aedt/core/q3d.py Resolved
Comment thread src/ansys/aedt/core/q3d.py Resolved
Comment thread src/ansys/aedt/core/q3d.py Resolved
Comment thread src/ansys/aedt/core/q3d.py Resolved
Co-authored-by: Eduardo Blanco <eduardo.blancofernandez@ansys.com>
@ansys-cla-bot

ansys-cla-bot Bot commented Feb 10, 2026

Copy link
Copy Markdown

The following people have not signed the Contributors License Agreement (CLA):

  • @

Read the CLA in the link above and sign it by clicking the link below:

You will receive a confirmation as soon as your signature is captured.

Samuelopez-ansys and others added 5 commits February 10, 2026 08:27
Co-authored-by: Eduardo Blanco <eduardo.blancofernandez@ansys.com>
Co-authored-by: Eduardo Blanco <eduardo.blancofernandez@ansys.com>
Co-authored-by: Eduardo Blanco <eduardo.blancofernandez@ansys.com>
@Samuelopez-ansys
Samuelopez-ansys merged commit d759202 into main Feb 10, 2026
40 of 41 checks passed
@Samuelopez-ansys
Samuelopez-ansys deleted the 7133-bug-located-in-method-of-assigning-surface-ground-in-q2d-not-available branch February 10, 2026 08:16
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.

Bug located in ... Method of assigning surface ground in q2d not available

7 participants