pyaedt.Hfss3dLayout#
- class pyaedt.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:
- projectname
str
,optional
Name of the project to select or the full path to the project or AEDTZ archive to open or the path to 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.- designname
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_name
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.- specified_version
str
,optional
Version of AEDT to use. The default is
None
, in which case the active version or latest installed version is used.- 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 isTrue
.- close_on_exitbool,
optional
Whether to release AEDT on exit.
- student_versionbool,
optional
Whether to open the AEDT student version. The default is
False
.- machine
str
,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.
- port
int
,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_id
int
,optional
Only used when
new_desktop_session = False
, specifies by process ID which instance of Electronics Desktop to point PyAEDT at.
- projectname
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 namedprojectname
. If this project does not exist, create one with this name.>>> aedtapp = Hfss3dLayout(projectname)
Create an
Hfss3dLayout
object and link to a design nameddesignname
in a project namedprojectname
.>>> aedtapp = Hfss3dLayout(projectname,designame)
Create an
Hfss3dLayout
object and open the specified project.>>> aedtapp = Hfss3dLayout("myfile.aedt")
Create an AEDT 2021 R1 object and then create a
Hfss3dLayout
object and open the specified project.>>> aedtapp = Hfss3dLayout(specified_version="2021.2", projectname="myfile.aedt")
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.
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_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.
Solve the nominal design.
Analyze all setups in a design.
Revert the solution to the initial mesh and re-run the solve.
Hfss3dLayout.analyze_nominal
([num_cores, ...])Solve the nominal design.
Hfss3dLayout.analyze_setup
(name[, ...])Analyze a design setup.
Hfss3dLayout.archive_project
([project_file, ...])Archive the AEDT project and add a message.
Disable autosave in AEDT.
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 Design Settings.
Enable or disable the material override in the project.
Update the validation design settings.
Check if a beta option is enabled.
Hfss3dLayout.clean_proj_folder
([directory, name])Delete a project folder.
Close AEDT and release it.
Hfss3dLayout.close_project
([name, saveproject])Close an AEDT project.
Copy a design from a project into the active design.
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_edge_port
(...[, ...])Create an edge port.
Hfss3dLayout.create_frequency_sweep
(...[, ...])Create a frequency sweep.
Create a sweep with the specified number of points.
Hfss3dLayout.create_linear_step_sweep
(...[, ...])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_pin_port
(name[, xpos, ...])Create a pin port.
Hfss3dLayout.create_scattering
([plot_name, ...])Create a scattering report.
Hfss3dLayout.create_setup
([setupname, ...])Create a setup.
Create a sweep with a single frequency point.
Create a wave port.
Hfss3dLayout.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.
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
(setupname)Delete a setup.
Hfss3dLayout.delete_variable
(sVarName)Delete a variable.
Hfss3dLayout.design_variation
([variation_string])Generate a string to specify a desired variation.
Hfss3dLayout.duplicate_design
(label[, ...])Copy a design to a new name.
Edit cosimulation options.
Hfss3dLayout.edit_setup
(setupname, ...)Modify a setup.
Enable/Disable the rigid flex of a board with bending if available.
Evaluate a valid string expression and return the numerical value in SI units.
Hfss3dLayout.export_3d_model
([file_name])Export the Ecad model to an ACIS 3D File.
Hfss3dLayout.export_convergence
(setup_name)Export a solution convergence to a file.
Export design preview image to a JPG file.
Hfss3dLayout.export_mesh_stats
(setup_name[, ...])Export mesh statistics to a file.
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 sNp, profile, and convergence.
Export a Touchstone file.
Hfss3dLayout.export_variables_to_csv
(filename)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 an unique name.
Retrieve a list of all insertion losses from two lists of excitations (driver and receiver).
Retrieve a list of all return losses for a list of excitations.
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, ...])Retrieve a list of all the far end XTalks from two lists of exctitations (driver and receiver).
Hfss3dLayout.get_module
(module_name)Aedt Module object.
Hfss3dLayout.get_next_xtalk_list
([trlist, ...])Retrieve a list of all the near end XTalks from a list of excitations (driver and receiver).
Retrieve the nominal variation.
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 Properties 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.
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.
Get the value for the AEDT registry key if one exists.
Hfss3dLayout.get_setup
(setupname[, setuptype])Retrieve a setup.
Retrieve setups.
Hfss3dLayout.get_sweeps
(name)Retrieve all sweeps for a setup.
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 AWR Microwave Office file into HFSS 3D Layout and assign the stackup from an XML file if present.
Hfss3dLayout.import_brd
(input_file[, ...])Import brd 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 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 GDS file into HFSS 3D Layout and assign the stackup from an XML file if present.
Hfss3dLayout.import_gerber
(gerber_path[, ...])Import Gerber zip into HFSS 3D Layout and assign the stackup from an XML file if present.
Hfss3dLayout.import_ipc2581
(input_file[, ...])Import IPC2581 file into HFSS 3D Layout and assign the stackup from an XML file if present.
Hfss3dLayout.import_odb
(input_file[, ...])Import 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.
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.
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.rename_design
(new_name)Rename the active design.
Hfss3dLayout.save_diff_pairs_to_file
(filename)Save differtential pairs definition to file.
Hfss3dLayout.save_project
([project_file, ...])Save the project and add a message.
Change the active design to another design.
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_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.solve_in_batch
([filename, ...])Analyze a design setup in batch mode.
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[, units])Combine a number and a string containing the unit in a single string e.g.
Attributes
AEDT version.
Analysis setup.
Available variation object.
Design boundaries and excitations.
Default solution type.
Dictionary of Design Datasets.
Design list.
Design name.
Design properties.
Design type.
AEDT installation directory.
Excitation names.
Existing analysis setups in the design.
Existing analysis sweeps.
List of all S parameters for a list of excitations.
Excitation names.
Return the Circuit Layout Editor.
Library list.
Lock file.
Logger for the design.
Materials in the project.
Mesh.
Modeler object.
Native Component dictionary.
Nominal adaptive sweep.
Nominal sweep.
Component manager object.
AEDT Maxwell Parameter Setup Object.
Model manager object.
Aedt Simbol 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.
AEDT Radiation Field Object.
Report setup.
Solution Module.
List of output variables.
PersonalLib directory.
Port list.
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.
Setup names.
Solution type.
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.