2D modeler#
This section lists the core AEDT Modeler modules for 2D and 3D solvers (Maxwell 2D, 2D Extractor).
They are accessible through the modeler property:
from ansys.aedt.core import Maxwell2d
app = Maxwell2d(
specified_version="2025.2",
non_graphical=False,
new_desktop_session=True,
close_on_exit=True,
student_version=False,
)
# This call return the Modeler2D class
modeler = app.modeler
...
The Modeler module contains all properties and methods needed to edit a
modeler, including all primitives methods and properties:
Provides the Modeler 2D application interface. |
from ansys.aedt.core import Maxwell2d
app = Maxwell2d(
specified_version="2025.2",
non_graphical=False,
new_desktop_session=True,
close_on_exit=True,
student_version=False,
)
# This call returns the NexximComponents class
origin = [0, 0, 0]
dimensions = [10, 5, 20]
# Material and name are not mandatory fields
box_object = app.modeler.primivites.create_rectangle(
[15, 20, 0], [5, 5], material="aluminum"
)
...