Setting potentials

More
4 years 9 months ago #2398 by andrew22
Setting potentials was created by andrew22
I'm trying to set electrical potentials of conducting cylinders, using boundaries returned by mesh.GetBoundaries(). But this seems to return one less boundary than it should do. What am I doing wrong? Is there a better way to code this?

If everything were correct the cylinders shown by netgen would have uniform colours (yellow, red, blue).

Regards,
Andrew.

File Attachment:

File Name: setpot.py
File Size:2 KB
Attachments:
More
4 years 8 months ago #2431 by andrew22
Replied by andrew22 on topic Setting potentials
I worked out how to do this - eventually.
Working code attached.
Andrew.

File Attachment:

File Name: setpot_2020-02-24.py
File Size:2 KB
Time to create page: 0.098 seconds