QHFSSRenderer¶
- class QHFSSRenderer(design: QDesign, initiate=True, options: Dict = None)[source]¶
Subclass of QAnsysRenderer for running HFSS simulations.
- QAnsysRenderer Default Options:
Lj: ‘10nH’ – Lj has units of nanoHenries (nH)
Cj: 0 – Cj must be 0 for pyEPR analysis! Cj has units of femtofarads (fF)
_Rj: 0 – _Rj must be 0 for pyEPR analysis! _Rj has units of Ohms
max_mesh_length_jj: ‘7um’ – Maximum mesh length for Josephson junction elements
max_mesh_length_port: ‘7um’ – Maximum mesh length for Ports in Eigenmode Simulations
project_path: None – Default project path; if None –> get active
project_name: None – Default project name
design_name: None – Default design name
ansys_file_extension: ‘.aedt’ – Ansys file extension for 2016 version and newer
x_buffer_width_mm: 0.2 – Buffer between max/min x and edge of ground plane, in mm
y_buffer_width_mm: 0.2 – Buffer between max/min y and edge of ground plane, in mm
Create a QRenderer for HFSS simulations, subclassed from QAnsysRenderer.
- Parameters:
design (QDesign) – Use QGeometry within QDesign to obtain elements for Ansys.
initiate (bool, optional) – True to initiate the renderer. Defaults to True.
options (Dict, optional) – Used to override all options. Defaults to None.
Attributes
Name delimiter
Default options
Default setup.
Return a reference to the parent design object.
Element extensions dictionary
Element table data.
HFSS Options
Returns True if initialized, False otherwise.
Returns the logger.
The modeler from pyEPR HfssModeler.
Name
Options for the QRenderer.
pyEPR.ProjectInfo).
Methods
QHFSSRenderer.activate_ansys_design
(design_name)Select a design with the given name from the open project.
QHFSSRenderer.activate_ansys_setup
(setup_name)For active design, either get existing setup, make new setup with name, or make new setup with default name.
(deprecated) use activate_ansys_design()
(deprecated) use activate_ansys_setup()
(deprecated) use activate_ansys_design()
(deprecated) use activate_ansys_setup()
QHFSSRenderer.add_drivenmodal_design
(name[, ...])(deprecated) use new_ansys_design()
QHFSSRenderer.add_drivenmodal_setup
([name, ...])Create a solution setup in Ansys HFSS Driven Modal.
QHFSSRenderer.add_eigenmode_design
(name[, ...])(deprecated) use new_ansys_design()
QHFSSRenderer.add_eigenmode_setup
([name, ...])Create a solution setup in Ansys HFSS Eigenmode.
QHFSSRenderer.add_endcaps
([open_pins])Create endcaps (rectangular cutouts) for all pins in the list open_pins and add them to chip_subtract_dict.
Add mesh to all elements in self.assign_mesh.
QHFSSRenderer.add_message
(msg[, severity])Add message to Message Manager box in Ansys.
QHFSSRenderer.add_sweep
([setup_name, ...])Add a frequency sweep to a driven modal setup.
During init of renderer, this needs to happen.
QHFSSRenderer.analyze_setup
(setup_name)Run a specific solution setup in Ansys HFSS.
QHFSSRenderer.analyze_sweep
(sweep_name, ...)Analyze a single sweep within the setup.
QHFSSRenderer.auto_wirebonds
(table)Adds wirebonds to the Ansys model for path elements where; subtract = True and wire_bonds = True.
Warning message that appears when the Ansys renderer fails to locate a component's chip designation.
Warning message that appears when the Ansys renderer fails to locate a component's chip designation in DesignPlanar (or any child of QDesign).
Warning message that appears when a component's chip designation is not 'main'.
Remove all elements from Ansys Modeler.
QHFSSRenderer.clear_fields
(names)Delete field plots from modeler window in Ansys.
Alias of _close_renderer()
QHFSSRenderer.connect_ansys
([project_path, ...])If none of the optional parameters are provided: connects to the Ansys COM, then checks for, and grab if present, an active project, design, and design setup.
QHFSSRenderer.connect_ansys_design
([design_name])Used to switch between existing designs.
QHFSSRenderer.create_ports
(port_list)Add ports and their respective impedances in Ohms to designated pins in port_list.
Disconnect Ansys.
Returns class containing info on Hamiltonian parameters from HFSS simulation.
QHFSSRenderer.edit_drivenmodal_setup
(setup_args)User can pass key/values to edit the setup for active driven modal setup.
QHFSSRenderer.edit_eigenmode_setup
(setup_args)User can pass key/values to edit the setup for active eigenmode setup.
Returns all frequencies and quality factors vs a variation.
Computes the energy stored in the system pinfo must have a valid list of junctions and dissipatives to compute the energy stored in the system.
Reports in a markdown friendly table the hamiltonian results.
QHFSSRenderer.epr_run_analysis
([junctions, ...])Executes the EPR analysis pinfo must have a valid list of junctions and dissipatives to compute the energy stored in the system.
Core epr analysis method.
QHFSSRenderer.epr_start
([junctions, ...])Use to initialize the epr analysis package by first identifying which are the junctions, their electrical properties and their reference plane; then initialize the DistributedAnalysis package, which can execute microwave analysis on eigenmode results.
QHFSSRenderer.execute_design
(design_name, ...)It wraps the render_design() method to 1.
Returns the name of the Ansys Design Object
S = scattering matrix, Y = Admittance, Z= impedance.
Obtain a list of chips on which the selection of components, if valid, resides.
QHFSSRenderer.get_convergences
([variation])Get convergence for convergence_t, convergence_f, and text from GUI for solution data.
QHFSSRenderer.get_f_convergence
([variation, ...])Create a report inside HFSS to plot the converge of frequency and style it.
Determine the max/min x/y coordinates of the smallest rectangular, axis-aligned bounding box that will enclose a selection of components to render, given by self.qcomp_ids.
QHFSSRenderer.get_params
([param_name])Get one or more parameters (S, Y, or Z) as a function of frequency.
Returns an already loaded and instantiated renderer.
QHFSSRenderer.get_template_options
(design[, ...])Creates template options for the Metal QRenderer class required for the class to function, based on the design template; i.e., be created, made, and rendered.
Confirm the list doesn't have names of components repeated.
QHFSSRenderer.initialize_cap_extract
(**kwargs)Any task that needs to occur before running a simulation, such as creating a setup
QHFSSRenderer.initialize_drivenmodal
(sweep_setup)Any task that needs to occur before running a simulation, such as creating a setup
Any task that needs to occur before running a simulation, such as creating a setup
Load the renderer and register all its extensions.
Assign metallic property to all shapes in self.assign_perfE list.
QHFSSRenderer.new_ansys_design
(design_name, ...)Add an Ansys design with the given name to the Ansys project.
Creates a new empty project in Ansys.
QHFSSRenderer.new_ansys_setup
(name, ...)Determines the appropriate setup to be created based on the pinfo.design.solution_type.
QHFSSRenderer.open_ansys
([path, executable, ...])Alternative method to open an Ansys session that allows to specify
QHFSSRenderer.parse_value
(value)Same as design.parse_value.
(deprecated) Use clear_fields()
QHFSSRenderer.plot_ansys_fields
(*args, **kwargs)(deprecated) use plot_fields()
QHFSSRenderer.plot_convergences
([variation, fig])(deprecated) use EPRanalysis.plot_convergences()
QHFSSRenderer.plot_fields
(object_name[, ...])Plot fields in Ansys.
QHFSSRenderer.plot_params
([param_name])Plot one or more parameters (S, Y, or Z) as a function of frequency.
Populate cls.element_extensions which will be used to create columns for tables in QGeometry tables.
QHFSSRenderer.render_chip
(chip_name, ...)Render individual chips.
QHFSSRenderer.render_chips
([...])Render all chips containing components in self.qcomp_ids.
Abstract method.
QHFSSRenderer.render_components
(table_type)Render components by breaking them down into individual elements.
QHFSSRenderer.render_design
([selection, ...])Initiate rendering of components in design contained in selection, assuming they're valid.
QHFSSRenderer.render_element
(qgeom, is_junction)Render an individual shape whose properties are listed in a row of QGeometry table.
Render a Josephson junction depending on the solution type.
Render a path-type element.
Render a closed polygon.
Render a junction as an inductor with a bounding box given by xmin/xmax and ymin/ymax, a height z, and a horizontal or vertical axis.
QHFSSRenderer.render_junction_port
(qgeom, ...)Render a junction as a port with a bounding box given by xmin/xmax and ymin/ymax, a height z, and a horizontal or vertical axis.
QHFSSRenderer.render_tables
([skip_junction])Render components in design grouped by table type (path, poly, or junction).
QHFSSRenderer.save_screenshot
([path, show])Save the screenshot.
QHFSSRenderer.set_mode
(mode, setup_name)Set the eigenmode in pyEPR for a design with solution_type set to Eigenmode.
QHFSSRenderer.set_variables
(variables)Fixes the junction properties before setup.
QHFSSRenderer.start
([force])Call any initialization (single run) step required to setup the renderer for the first execution, such as connecting to some API or COM, or importing the correct material libraries, etc.
Any calls that one may want to make after a rendering is complete.
For each chip, subtract all "negative" shapes residing on its surface if any such shapes exist.
QHFSSRenderer.update_options
([...])If template options has not been set for this renderer, then gather all the default options for children and add to design.