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)[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.

NGbool, optional

Whether to run AEDT in the non-graphical mode. The default is``False``, in which case AEDT is launched in the graphical mode. This parameter is ignored when 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.

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 global, active project or active design level of the Message Manager tree.

Circuit.add_info_message(message_text[, …])

Add a type 0 “Info” message to either global, active project or active design level of the Message Manager tree.

Circuit.add_warning_message(message_text[, …])

Add a type 0 “Warning” message to either global, active project or active design level of the Message Manager tree.

Circuit.analyse_nominal()

Solve the nominal design.

Circuit.analyze_all()

Analyze all setup in an actual 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 specific 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 the Desktop Autosave.

Circuit.autosave_enable()

Enable the Desktop Autosave.

Circuit.change_automatically_use_causal_materials([…])

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

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 the desktop and release AEDT.

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 the desktop.

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 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 file.

Circuit.export_results([analyze, export_folder])

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

Circuit.export_touchstone(solutionname, …)

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_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 given objects and return them in a dictionary.

Circuit.get_output_variable(variable)

Retrieve the value of the output variable.

Circuit.get_registry_key_int(key_full_name)

Get Desktop Registry Key Value if exists, otherwise 0.

Circuit.get_registry_key_string(key_full_name)

Get Desktop Registry Key Value if exists, otherwise ‘’.

Circuit.get_setup(setupname)

Retrieve the setup from the current design.

Circuit.get_setups()

Retrieve setups.

Circuit.get_source_pin_names(source_design_name)

List the pin names.

Circuit.get_sweeps(name)

Retrieve all sweep for a setup.

Circuit.get_touchstone_data(curvenames[, …])

Return Touchstone Data plot.

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, …])

Return list of active variation for input setup.

Circuit.load_project(project_file[, …])

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

Circuit.push_excitations(instance_name[, …])

Push excitations.

Circuit.read_design_data()

Read back the design data as a dictionary.

Circuit.read_ibis(path)

Create an IBIS model based on the data contained into an *.ibs file.

Circuit.release_desktop([close_projects, …])

Release the desktop.

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_project([project_file, …])

Save the AEDT 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 new value.

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 acf file.

Circuit.set_registry_key(key_full_name, …)

Change a specific registry key to 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.

Attributes

Circuit.aedt_version_id

AEDT version.

Circuit.analysis_setup

Analysis setup.

Circuit.available_variations

Available variation object.

Circuit.default_solution_type

Default solution type.

Circuit.design_list

Design list.

Circuit.design_name

Design name.

Circuit.design_properties

Design properties.

Circuit.design_type

Design type.

Circuit.desktop_install_dir

Desktop installation directory.

Circuit.existing_analysis_setups

Analysis setups.

Circuit.existing_analysis_sweeps

Existing analysis sweeps.

Circuit.get_all_sparameter_list

List of all S parameters for a list of exctitations.

Circuit.get_excitations_name

Excitation names.

Circuit.library_list

Library list.

Circuit.lock_file

Lock file.

Circuit.logger

Logger for the Design.

Circuit.materials

Manages materials in the project.

Circuit.mesh

Mesh.

Circuit.modeler

Modeler object.

Circuit.nominal_adaptive

Nominal adaptive sweep.

Circuit.nominal_sweep

Nominal sweep.

Circuit.oanalysis

Analysis AEDT Module.

Circuit.odefinition_manager

Definition Manager Module.

Circuit.odesign

Design.

Circuit.odesktop

Desktop instance containing all projects and designs.

Circuit.oimport_export

Import Export Manager Module.

Circuit.omaterial_manager

Material Manager Module.

Circuit.ooptimetrics

Optimetrics AEDT Module.

Circuit.ooutput_variable

Output Variable AEDT Module.

Circuit.oproject

Property.

Circuit.output_variables

List of Output variables.

Circuit.personallib

PersonalLib directory.

Circuit.post

PostProcessor.

Circuit.project_file

Project file.

Circuit.project_list

Project list.

Circuit.project_name

Project name.

Circuit.project_path

Project path.

Circuit.project_properies

Project properties.

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.