Q3d#

class ansys.aedt.core.q3d.Q3d(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 Q3D app interface.

This class allows you to create an instance of Q3D and link to an existing project or create a new one.

Parameters:
projectstr, 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.

designstr, 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.

setupstr, 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.

versionstr, 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 are 232, 23.2,``2023.2``,``”2023.2”``.

non_graphicalbool, optional

Whether to launch 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 is False. 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 a script is launched within AEDT.

machinestr, optional

Machine name to connect the oDesktop session to. This works only in 2022 R2 and later. The remote server must be up and running with the command “ansysedt.exe -grpcsrv portnum”. If the machine is “localhost”, the server also starts if not present.

portint, optional

Port number on which to start the oDesktop communication on an already existing server. This parameter is ignored when a new server is created. It works only in 2022 R2 and later. The remote server must be up and running with the command “ansysedt.exe -grpcsrv portnum”.

aedt_process_idint, optional

Process ID for the instance of AEDT to point PyAEDT at. The default is None. This parameter is only used when new_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.

Examples

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

>>> from ansys.aedt.core import Q3d
>>> app = Q3d()

Methods

Q3d.activate_variable_optimization(name[, ...])

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

Q3d.activate_variable_sensitivity(name[, ...])

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

Q3d.activate_variable_statistical(name[, ...])

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

Q3d.activate_variable_tuning(name[, ...])

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

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

Q3d.add_from_toolkit(toolkit[, draw])

Add a new toolkit to the current application.

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

Q3d.add_stackup_3d()

Create a stackup 3D object.

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

Q3d.analyze([setup, cores, tasks, gpus, ...])

Solve the active design.

Q3d.analyze_setup([name, cores, tasks, ...])

Analyze a design setup.

Q3d.archive_project([project_path, ...])

Archive the AEDT project and add a message.

Q3d.assign_material(assignment, material)

Assign a material to one or more objects.

Q3d.assign_net(assignment[, net_name, net_type])

Assign a net to a list of objects.

Q3d.assign_thin_conductor(assignment[, ...])

Assign a thin conductor to a sheet.

Q3d.assignmaterial_from_sherlock_files(...)

Assign material to objects in a design based on a CSV file obtained from Sherlock.

Q3d.auto_identify_nets()

Identify nets automatically.

Q3d.autosave_disable()

Disable autosave in AEDT.

Q3d.autosave_enable()

Enable autosave in AEDT.

Q3d.change_automatically_use_causal_materials([...])

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

Q3d.change_design_settings(settings)

Set Design Settings.

Q3d.change_material_override([material_override])

Enable or disable the material override in the project.

Q3d.change_property(aedt_object, tab_name, ...)

Change a property.

Q3d.change_validation_settings([...])

Update the validation design settings.

Q3d.check_beta_option_enabled(beta_option)

Check if a beta option is enabled.

Q3d.check_if_project_is_loaded(input_file)

Check if a project path is already loaded in active Desktop.

Q3d.clean_proj_folder([directory, name])

Delete a project folder.

Q3d.cleanup_solution([variations, ...])

Delete a set of Solution Variations or part of them.

Q3d.close_desktop()

Close AEDT and release it.

Q3d.close_project([name, save])

Close an AEDT project.

Q3d.copy_design_from(project, design[, ...])

Copy a design from a project into the active project.

Q3d.copy_project(destination, name)

Copy the project to another destination.

Q3d.copy_solid_bodies_from(design[, ...])

Copy a list of objects and user defined models from one design to the active design.

Q3d.create_dataset(name, x, y[, z, v, ...])

Create a dataset.

Q3d.create_dataset1d_design(name, x, y[, ...])

Create a design dataset.

Q3d.create_dataset1d_project(name, x, y[, ...])

Create a project dataset.

Q3d.create_dataset3d(name, x, y[, z, v, ...])

Create a 3D dataset.

Q3d.create_new_project(name)

Create a project within AEDT.

Q3d.create_output_variable(variable, expression)

Create or modify an output variable.

Q3d.create_setup([name])

Create an analysis setup for Q3D Extractor.

Q3d.dataset_exists(name[, is_project_dataset])

Check if a dataset exists.

Q3d.deactivate_variable_optimization(name)

Deactivate the optimization analysis for a variable.

Q3d.deactivate_variable_sensitivity(name)

Deactivate the sensitivity analysis for a variable.

Q3d.deactivate_variable_statistical(name)

Deactivate the statistical analysis for a variable.

Q3d.deactivate_variable_tuning(name)

Deactivate the tuning analysis for a variable.

Q3d.delete_all_nets()

Delete all nets in the design.

Q3d.delete_design([name, fallback_design])

Delete a design from the current project.

Q3d.delete_project(name)

Delete a project.

Q3d.delete_separator(name)

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

Q3d.delete_setup(name)

Delete a setup.

Q3d.delete_unused_variables()

Delete design and project unused variables.

Q3d.delete_variable(name)

Delete a variable.

Q3d.design_variation([variation])

Generate a string to specify a desired variation.

Q3d.duplicate_design(name[, ...])

Copy a design to a new name.

Q3d.edit_notes(text)

Edit notes.

Q3d.edit_setup(name, properties)

Modify a setup.

Q3d.edit_sources([cg, acrl, dcrl])

Set up the source loaded for Q3D or Q2D in multiple sources simultaneously.

Q3d.evaluate_expression(expression)

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

Q3d.export_3d_model([file_name, file_path, ...])

Export the 3D model.

Q3d.export_convergence(setup[, variations, ...])

Export a solution convergence to a file.

Q3d.export_design_preview_to_jpg(output_file)

Export design preview image to a JPG file.

Q3d.export_equivalent_circuit(output_file[, ...])

Export matrix data.

Q3d.export_matrix_data(file_name[, ...])

Export matrix data.

Q3d.export_mesh_stats(setup[, variations, ...])

Export mesh statistics to a file.

Q3d.export_parametric_results(sweep, output_file)

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

Q3d.export_profile(setup[, variation, ...])

Export a solution profile to a PROF file.

Q3d.export_results([analyze, export_folder, ...])

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

Q3d.export_rl_matrix(matrix_name, output_file)

Export R/L matrix after solving.

Q3d.export_variables_to_csv(output_file[, ...])

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

Q3d.flatten_3d_components([components, ...])

Flatten one or multiple 3d components in the actual layout.

Q3d.generate_temp_project_directory(name)

Generate a unique directory string to save a project to.

Q3d.generate_unique_setup_name([name])

Generate a new setup with a unique name.

Q3d.get_all_conductors_names()

Retrieve all conductors in the active design.

Q3d.get_all_dielectrics_names()

Retrieve all dielectrics in the active design.

Q3d.get_all_source_modes()

Retrieve all source modes.

Q3d.get_all_sources()

Get all setup sources.

Q3d.get_components3d_vars(component_name)

Read the A3DCOMP file and check for variables.

Q3d.get_dxf_layers(file_path)

Read a DXF file and return all layer names.

Q3d.get_evaluated_value(name[, units])

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

Q3d.get_module(module_name)

Aedt Module object.

Q3d.get_monitor_data()

Check and get monitor data of an existing analysis.

Q3d.get_mutual_coupling(source1, sink1, ...)

Get mutual coupling between two terminals.

Q3d.get_nominal_variation([with_values])

Retrieve the nominal variation.

Q3d.get_object_material_properties([...])

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

Q3d.get_oo_name(aedt_object[, object_name])

Return the object-oriented AEDT property names.

Q3d.get_oo_object(aedt_object, object_name)

Return the Object Oriented AEDT Object.

Q3d.get_oo_properties(aedt_object, object_name)

Return the Object Oriented AEDT Object Properties.

Q3d.get_oo_property_value(aedt_object, ...)

Return the Object Oriented AEDT Object Properties.

Q3d.get_output_variable(variable[, solution])

Retrieve the value of the output variable.

Q3d.get_profile([name])

Get profile information.

Q3d.get_property_value(assignment, property_name)

Retrieve a property value.

Q3d.get_registry_key_int(name)

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

Q3d.get_registry_key_string(name)

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

Q3d.get_setup(name)

Get the setup from the current design.

Q3d.get_setups()

Retrieve setups.

Q3d.get_sweeps(name)

Retrieve all sweeps for a setup.

Q3d.get_traces_for_plot([get_self_terms, ...])

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

Q3d.hidden_variable(name[, value])

Set the variable to a hidden or unhidden variable.

Q3d.identify_touching_conductors([assignment])

Identify all touching components and group in a dictionary.

Q3d.import_3d_cad(input_file[, healing, ...])

Import a CAD model.

Q3d.import_dataset1d(input_file[, name, ...])

Import a 1D dataset.

Q3d.import_dataset3d(input_file[, name, ...])

Import a 3D dataset.

Q3d.import_dxf(file_path, layers[, ...])

Import a DXF file.

Q3d.import_gds_3d(input_file, mapping_layers)

Import a GDSII file.

Q3d.insert_design([name, solution_type])

Add a design of a specified type.

Q3d.insert_reduced_matrix(operation_name[, ...])

Insert a new reduced matrix.

Q3d.list_of_variations([setup, sweep])

Retrieve a list of active variations for input setup.

Q3d.load_project(file_name[, design, ...])

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

Q3d.net_sinks(net_name)

Check if a net has sinks and return a list of sink names.

Q3d.net_sources(net_name)

Check if a net has sources and return a list of source names.

Q3d.number_with_units(value[, units])

Convert a number to a string with units.

Q3d.objects_from_nets(assignment[, materials])

Find the objects that belong to one or more nets.

Q3d.plot([assignment, show, output_file, ...])

Plot the model or a subset of objects.

Q3d.read_design_data()

Read back the design data as a dictionary.

Q3d.read_only_variable(name[, value])

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

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

Release AEDT.

Q3d.remove_all_unused_definitions()

Remove all unused definitions in the project.

Q3d.rename_design(name[, save])

Rename the active design.

Q3d.save_project([file_name, overwrite, ...])

Save the project and add a message.

Q3d.set_active_design(name)

Change the active design to another design.

Q3d.set_active_dso_config_name([...])

Change a specific registry key to a new value.

Q3d.set_license_type([license_type])

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

Q3d.set_material_thresholds([...])

Set material threshold.

Q3d.set_oo_property_value(aedt_object, ...)

Change the property value of the object-oriented AEDT object.

Q3d.set_registry_from_file(registry_file[, ...])

Apply desktop registry settings from an ACT file.

Q3d.set_registry_key(name, value)

Change a specific registry key to a new value.

Q3d.set_source_context(sources[, ...])

Set the source context.

Q3d.set_temporary_directory(path)

Set temporary directory path.

Q3d.sink([assignment, direction, name, ...])

Generate a sink on a face of an object or a group of faces or face ids.

Q3d.solve_in_batch([file_name, machine, ...])

Analyze a design setup in batch mode.

Q3d.source([assignment, direction, name, ...])

Generate a source on a face of an object or a group of faces or face ids.

Q3d.sources([matrix_index, is_gc_sources])

List of matrix sources.

Q3d.stop_simulations([clean_stop])

Check if there are simulation running and stops them.

Q3d.submit_job(cluster_name[, ...])

Submit a job to be solved on a cluster.

Q3d.validate_simple([log_file])

Validate a design.

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

Q3d.Position

Position of the object.

Q3d.SimulationSetupTypes

Simulation setup types.

Q3d.SolutionTypes

Solution types.

Q3d.active_setup

Get or Set the name of the active setup.

Q3d.aedt_version_id

AEDT version.

Q3d.are_there_simulations_running

Check if there are simulation running.

Q3d.available_variations

Available variation object.

Q3d.boundaries

Design boundaries and excitations.

Q3d.boundaries_by_type

Design boundaries by type.

Q3d.components3d

3D components.

Q3d.configurations

Property to import and export configuration files.

Q3d.default_solution_type

Default solution type.

Q3d.design_datasets

Dictionary of Design Datasets.

Q3d.design_file

Design file.

Q3d.design_list

Design list.

Q3d.design_name

Design name.

Q3d.design_properties

Design properties.

Q3d.design_type

Design type.

Q3d.desktop_class

Desktop class.

Q3d.desktop_install_dir

AEDT installation directory.

Q3d.excitation_objects

Get all excitation.

Q3d.excitations

Get all excitation names.

Q3d.excitations_by_type

Design excitations by type.

Q3d.existing_analysis_setups

Existing analysis setups.

Q3d.existing_analysis_sweeps

Existing analysis sweeps.

Q3d.info

Dictionary of the PyAEDT session information.

Q3d.layouteditor

Return the Circuit Layout Editor.

Q3d.library_list

Library list.

Q3d.lock_file

Lock file.

Q3d.logger

Logger for the design.

Q3d.materials

Materials in the project.

Q3d.mesh

Mesh.

Q3d.modeler

Modeler.

Q3d.native_component_names

Native component names.

Q3d.native_components

Native Component dictionary.

Q3d.nets

Nets in a Q3D project.

Q3d.nominal_adaptive

Nominal adaptive sweep.

Q3d.nominal_sweep

Nominal sweep.

Q3d.o_component_manager

Component manager object.

Q3d.o_maxwell_parameters

AEDT Maxwell Parameter Setup Object.

Q3d.o_model_manager

Model manager object.

Q3d.o_symbol_manager

Aedt Symbol Manager.

Q3d.oanalysis

Analysis AEDT Module.

Q3d.oboundary

Boundary Object.

Q3d.odefinition_manager

Definition Manager Module.

Q3d.odesign

Design.

Q3d.odesktop

AEDT instance containing all projects and designs.

Q3d.oeditor

Oeditor Module.

Q3d.oexcitation

Solution Module.

Q3d.ofieldsreporter

Fields reporter.

Q3d.oimport_export

Import/Export Manager Module.

Q3d.omaterial_manager

Material Manager Module.

Q3d.omatrix

Matrix Object.

Q3d.omeshmodule

Icepak Mesh Module.

Q3d.omodelsetup

AEDT Model Setup Object.

Q3d.omonitor

AEDT Monitor Object.

Q3d.ooptimetrics

AEDT Optimetrics Module.

Q3d.ooutput_variable

AEDT Output Variable Module.

Q3d.opadstackmanager

AEDT oPadstackManager.

Q3d.oproject

Project property.

Q3d.optimizations

Optimizations in the project.

Q3d.oradfield

AEDT Radiation Field Object.

Q3d.oreportsetup

Report setup.

Q3d.osolution

Solution Module.

Q3d.output_variables

List of output variables.

Q3d.parametrics

Setups in the project.

Q3d.personallib

PersonalLib directory.

Q3d.ports

Design excitations.

Q3d.post

PostProcessor.

Q3d.project_datasets

Dictionary of project datasets.

Q3d.project_file

Project name and path.

Q3d.project_list

Project list.

Q3d.project_name

Project name.

Q3d.project_path

Project path.

Q3d.project_properties

Project properties.

Q3d.project_time_stamp

Return Project time stamp.

Q3d.project_timestamp_changed

Return a bool if time stamp changed or not.

Q3d.pyaedt_dir

PyAEDT directory.

Q3d.results_directory

Results directory.

Q3d.settings

Settings of the current Python/Pyaedt session.

Q3d.setup_names

Setup names.

Q3d.setups

Setups in the project.

Q3d.solution_type

Solution type.

Q3d.src_dir

Source directory for Python.

Q3d.syslib

SysLib directory.

Q3d.temp_directory

Path to the temporary directory.

Q3d.toolkit_directory

Path to the toolkit directory.

Q3d.userlib

UserLib directory.

Q3d.valid_design

Valid design.

Q3d.variable_manager

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

Q3d.working_directory

Path to the working directory.