Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Setting potentials

More
4 years 2 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 2 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.149 seconds