Circuit#
- class ansys.aedt.core.circuit.Circuit(project=None, design=None, solution_type=None, setup=None, version=None, non_graphical=False, new_desktop=False, close_on_exit=False, student_version=False, machine='', port=0, aedt_process_id=None, remove_lock=False)#
Provides the Circuit application interface.
- Parameters:
- project
str
,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.- design
str
,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_type
str
,optional
Solution type to apply to the design. The default is
None
, in which case the default type is applied.- setup
str
,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.- version
str
,int
,float
,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. Examples of input values are232
,23.2
,``2023.2``,``”2023.2”``.- 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_desktopbool,
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 isFalse
. This parameter is ignored when a script is launched within AEDT.- close_on_exitbool,
optional
Whether to release AEDT on exit. The default is
False
.- student_versionbool,
optional
Whether to open the AEDT student version. The default is
False
. This parameter is ignored when Script is launched within AEDT.- machine
str
,optional
Machine name to which connect the oDesktop Session. Works only in 2022 R2 or later. The remote server must be up and running with the command “ansysedt.exe -grpcsrv portnum”. If a machine is “localhost”, the server also starts if not present.
- port
int
,optional
Port number on which to start the oDesktop communication on an already existing server. This parameter is ignored when creating a new server. It works only in 2022 R2 or later. The remote server must be up and running with the command “ansysedt.exe -grpcsrv portnum”.
- aedt_process_id
int
,optional
Process ID for the instance of AEDT to point PyAEDT at. The default is
None
. This parameter is only used whennew_desktop = False
.- remove_lockbool,
optional
Whether to remove lock to project before opening it or not. The default is
False
, which means to not unlock the existing project if needed and raise an exception.
- project
Examples
Create an instance of Circuit and connect to an existing Circuit design or create a new Circuit design if one does not exist.
>>> from ansys.aedt.core 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 2023 R2 version and open the specified project, which is
"myfile.aedt"
.>>> aedtapp = Circuit(version=2023.2, project="myfile.aedt")
Create an instance of Circuit using the 2023 R2 student version and open the specified project, which is named
"myfile.aedt"
.>>> aedtapp = Circuit(version="2023.2", project="myfile.aedt", student_version=True)
Methods
Activate optimization analysis for a variable and optionally set up ranges.
Activate sensitivity analysis for a variable and optionally set up ranges.
Activate statitistical analysis for a variable and optionally set up ranges.
Circuit.activate_variable_tuning
(name[, ...])Activate tuning analysis for a variable and optionally set up ranges.
Circuit.add_error_message
(text[, level])Add a type 0 "Error" message to either the global, active project, or active design level of the message mmanager tree.
Circuit.add_from_toolkit
(toolkit[, draw])Add a new toolkit to the current application.
Circuit.add_info_message
(text[, level])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
(input_file[, name])Add a new netlist data block to the circuit schematic.
Circuit.add_warning_message
(text[, level])Add a type 0 "Warning" message to either the global, active project, or active design level of the message manager tree.
Circuit.analyze
([setup, cores, tasks, gpus, ...])Solve the active design.
Circuit.analyze_setup
([name, cores, tasks, ...])Analyze a design setup.
Circuit.archive_project
([project_path, ...])Archive the AEDT project and add a message.
Circuit.assign_current_sinusoidal_excitation_to_ports
(ports)Assign a current sinusoidal excitation to circuit ports.
Assign a power sinusoidal excitation to circuit ports.
Circuit.assign_voltage_frequency_dependent_excitation_to_ports
(...)Assign a frequency dependent excitation to circuit ports from a frequency dependent source (FDS format).
Circuit.assign_voltage_sinusoidal_excitation_to_ports
(ports)Assign a voltage sinusoidal excitation to circuit ports.
Disable autosave in AEDT.
Enable autosave in AEDT.
Circuit.browse_log_file
([input_file])Save the most recent log file in a new directory.
Enable or disable the automatic use of causal materials for lossy dielectrics.
Circuit.change_design_settings
(settings)Set Design Settings.
Enable or disable the material override in the project.
Circuit.change_property
(aedt_object, ...)Change a property.
Update the validation design settings.
Circuit.check_beta_option_enabled
(beta_option)Check if a beta option is enabled.
Circuit.check_if_project_is_loaded
(input_file)Check if a project path is already loaded in active Desktop.
Circuit.clean_proj_folder
([directory, name])Delete a project folder.
Close AEDT and release it.
Circuit.close_project
([name, save])Close an AEDT project.
Connect circuit model from a multizone clipped project.
Circuit.copy_design_from
(project, design[, ...])Copy a design from a project into the active project.
Circuit.copy_project
(destination, name)Copy the project to another destination.
Circuit.create_ami_schematic_from_snp
(...[, ...])Create a schematic from a Touchstone file and automatically set up an IBIS-AMI analysis.
Circuit.create_dataset
(name, x, y[, z, v, ...])Create a dataset.
Circuit.create_dataset1d_design
(name, x, y)Create a design dataset.
Circuit.create_dataset1d_project
(name, x, y)Create a project dataset.
Circuit.create_dataset3d
(name, x, y[, z, v, ...])Create a 3D dataset.
Create a schematic from a list of pins and automatically set up an IBIS-AMI analysis.
Create a schematic from a Touchstone file and automatically set up an IBIS-AMI analysis.
Circuit.create_lna_schematic_from_snp
(input_file)Create a schematic from a Touchstone file and automatically set up an LNA analysis.
Create a project within AEDT.
Circuit.create_output_variable
(variable, ...)Create or modify an output variable.
Import an asc schematic and convert to Circuit Schematic.
Create a circuit schematic from a Mentor netlist.
Circuit.create_schematic_from_netlist
(input_file)Create a circuit schematic from an HSpice netlist.
Circuit.create_setup
([name, setup_type])Create a setup.
Circuit.create_source
(source_type[, name])Create a source in Circuit.
Circuit.create_tdr_schematic_from_snp
(...[, ...])Create a schematic from a Touchstone file and automatically setup a TDR transient analysis.
Circuit.create_touchstone_report
(name, curves)Create a Touchstone plot.
Circuit.dataset_exists
(name[, ...])Check if a dataset exists.
Deactivate the optimization analysis for a variable.
Deactivate the sensitivity analysis for a variable.
Deactivate the statistical analysis for a variable.
Deactivate the tuning analysis for a variable.
Circuit.delete_design
([name, fallback_design])Delete a design from the current project.
Circuit.delete_project
(name)Delete a project.
Circuit.delete_separator
(name)Delete a separator from either the active project or a design.
Circuit.delete_setup
(name)Delete a setup.
Delete design and project unused variables.
Circuit.delete_variable
(name)Delete a variable.
Circuit.design_variation
([variation])Generate a string to specify a desired variation.
Circuit.duplicate_design
(name[, ...])Copy a design to a new name.
Circuit.edit_notes
(text)Edit notes.
Circuit.edit_setup
(name, properties)Modify a setup.
Circuit.evaluate_expression
(expression)Evaluate a valid string expression and return the numerical value in SI units.
Circuit.export_convergence
(setup[, ...])Export a solution convergence to a file.
Circuit.export_design_preview_to_jpg
(output_file)Export design preview image to a JPG file.
Circuit.export_fullwave_spice
([design, ...])Export a full wave HSpice file using NDE.
Circuit.export_parametric_results
(sweep, ...)Export a list of all parametric variations solved for a sweep to a CSV file.
Circuit.export_profile
(setup[, variation, ...])Export a solution profile to a PROF file.
Circuit.export_results
([analyze, ...])Export all available reports to a file, including profile, and convergence and sNp when applicable.
Circuit.export_rl_matrix
(matrix_name, ...[, ...])Export R/L matrix after solving.
Circuit.export_touchstone
([setup, sweep, ...])Export a Touchstone file.
Circuit.export_variables_to_csv
(output_file)Export design properties, project variables, or both to a CSV file.
Generate a unique directory string to save a project to.
Generate a new setup with a unique name.
Get a list of all insertion losses from two lists of excitations (driver and receiver).
Get a list of all return losses for a list of excitations.
Circuit.get_evaluated_value
(name[, units])Retrieve the evaluated value of a design property or project variable in SI units if no unit is provided.
Circuit.get_fext_xtalk_list
([drivers, ...])Geta list of all the far end XTalks from two lists of excitations (driver and receiver).
Circuit.get_ibis_model_from_file
(input_file)Create an IBIS model based on the data contained in an IBIS file.
Circuit.get_module
(module_name)Aedt Module object.
Check and get monitor data of an existing analysis.
Circuit.get_next_xtalk_list
([drivers, ...])Get a list of all the near end XTalks from a list of excitations (driver and receiver).
Circuit.get_nominal_variation
([with_values])Retrieve the nominal variation.
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 property 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_profile
([name])Get profile information.
Get the value for the AEDT registry key if one exists.
Get the value for the AEDT registry key if one exists.
Circuit.get_setup
(name)Retrieve the setup from the current design.
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
([setup, sweep, ...])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
(name[, value])Set the variable to a hidden or unhidden variable.
Circuit.import_dataset1d
(input_file[, name, ...])Import a 1D dataset.
Circuit.import_dataset3d
(input_file[, name, ...])Import a 3D dataset.
Circuit.import_edb_in_circuit
(input_dir)Import an EDB design inside a Circuit project.
Circuit.import_touchstone_solution
(input_file)Import a Touchstone file as the solution.
Circuit.insert_design
([name, solution_type])Add a design of a specified type.
Circuit.list_of_variations
([setup, sweep])Retrieve a list of active variations for input setup.
Circuit.load_diff_pairs_from_file
(input_file)Load differtential pairs definition from a file.
Circuit.load_project
(file_name[, design, ...])Open an AEDT project based on a project and optional design.
Circuit.number_with_units
(value[, units])Convert a number to a string with units.
Pop-up to parent Circuit design and reinitialize Circuit object.
Circuit.push_down
(component)Push-down to the child component and reinitialize the Circuit object.
Circuit.push_excitations
(instance[, ...])Push excitations for a linear frequency setup.
Circuit.push_time_excitations
(instance[, ...])Push excitations for a transient setup.
Read back the design data as a dictionary.
Circuit.read_only_variable
(name[, value])Set the variable to a read-only or not read-only variable.
Circuit.release_desktop
([close_projects, ...])Release AEDT.
Remove all unused definitions in the project.
Circuit.rename_design
(name[, save])Rename the active design.
Circuit.retrieve_mentor_comp
(reference_id)Retrieve the type of the Mentor netlist component for a given reference ID.
Circuit.save_diff_pairs_to_file
(output_file)Save differential pairs definition to a file.
Circuit.save_project
([file_name, overwrite, ...])Save the project and add a message.
Change the active design to another design.
Change a specific registry key to a new value.
Circuit.set_differential_pair
(assignment, ...)Add a differential pair definition.
Circuit.set_license_type
([license_type])Change the license type between
"Pack"
and"Pool"
.Circuit.set_oo_property_value
(aedt_object, ...)Change the property value of the object-oriented AEDT object.
Circuit.set_registry_from_file
(registry_file)Apply desktop registry settings from an ACT file.
Circuit.set_registry_key
(name, value)Change a specific registry key to a new value.
Set temporary directory path.
Circuit.solve_in_batch
([file_name, machine, ...])Analyze a design setup in batch mode.
Circuit.stop_simulations
([clean_stop])Check if there are simulation running and stops them.
Circuit.submit_job
(cluster_name[, ...])Submit a job to be solved on a cluster.
Circuit.validate_simple
([log_file])Validate a design.
Circuit.value_with_units
(value[, units, ...])Combine a number and a string containing the modeler length unit in a single string e.g. "1.2mm".
Attributes
Position of the object.
Simulation setup types.
Solution types.
Get or Set the name of the active setup.
AEDT version.
Check if there are simulation running.
Available variation object.
Design boundaries and excitations.
Design boundaries by type.
Default solution type.
Dictionary of Design Datasets.
Design list.
Design name.
Design properties.
Design type.
Desktop
class.AEDT installation directory.
List of port objects.
List of port names.
Design excitations by type.
Analysis setups.
Analysis setups.
List of all S parameters for a list of excitations.
Dictionary of the PyAEDT session information.
Return the Circuit Layout Editor.
Library list.
Lock file.
Logger for the design.
Materials in the project.
Modeler object.
Native component names.
Native Component dictionary.
Nominal adaptive sweep.
Nominal sweep.
Component manager object.
AEDT Maxwell Parameter Setup Object.
Model manager object.
Aedt Symbol Manager.
Analysis AEDT Module.
Boundary Object.
Definition Manager Module.
Design.
AEDT instance containing all projects and designs.
Oeditor Module.
Solution Module.
Fields reporter.
Import/Export Manager Module.
Material Manager Module.
Matrix Object.
Icepak Mesh Module.
AEDT Model Setup Object.
AEDT Monitor Object.
AEDT Optimetrics Module.
AEDT Output Variable Module.
AEDT oPadstackManager.
Project property.
Optimizations in the project.
AEDT Radiation Field Object.
Report setup.
Solution Module.
List of output variables.
Setups in the project.
PersonalLib directory.
Design excitations.
PostProcessor.
Dictionary of project datasets.
Project name and path.
Project list.
Project name.
Project path.
Project properties.
Return Project time stamp.
Return a bool if time stamp changed or not.
PyAEDT directory.
Results directory.
Settings of the current Python/Pyaedt session.
Setup names.
Setups in the project.
Solution type.
Get all source names.
Get all source objects.
Get all sources.
Source directory for Python.
SysLib directory.
Path to the temporary directory.
Path to the toolkit directory.
UserLib directory.
Valid design.
Variable manager for creating and managing project design and postprocessing variables.
Path to the working directory.