pyaedt.Circuit#

class pyaedt.Circuit(projectname=None, designname=None, solution_type=None, setup_name=None, specified_version=None, non_graphical=False, new_desktop_session=False, close_on_exit=False, student_version=False, machine='', port=0, aedt_process_id=None)[source]#

Provides the Circuit application interface.

Parameters:
projectnamestr, optional

Name of the project to select or the full path to the project or AEDTZ archive to open. The default is None, in which case an attempt is made to get an active project. If no projects are present, an empty project is created.

designnamestr, optional

Name of the design to select. The default is None, in which case an attempt is made to get an active design. If no designs are present, an empty design is created.

solution_typestr, optional

Solution type to apply to the design. The default is None, in which case the default type is applied.

setup_namestr, optional

Name of the setup to use as the nominal. The default is None, in which case the active setup is used or nothing is used.

specified_versionstr, optional

Version of AEDT to use. The default is None, in which case the active version or latest installed version is used. This parameter is ignored when Script is launched within AEDT.

non_graphicalbool, optional

Whether to run AEDT in non-graphical mode. The default is False, in which case AEDT is launched in graphical mode. This parameter is ignored when a script is launched within AEDT.

new_desktop_sessionbool, optional

Whether to launch an instance of AEDT in a new thread, even if another instance of the specified_version is active on the machine. The default is True. This parameter is ignored when Script is launched within AEDT.

close_on_exitbool, optional

Whether to release AEDT on exit.

student_versionbool, optional

Whether to open the AEDT student version. The default is False. This parameter is ignored when Script is launched within AEDT.

machinestr, optional

Machine name to which connect the oDesktop Session. Works only on 2022R2. Remote Server must be up and running with command “ansysedt.exe -grpcsrv portnum”. If machine is “localhost” the server will also start if not present.

portint, optional

Port number of which start the oDesktop communication on already existing server. This parameter is ignored in new server creation. It works only on 2022R2. Remote Server must be up and running with command “ansysedt.exe -grpcsrv portnum”.

aedt_process_idint, optional

Only used when new_desktop_session = False, specifies by process ID which instance of Electronics Desktop to point PyAEDT at.

Examples

Create an instance of Circuit and connect to an existing HFSS design or create a new HFSS design if one does not exist.

>>> from pyaedt import Circuit
>>> aedtapp = Circuit()

Create an instance of Circuit and link to a project named "projectname". If this project does not exist, create one with this name.

>>> aedtapp = Circuit(projectname)

Create an instance of Circuit and link to a design named "designname" in a project named "projectname".

>>> aedtapp = Circuit(projectname,designame)

Create an instance of Circuit and open the specified project, which is "myfie.aedt".

>>> aedtapp = Circuit("myfile.aedt")

Create an instance of Circuit using the 2021 R1 version and open the specified project, which is "myfile.aedt".

>>> aedtapp = Circuit(specified_version="2021.2", projectname="myfile.aedt")

Create an instance of Circuit using the 2021 R2 student version and open the specified project, which is named "myfile.aedt".

>>> hfss = Circuit(specified_version="2021.2", projectname="myfile.aedt", student_version=True)

Methods

Circuit.activate_variable_optimization(...)

Activate optimization analysis for a variable and optionally set up ranges.

Circuit.activate_variable_sensitivity(...[, ...])

Activate sensitivity analysis for a variable and optionally set up ranges.

Circuit.activate_variable_statistical(...[, ...])

Activate statitistical analysis for a variable and optionally set up ranges.

Circuit.activate_variable_tuning(variable_name)

Activate tuning analysis for a variable and optionally set up ranges.

Circuit.add_error_message(message_text[, ...])

Add a type 0 "Error" message to either the global, active project, or active design level of the message mmanager tree.

Circuit.add_info_message(message_text[, ...])

Add a type 0 "Info" message to either the global, active project, or active design level of the message manager tree.

Circuit.add_netlist_datablock(netlist_file)

Add a new netlist data block to the circuit schematic.

Circuit.add_warning_message(message_text[, ...])

Add a type 0 "Warning" message to either the global, active project, or active design level of the message manager tree.

Circuit.analyse_nominal()

Solve the nominal design.

Circuit.analyze_all()

Analyze all setups in a design.

Circuit.analyze_from_initial_mesh()

