Hfss3dLayout#

class pyaedt.hfss3dlayout.Hfss3dLayout(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 HFSS 3D Layout application interface.

This class inherits all objects that belong to HFSS 3D Layout, including EDB API queries.

Parameters:
projectnamestr, optional

Name of the project to select or the full path to the project or AEDTZ archive to open or the path to the aedb folder or edb.def file. 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, int, float, optional

Version of AEDT to use. The default is None, in which case the active version or latest installed version is used. 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_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 False.

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.

machinestr, optional

Machine name to connect the oDesktop session to. This works only in 2022 R2 or 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 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_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_session = False.

Examples

Create an Hfss3dLayout object and connect to an existing HFSS design or create a new HFSS design if one does not exist.

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

Create an Hfss3dLayout object and link to a project named projectname. If this project does not exist, create one with this name.

>>> aedtapp = Hfss3dLayout(projectname)

Create an Hfss3dLayout object and link to a design named designname in a project named projectname.

>>> aedtapp = Hfss3dLayout(projectname,designame)

Create an Hfss3dLayout object and open the specified project.

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

Create an AEDT 2023 R1 object and then create a Hfss3dLayout object and open the specified project.

>>> aedtapp = Hfss3dLayout(specified_version="2023.1", projectname="myfile.aedt")

Create an instance of Hfss3dLayout from an Edb

>>> import pyaedt
>>> edb_path = "/path/to/edbfile.aedb"
>>> edb = pyaedt.Edb(edb_path, edbversion=231)
>>> edb.stackup.import_stackup("stackup.xml")  # Import stackup. Manipulate edb, ...
>>> edb.save_edb()
>>> edb.close_edb()
>>> aedtapp = pyaedt.Hfss3dLayout(specified_version=231, projectname=edb_path)

Methods

Hfss3dLayout.activate_variable_optimization(...)

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

Hfss3dLayout.activate_variable_sensitivity(...)

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

Hfss3dLayout.activate_variable_statistical(...)

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

Hfss3dLayout.activate_variable_tuning(...[, ...])

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

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

Hfss3dLayout.add_from_toolkit(toolkit_object)

Add a new toolkit to the current application.

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

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

Hfss3dLayout.analyze([setup_name, ...])

Solve the active design.

Hfss3dLayout.analyze_setup([name, ...])

Analyze a design setup.

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

Archive the AEDT project and add a message.

Hfss3dLayout.autosave_disable()

Disable autosave in AEDT.

Hfss3dLayout.autosave_enable()

Enable autosave in AEDT.

Hfss3dLayout.change_automatically_use_causal_materials([...])

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

Hfss3dLayout.change_design_settings(settings)

Set HFSS 3D Layout Design Settings.

Hfss3dLayout.change_material_override([...])

Enable or disable the material override in the project.

Hfss3dLayout.change_options([color_by_net])

Change options for an existing layout.

Hfss3dLayout.change_property(aedt_object, ...)

Change a property.

Hfss3dLayout.change_validation_settings([...])

Update the validation design settings.

Hfss3dLayout.check_beta_option_enabled(...)

Check if a beta option is enabled.

Hfss3dLayout.check_if_project_is_loaded(...)

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

Hfss3dLayout.clean_proj_folder([directory, name])

Delete a project folder.

Hfss3dLayout.close_desktop()

Close AEDT and release it.

Hfss3dLayout.close_project([name, save_project])

Close an AEDT project.

Hfss3dLayout.copy_design_from(...[, ...])

Copy a design from a project into the active project.

Hfss3dLayout.copy_project(path, dest)

Copy the project to another destination.

Hfss3dLayout.create_coax_port(vianame[, ...])

Create a new coax port.

Hfss3dLayout.create_dataset(dsname, xlist, ylist)

Create a dataset.

Hfss3dLayout.create_dataset1d_design(dsname, ...)

Create a design dataset.

Hfss3dLayout.create_dataset1d_project(...[, ...])

Create a project dataset.

Hfss3dLayout.create_dataset3d(dsname, xlist, ...)

Create a 3D dataset.

Hfss3dLayout.create_differential_port(...[, ...])

Create a differential port.

Hfss3dLayout.create_edge_port(...[, ...])

Create an edge port.

Hfss3dLayout.create_linear_count_sweep(...)

Create a sweep with the specified number of points.

Hfss3dLayout.create_linear_step_sweep(setup, ...)

Create a sweep with the specified frequency step.

Hfss3dLayout.create_new_project(proj_name)

Create a project within AEDT.

Hfss3dLayout.create_output_variable(...[, ...])

Create or modify an output variable.

Hfss3dLayout.create_pec_on_component_by_nets(...)

Create a PEC connection on a component for a list of nets.

Hfss3dLayout.create_pin_port(name[, xpos, ...])

Create a pin port.

Hfss3dLayout.create_ports_on_component_by_nets(...)

Create the ports on a component for a list of nets.

Hfss3dLayout.create_scattering([plot_name, ...])

Create a scattering report.

Hfss3dLayout.create_setup([name, setup_type])

Create a setup.

Hfss3dLayout.create_single_point_sweep(...)

Create a sweep with a single frequency point.

Hfss3dLayout.create_wave_port(...[, ...])

Create a single-ended wave port.

Hfss3dLayout.create_wave_port_from_two_conductors([...])

Create a wave port.

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

Check if a dataset exists.

Hfss3dLayout.deactivate_variable_optimization(...)

Deactivate the optimization analysis for a variable.

Hfss3dLayout.deactivate_variable_sensitivity(...)

Deactivate the sensitivity analysis for a variable.

Hfss3dLayout.deactivate_variable_statistical(...)

Deactivate the statistical analysis for a variable.

Hfss3dLayout.deactivate_variable_tuning(...)

Deactivate the tuning analysis for a variable.

Hfss3dLayout.delete_design([name, ...])

Delete a design from the current project.

Hfss3dLayout.delete_port(portname)

Delete a port.

Hfss3dLayout.delete_project(project_name)

Delete a project.

Hfss3dLayout.delete_separator(separator_name)

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

Hfss3dLayout.delete_setup(name)

Delete a setup.

Hfss3dLayout.delete_unused_variables()

Delete design and project unused variables.

Hfss3dLayout.delete_variable(sVarName)

Delete a variable.

Hfss3dLayout.design_settings()

Get design settings for the current AEDT app.

Hfss3dLayout.design_variation([variation_string])

Generate a string to specify a desired variation.

Hfss3dLayout.dissolve_component(component_name)

Dissolve a component and remove it from 3D Layout.

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

Copy a design to a new name.

Hfss3dLayout.edit_cosim_options([...])

Edit cosimulation options.

Hfss3dLayout.edit_hfss_extents([...])

Edit HFSS 3D Layout extents.

Hfss3dLayout.edit_setup(name, properties)

Modify a setup.

Hfss3dLayout.edit_source_from_file(...[, ...])

Edit a source from file data.

Hfss3dLayout.enable_rigid_flex()

Turn on or off the rigid flex of a board with bending if available.

Hfss3dLayout.evaluate_expression(...)

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

Hfss3dLayout.export_3d_model([file_name])

Export the Ecad model to a 3D file.

Hfss3dLayout.export_convergence(setup_name)

Export a solution convergence to a file.

Hfss3dLayout.export_design_preview_to_jpg(...)

Export design preview image to a JPG file.

Hfss3dLayout.export_mesh_stats(setup[, ...])

Export mesh statistics to a file.

Hfss3dLayout.export_parametric_results(...)

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

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

Export a solution profile to a PROF file.

Hfss3dLayout.export_results([analyze, ...])

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

Hfss3dLayout.export_rl_matrix(matrix_name, ...)

Export R/L matrix after solving.

Hfss3dLayout.export_touchstone([setup_name, ...])

Export a Touchstone file.

Hfss3dLayout.export_variables_to_csv(filename)

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

Hfss3dLayout.generate_temp_project_directory(...)

Generate a unique directory string to save a project to.

Hfss3dLayout.generate_unique_setup_name([...])

Generate a new setup with an unique name.

Hfss3dLayout.get_all_insertion_loss_list([...])

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

Hfss3dLayout.get_all_return_loss_list([...])

Get a list of all return losses for a list of excitations.

Hfss3dLayout.get_dcir_element_data_current_source(setup)

Get dcir element data current source.

Hfss3dLayout.get_dcir_element_data_loop_resistance(setup)

Get dcir element data loop resistance.

Hfss3dLayout.get_dcir_element_data_via(setup)

Get dcir element data via.

Hfss3dLayout.get_dcir_solution_data(setup[, ...])

Retrieve dcir solution data.

Hfss3dLayout.get_differential_pairs()

Get the list defined differential pairs.

Hfss3dLayout.get_evaluated_value(variable_name)

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

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

Geta list of all the far end XTalks from two lists of excitations (driver and receiver).

Hfss3dLayout.get_model_from_mesh_results([...])

Get the path for the parasolid file in the result folder.

Hfss3dLayout.get_module(module_name)

Aedt Module object.

Hfss3dLayout.get_monitor_data()

Check and get monitor data of an existing analysis.

Hfss3dLayout.get_next_xtalk_list([trlist, ...])

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

Hfss3dLayout.get_nominal_variation([with_values])

Retrieve the nominal variation.

Hfss3dLayout.get_object_material_properties([...])

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

Hfss3dLayout.get_oo_name(aedt_object[, ...])

Return the object-oriented AEDT property names.

Hfss3dLayout.get_oo_object(aedt_object, ...)

Return the Object Oriented AEDT Object.

Hfss3dLayout.get_oo_properties(aedt_object, ...)

Return the Object Oriented AEDT Object Properties.

Hfss3dLayout.get_oo_property_value(...)

Return the Object Oriented AEDT Object Properties.

Hfss3dLayout.get_output_variable(variable[, ...])

Retrieve the value of the output variable.

Hfss3dLayout.get_registry_key_int(key_full_name)

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

Hfss3dLayout.get_registry_key_string(...)

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

Hfss3dLayout.get_setup(name[, setup_type])

Retrieve a setup.

Hfss3dLayout.get_setups()

Retrieve setups.

Hfss3dLayout.get_sweeps(name)

Retrieve all sweeps for a setup.

Hfss3dLayout.get_touchstone_data([...])

Return a Touchstone data plot.

Hfss3dLayout.get_traces_for_plot([...])

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

Hfss3dLayout.hidden_variable(variable_name)

Set the variable to a hidden or unhidden variable.

Hfss3dLayout.import_awr(input_file[, ...])

Import an AWR Microwave Office file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_brd(input_file[, ...])

Import a board file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_dataset1d(filename[, ...])

Import a 1D dataset.

Hfss3dLayout.import_dataset3d(filename[, ...])

Import a 3D dataset.

Hfss3dLayout.import_dxf(dxf_path[, ...])

Import a DXF file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_edb(edb_full_path)

Import EDB.

Hfss3dLayout.import_gds(gds_path[, ...])

Import a GDS file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_gerber(gerber_path[, ...])

Import a Gerber zip file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_ipc2581(input_file[, ...])

Import an IPC2581 file into HFSS 3D Layout and assign the stackup from an XML file if present.

Hfss3dLayout.import_odb(input_file[, ...])

Import an ODB++ file into HFSS 3D Layout and assign the stackup from an XML file if present.

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

Add a design of a specified type.

Hfss3dLayout.list_of_variations([...])

Retrieve a list of active variations for input setup.

Hfss3dLayout.load_diff_pairs_from_file(filename)

Load differtential pairs definition from file.

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

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

Hfss3dLayout.number_with_units(value[, units])

Convert a number to a string with units.

Hfss3dLayout.read_design_data()

Read back the design data as a dictionary.

Hfss3dLayout.read_only_variable(variable_name)

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

Hfss3dLayout.release_desktop([...])

Release AEDT.

Hfss3dLayout.remove_all_unused_definitions()

Remove all unused definitions in the project.

Hfss3dLayout.rename_design(new_name[, ...])

Rename the active design.

Hfss3dLayout.save_diff_pairs_to_file(filename)

Save differtential pairs definition to a file.

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

Save the project and add a message.

Hfss3dLayout.set_active_design(name)

Change the active design to another design.

Hfss3dLayout.set_active_dso_config_name([...])

Change a specific registry key to a new value.

Hfss3dLayout.set_differential_pair(...[, ...])

Add a differential pair definition.

Hfss3dLayout.set_export_touchstone(activate)

Export the Touchstone file automatically if the simulation is successful.

Hfss3dLayout.set_license_type([license_type])

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

Hfss3dLayout.set_meshing_settings([...])

Define the settings of the mesh.

Hfss3dLayout.set_registry_from_file(...[, ...])

Apply desktop registry settings from an ACT file.

Hfss3dLayout.set_registry_key(key_full_name, ...)

Change a specific registry key to a new value.

Hfss3dLayout.set_temporary_directory(...)

Set temporary directory path.

Hfss3dLayout.show_extent([show])

Show or hide extent in a HFSS3dLayout design.

Hfss3dLayout.solve_in_batch([filename, ...])

Analyze a design setup in batch mode.

Hfss3dLayout.stop_simulations([clean_stop])

Check if there are simulation running and stops them.

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

Submit a job to be solved on a cluster.

Hfss3dLayout.validate_full_design([name, ...])

Validate the design based on the expected value and save the information in the log file.

Hfss3dLayout.validate_simple([logfile])

Validate a design.

Hfss3dLayout.value_with_units(value[, ...])

Combine a number and a string containing the modeler length unit in a single string e.g. "1.2mm".

Attributes

Hfss3dLayout.Position

Position of the object.

Hfss3dLayout.SimulationSetupTypes

Simulation setup types.

Hfss3dLayout.SolutionTypes

Solution types.

Hfss3dLayout.active_setup

Get or Set the name of the active setup.

Hfss3dLayout.aedt_version_id

AEDT version.

Hfss3dLayout.are_there_simulations_running

Check if there are simulation running.

Hfss3dLayout.available_variations

Available variation object.

Hfss3dLayout.boundaries

Design boundaries and excitations.

Hfss3dLayout.boundaries_by_type

Design boundaries by type.

Hfss3dLayout.configurations

Property to import and export configuration files.

Hfss3dLayout.default_solution_type

Default solution type.

Hfss3dLayout.design_datasets

Dictionary of Design Datasets.

Hfss3dLayout.design_list

Design list.

Hfss3dLayout.design_name

Design name.

Hfss3dLayout.design_properties

Design properties.

Hfss3dLayout.design_type

Design type.

Hfss3dLayout.desktop_class

Desktop class.

Hfss3dLayout.desktop_install_dir

AEDT installation directory.

Hfss3dLayout.excitation_objects

Get all excitation.

Hfss3dLayout.excitations

Excitation names.

Hfss3dLayout.excitations_by_type

Design excitations by type.

Hfss3dLayout.existing_analysis_setups

Existing analysis setups in the design.

Hfss3dLayout.existing_analysis_sweeps

Existing analysis sweeps.

Hfss3dLayout.get_all_sparameter_list

List of all S parameters for a list of excitations.

Hfss3dLayout.info

Dictionary of the PyAEDT session information.

Hfss3dLayout.layouteditor

Return the Circuit Layout Editor.

Hfss3dLayout.library_list

Library list.

Hfss3dLayout.lock_file

Lock file.

Hfss3dLayout.logger

Logger for the design.

Hfss3dLayout.materials

Materials in the project.

Hfss3dLayout.mesh

Mesh.

Hfss3dLayout.modeler

Modeler object.

Hfss3dLayout.native_components

Native Component dictionary.

Hfss3dLayout.nominal_adaptive

Nominal adaptive sweep.

Hfss3dLayout.nominal_sweep

Nominal sweep.

Hfss3dLayout.o_component_manager

Component manager object.

Hfss3dLayout.o_maxwell_parameters

AEDT Maxwell Parameter Setup Object.

Hfss3dLayout.o_model_manager

Model manager object.

Hfss3dLayout.o_symbol_manager

Aedt Symbol Manager.

Hfss3dLayout.oanalysis

Analysis AEDT Module.

Hfss3dLayout.oboundary

Boundary Object.

Hfss3dLayout.odefinition_manager

Definition Manager Module.

Hfss3dLayout.odesign

Design.

Hfss3dLayout.odesktop

AEDT instance containing all projects and designs.

Hfss3dLayout.oeditor

Oeditor Module.

Hfss3dLayout.oexcitation

Solution Module.

Hfss3dLayout.ofieldsreporter

Fields reporter.

Hfss3dLayout.oimport_export

Import/Export Manager Module.

Hfss3dLayout.omaterial_manager

Material Manager Module.

Hfss3dLayout.omatrix

Matrix Object.

Hfss3dLayout.omeshmodule

Icepak Mesh Module.

Hfss3dLayout.omodelsetup

AEDT Model Setup Object.

Hfss3dLayout.omonitor

AEDT Monitor Object.

Hfss3dLayout.ooptimetrics

AEDT Optimetrics Module.

Hfss3dLayout.ooutput_variable

AEDT Output Variable Module.

Hfss3dLayout.opadstackmanager

AEDT oPadstackManager.

Hfss3dLayout.oproject

Project property.

Hfss3dLayout.optimizations

Optimizations in the project.

Hfss3dLayout.oradfield

AEDT Radiation Field Object.

Hfss3dLayout.oreportsetup

Report setup.

Hfss3dLayout.osolution

Solution Module.

Hfss3dLayout.output_variables

List of output variables.

Hfss3dLayout.parametrics

Setups in the project.

Hfss3dLayout.personallib

PersonalLib directory.

Hfss3dLayout.port_list

Port list.

Hfss3dLayout.ports

Design excitations.

Hfss3dLayout.post

PostProcessor.

Hfss3dLayout.project_datasets

Dictionary of project datasets.

Hfss3dLayout.project_file

Project name and path.

Hfss3dLayout.project_list

Project list.

Hfss3dLayout.project_name

Project name.

Hfss3dLayout.project_path

Project path.

Hfss3dLayout.project_properties

Project properties.

Hfss3dLayout.project_time_stamp

Return Project time stamp.

Hfss3dLayout.project_timestamp_changed

Return a bool if time stamp changed or not.

Hfss3dLayout.pyaedt_dir

PyAEDT directory.

Hfss3dLayout.results_directory

Results directory.

Hfss3dLayout.settings

Settings of the current Python/Pyaedt session.

Hfss3dLayout.setup_names

Setup names.

Hfss3dLayout.setups

Setups in the project.

Hfss3dLayout.solution_type

Solution type.

Hfss3dLayout.src_dir

Source directory for Python.

Hfss3dLayout.syslib

SysLib directory.

Hfss3dLayout.temp_directory

Path to the temporary directory.

Hfss3dLayout.toolkit_directory

Path to the toolkit directory.

Hfss3dLayout.userlib

UserLib directory.

Hfss3dLayout.valid_design

Valid design.

Hfss3dLayout.variable_manager

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

Hfss3dLayout.working_directory

Path to the working directory.