EMIT: antenna#

This example shows how you can use PyAEDT to create a project in EMIT for the simulation of an antenna.

Perform required inputs#

Perform required imports.

import os
from pyaedt import Emit
from pyaedt import Desktop
from pyaedt import generate_unique_project_name

Set non-graphical mode#

Set non-graphical mode. "PYAEDT_NON_GRAPHICAL"` is needed to generate documentation only. You can set non_graphical either to True or False. The NewThread Boolean variable defines whether to create a new instance of AEDT or try to connect to existing instance of it if one is available.

non_graphical = os.getenv("PYAEDT_NON_GRAPHICAL", "False").lower() in ("true", "1", "t")
NewThread = False
desktop_version = "2022.2"

Launch AEDT with EMIT#

Launch AEDT with EMIT. The Desktop class initializes AEDT and starts it on the specified version and in the specified graphical mode.

d = Desktop(desktop_version, non_graphical, NewThread)
aedtapp = Emit(generate_unique_project_name())

Create and connect EMIT components#

Create three radios and connect an antenna to each one.

rad1 = aedtapp.modeler.components.create_component("UE - Handheld")
ant1 = aedtapp.modeler.components.create_component("Antenna")
if rad1 and ant1:

rad2 = aedtapp.modeler.components.create_component("GPS Receiver")
ant2 = aedtapp.modeler.components.create_component("Antenna")
if rad2 and ant2:

rad3 = aedtapp.modeler.components.create_component("Bluetooth")
ant3 = aedtapp.modeler.components.create_component("Antenna")
if rad3 and ant3:

Define coupling among RF systems#

Define the coupling among the RF systems. This portion of the EMIT API is not yet implemented.

Run EMIT simulation#

Run the EMIT simulation. This portion of the EMIT API is not yet implemented.

Save project and close AEDT#

After the simulation completes, you can close AEDT or release it using the pyaedt.Desktop.force_close_desktop() method. All methods provide for saving the project before closing.

aedtapp.release_desktop(close_projects=True, close_desktop=True)

Total running time of the script: ( 0 minutes 9.368 seconds)

Gallery generated by Sphinx-Gallery