Revert the solution to the initial mesh and re-run the solve.

Circuit.analyze_nominal([num_cores, ...])

Solve the nominal design.

Circuit.analyze_setup(name[, num_cores, ...])

Analyze a design setup.

Circuit.archive_project([project_file, ...])

Archive the AEDT project and add a message.

Circuit.assign_current_sinusoidal_excitation_to_ports(...)

Assign a current sinusoidal excitation to circuit ports.

Circuit.assign_power_sinusoidal_excitation_to_ports(...)

Assign a power sinusoidal excitation to circuit ports.

Circuit.assign_voltage_sinusoidal_excitation_to_ports(...)

Assign a voltage sinusoidal excitation to circuit ports.

Circuit.autosave_disable()

Disable autosave in AEDT.

Circuit.autosave_enable()

Enable autosave in AEDT.

Circuit.change_automatically_use_causal_materials([...])

Enable or disable the automatic use of causal materials for lossy dielectrics.

Circuit.change_design_settings(settings)

Set Design Settings.

Circuit.change_material_override([...])

Enable or disable the material override in the project.

Circuit.change_validation_settings([...])

Update the validation design settings.

Circuit.check_beta_option_enabled(...)

Check if a beta option is enabled.

Circuit.clean_proj_folder([directory, name])

Delete a project folder.

Circuit.close_desktop()

Close AEDT and release it.

Circuit.close_project([name, saveproject])

Close an AEDT project.

Circuit.copy_design_from(project_fullname, ...)

Copy a design from a project into the active design.

Circuit.copy_project(path, dest)

Copy the project to another destination.

Circuit.create_dataset(dsname, xlist, ylist)

Create a dataset.

Circuit.create_dataset1d_design(dsname, ...)

Create a design dataset.

Circuit.create_dataset1d_project(dsname, ...)

Create a project dataset.

Circuit.create_dataset3d(dsname, xlist, ylist)

Create a 3D dataset.

Circuit.create_new_project(proj_name)

Create a project within AEDT.

Circuit.create_output_variable(variable, ...)

Create or modify an output variable.

Circuit.create_schematic_from_mentor_netlist(...)

Create a circuit schematic from a Mentor net list.

Circuit.create_schematic_from_netlist(...)

Create a circuit schematic from an HSpice net list.

Circuit.create_setup([setupname, setuptype, ...])

Create a new setup.

Circuit.create_touchstone_report(plot_name, ...)

Create a Touchstone plot.

Circuit.dataset_exists(name[, ...])

Check if a dataset exists.

Circuit.deactivate_variable_optimization(...)

Deactivate the optimization analysis for a variable.

Circuit.deactivate_variable_sensitivity(...)

Deactivate the sensitivity analysis for a variable.

Circuit.deactivate_variable_statistical(...)

Deactivate the statistical analysis for a variable.

Circuit.deactivate_variable_tuning(variable_name)

Deactivate the tuning analysis for a variable.

Circuit.delete_design([name, fallback_design])

Delete a design from the current project.

Circuit.delete_project(project_name)

Delete a project.

Circuit.delete_separator(separator_name)

Delete a separator from either the active project or a design.

Circuit.delete_setup(setupname)

Delete a setup.

Circuit.delete_variable(sVarName)

Delete a variable.

Circuit.design_variation([variation_string])

Generate a string to specify a desired variation.

Circuit.duplicate_design(label[, ...])

Copy a design to a new name.

Circuit.edit_setup(setupname, properties_dict)

Modify a setup.

Circuit.evaluate_expression(expression_string)

Evaluate a valid string expression and return the numerical value in SI units.

Circuit.export_convergence(setup_name[, ...])

Export a solution convergence to a file.

Circuit.export_design_preview_to_jpg(filename)

Export design preview image to a JPG file.

Circuit.export_fullwave_spice([designname, ...])

Export a full wave HSpice file using NDE.

Circuit.export_parametric_results(sweepname, ...)

Export a list of all parametric variations solved for a sweep to a CSV file.

Circuit.export_profile(setup_name[, ...])

Export a solution profile to a PROF file.

Circuit.export_results([analyze, export_folder])

Export all available reports to a file, including sNp, profile, and convergence.

Circuit.export_touchstone([solution_name, ...])

Export the Touchstone file to a local folder.

Circuit.export_variables_to_csv(filename[, ...])

