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

FIX: Added separation of faces and objects in assign_voltage method #5008

Conversation

AlfVII
Copy link
Contributor

@AlfVII AlfVII commented Aug 7, 2024

I was implementing Electrostatic solver for Ansyas, and I got an error when assigning voltages to a list of more than one objects. I looked the code a bit and I saw (in maxwell.py, lines 980-986) that you distinguish between list of one element and more than one.
When there is only one you check if the elements are objects or faces and assign in correspondence. When there are more than one you always assign them as "Faces", which breaks the code when working with objects.

@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@AlfVII AlfVII changed the title Added separation of faces and objects in assign_voltage method FIX: Added separation of faces and objects in assign_voltage method Aug 7, 2024
@AlfVII
Copy link
Contributor Author

AlfVII commented Aug 7, 2024

@ansys-reviewer-bot review

@ansys-reviewer-bot
Copy link
Contributor

Okay, I will trigger a review of your PR.

pyaedt/maxwell.py Outdated Show resolved Hide resolved
Co-authored-by: ansys-reviewer-bot[bot] <143693109+ansys-reviewer-bot[bot]@users.noreply.github.com>
@Samuelopez-ansys
Copy link
Member

@AlfVII I cherry-picked your PR here: #5010

I will close this PR. Thank you for your contribution.

We need to cherry-pick to trigger the unit test (it uses Ansys internal licenses)

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.

3 participants