Eomys / pyleecan

Electrical engineering open-source software providing a user-friendly, unified, flexible simulation framework for the multiphysic design and optimization of electrical machines and drives
https://www.pyleecan.org
Apache License 2.0
156 stars 132 forks source link

[NF] Coupling with Ansys (Maxwell, Simplorer, etc.) #220

Open EmileDvs opened 4 years ago

EmileDvs commented 4 years ago

Hello,

I am opening this issue to start discussion around Ansys coupling:

Best regards, Emile

tinix84 commented 4 years ago

I can help for that, there are some possible implementation but we need to build an abstraction layer between pyleecan and FEMM

BonneelP commented 4 years ago

Hello,

Thank you for your interest in pyleecan. If you can help us on this issue that would be great :)

The coupling with FEMM already use a geometry abstraction layer. We have a method known as "build_geometry" that returns a generic representation of the machine "as a list of surface". All the topology complexity including symmetries are handled by this method and the coupling with FEMM (and gmsh) is mostly:

for surface in surface_list:
    for line in surface.lines:
        line.draw_FEMM()
    assign_surface(surface.label, surface.point_ref)

We talk more about it in our ICEM 2020 publication:

What kind of simulation (machine / physics / software...) do you want to run with this coupling ? Maybe a first step can be to draw and mesh a machine from pyleecan within Ansys. Maybe we can reuse some work from the coupling with GMSH for this purpose.

Best regards, Pierre