Export design properties, project variables, or both to a CSV file.

Circuit.generate_temp_project_directory(...)

Generate a unique directory string to save a project to.

Circuit.generate_unique_setup_name([setup_name])

Generate a new setup with an unique name.

Circuit.get_all_insertion_loss_list([...])

Retrieve a list of all insertion losses from two lists of excitations (driver and receiver).

Circuit.get_all_return_loss_list([...])

Retrieve a list of all return losses for a list of exctitations.

Circuit.get_evaluated_value(variable_name[, ...])

Retrieve the evaluated value of a design property or project variable in SI units if no unit is provided.

Circuit.get_fext_xtalk_list([trlist, ...])

Retrieve a list of all the far end XTalks from two lists of exctitations (driver and receiver).

Circuit.get_ibis_model_from_file(path)

Create an IBIS model based on the data contained in an IBIS file.

Circuit.get_module(module_name)

Aedt Module object.

Circuit.get_next_xtalk_list([trlist, tx_prefix])

Retrieve a list of all the near end XTalks from a list of excitations (driver and receiver).

Circuit.get_nominal_variation()

Retrieve the nominal variation.

Circuit.get_object_material_properties([...])

Retrieve the material properties for a list of objects and return them in a dictionary.

Circuit.get_oo_name(aedt_object[, object_name])

Return the Object Oriented AEDT Properties names.

Circuit.get_oo_object(aedt_object, object_name)

Return the Object Oriented AEDT Object.

Circuit.get_oo_properties(aedt_object, ...)

Return the Object Oriented AEDT Object Properties.

Circuit.get_oo_property_value(aedt_object, ...)

Return the Object Oriented AEDT Object Properties.

Circuit.get_output_variable(variable[, solution])

Retrieve the value of the output variable.

Circuit.get_registry_key_int(key_full_name)

Get the value for the AEDT registry key if one exists.

Circuit.get_registry_key_string(key_full_name)

Get the value for the AEDT registry key if one exists.

Circuit.get_setup(setupname)

Retrieve the setup from the current design.

Circuit.get_setups()

Retrieve setups.

Circuit.get_source_pin_names(source_design_name)

Retrieve pin names.

Circuit.get_sweeps(name)

Retrieve all sweeps for a setup.

Circuit.get_touchstone_data(curvenames[, ...])

Return a Touchstone data plot.

Circuit.get_traces_for_plot([...])

Retrieve a list of traces of specified designs ready to use in plot reports.

Circuit.hidden_variable(variable_name[, value])

Set the variable to a hidden or unhidden variable.

Circuit.import_dataset1d(filename[, dsname, ...])

Import a 1D dataset.

Circuit.import_dataset3d(filename[, dsname, ...])

Import a 3D dataset.

Circuit.import_touchstone_solution(filename)

Import a Touchstone file as the solution.

Circuit.insert_design([design_name, ...])

Add a design of a specified type.

Circuit.list_of_variations([setup_name, ...])

Retrieve a list of active variations for input setup.

Circuit.load_diff_pairs_from_file(filename)

Load differtential pairs definition from file.

Circuit.load_project(project_file[, ...])

Open an AEDT project based on a project and optional design.

Circuit.pop_up()

Pop-up to parent Circuit design and reinitialize Circuit object.

Circuit.push_down(component_name)

Push-down to the child component and reinitialize the Circuit object.

Circuit.push_excitations(instance_name[, ...])

Push excitations.

Circuit.read_design_data()

Read back the design data as a dictionary.

Circuit.read_only_variable(variable_name[, ...])

Set the variable to a read-only or not read-only variable.

Circuit.release_desktop([close_projects, ...])

Release AEDT.

Circuit.rename_design(new_name)

Rename the active design.

Circuit.retrieve_mentor_comp(refid)

Retrieve the type of the Mentor net list component for a given reference ID.

Circuit.save_diff_pairs_to_file(filename)

Save differtential pairs definition to file.

Circuit.save_project([project_file, ...])

Save the project and add a message.

Circuit.set_active_design(name)

Change the active design to another design.

Circuit.set_active_dso_config_name([...])

Change a specific registry key to a new value.

Circuit.set_differential_pair(...[, ...])

Add a differential pair definition.

Circuit.set_license_type([license_type])

Change the license type between "Pack" and "Pool".

Circuit.set_registry_from_file(registry_file)

Apply desktop registry settings from an ACT file.

Circuit.set_registry_key(key_full_name, ...)

Change a specific registry key to a new value.

Circuit.solve_in_batch([filename, machine, ...])

Analyze a design setup in batch mode.

Circuit.submit_job(clustername[, ...])

Submit a job to be solved on a cluster.

Circuit.validate_simple([logfile])

Validate a design.

Circuit.value_with_units(value[, units])

Combine a number and a string containing the unit in a single string e.g.

Attributes

Circuit.aedt_version_id

AEDT version.

Circuit.analysis_setup

Analysis setup.

Circuit.available_variations

Available variation object.

Circuit.boundaries

Design boundaries and excitations.

Circuit.default_solution_type

Default solution type.

Circuit.design_datasets

Dictionary of Design Datasets.

Circuit.design_list

Design list.

Circuit.design_name

Design name.

Circuit.design_properties

Design properties.

Circuit.design_type

Design type.

Circuit.desktop_install_dir

AEDT installation directory.

Circuit.excitations

Get all excitation names.

Circuit.existing_analysis_setups

Analysis setups.

Circuit.existing_analysis_sweeps

Analysis setups.

Circuit.get_all_sparameter_list

List of all S parameters for a list of exctitations.

Circuit.get_excitations_name

Excitation names.

Circuit.layouteditor

Return the Circuit Layout Editor.

Circuit.library_list

Library list.

Circuit.lock_file

Lock file.

Circuit.logger

Logger for the design.

Circuit.materials

Materials in the project.

Circuit.mesh

Mesh.

Circuit.modeler

Modeler object.

Circuit.native_components

Native Component dictionary.

Circuit.nominal_adaptive

Nominal adaptive sweep.

Circuit.nominal_sweep

Nominal sweep.

Circuit.o_component_manager

Component manager object.

Circuit.o_maxwell_parameters

AEDT Maxwell Parameter Setup Object.

Circuit.o_model_manager

Model manager object.

Circuit.o_symbol_manager

Aedt Simbol Manager.

Circuit.oanalysis

Analysis AEDT Module.

Circuit.oboundary

Boundary Object.

Circuit.odefinition_manager

Definition Manager Module.

Circuit.odesign

Design.

Circuit.odesktop

AEDT instance containing all projects and designs.

Circuit.oeditor

Oeditor Module.

Circuit.oexcitation

Solution Module.

Circuit.ofieldsreporter

Fields reporter.

Circuit.oimport_export

Import/Export Manager Module.

Circuit.omaterial_manager

Material Manager Module.

Circuit.omatrix

Matrix Object.

Circuit.omeshmodule

Icepak Mesh Module.

Circuit.omodelsetup

AEDT Model Setup Object.

Circuit.omonitor

AEDT Monitor Object.

Circuit.ooptimetrics

AEDT Optimetrics Module.

Circuit.ooutput_variable

AEDT Output Variable Module.

Circuit.opadstackmanager

AEDT oPadstackManager.

Circuit.oproject

Project property.

Circuit.oradfield

AEDT Radiation Field Object.

Circuit.oreportsetup

Report setup.

Circuit.osolution

Solution Module.

Circuit.output_variables

List of output variables.

Circuit.personallib

PersonalLib directory.

Circuit.post

Postprocessor.

Circuit.project_datasets

Dictionary of Project Datasets.

Circuit.project_file

Project name and path.

Circuit.project_list

Project list.

Circuit.project_name

Project name.

Circuit.project_path

Project path.

Circuit.project_properies

Project properties.

Circuit.project_time_stamp

Return Project time stamp.

Circuit.project_timestamp_changed

Return a bool if time stamp changed or not.

Circuit.pyaedt_dir

PyAEDT directory.

Circuit.results_directory

Results directory.

Circuit.setup_names

Setup names.

Circuit.solution_type

Solution type.

Circuit.src_dir

Source directory for Python.

Circuit.syslib

SysLib directory.

Circuit.temp_directory

Path to the temporary directory.

Circuit.toolkit_directory

Path to the toolkit directory.

Circuit.userlib

UserLib directory.

Circuit.valid_design

Valid design.

Circuit.variable_manager

Variable manager for creating and managing project design and postprocessing variables.

Circuit.working_directory

Path to the working directory.