QAnsysRenderer¶
- class QAnsysRenderer(design: QDesign, initiate=True, options: addict.addict.Dict = None)[source]¶
- Extends QRenderer to export designs to Ansys using pyEPR. The methods
which a user will need for Ansys export should be found within this class.
- 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
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
wb_threshold:’400um’ – the minimum distance between two vertices of a path for a wirebond to be added.
wb_offset:’0um’ – offset distance for wirebond placement (along the direction of the cpw)
wb_size: 3 – scalar which controls the width of the wirebond (wb_size * path[‘width’])
Create a QRenderer for Ansys.
- 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.
Returns True if initialized, False otherwise.
Returns the logger.
The modeler from pyEPR HfssModeler.
Name
Options for the QRenderer.
pyEPR.ProjectInfo).
Methods
QAnsysRenderer.activate_ansys_design
(design_name)Select a design with the given name from the open project.
QAnsysRenderer.activate_ansys_setup
(setup_name)For active design, either get existing setup, make new setup with name, or make new setup with default name.
QAnsysRenderer.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.
QAnsysRenderer.add_message
(msg[, severity])Add message to Message Manager box in Ansys.
During init of renderer, this needs to happen.
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.
QAnsysRenderer.clear_fields
(names)Delete field plots from modeler window in Ansys.
Alias of _close_renderer()
QAnsysRenderer.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.
Used to switch between existing designs.
Disconnect Ansys.
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.
QAnsysRenderer.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.
QAnsysRenderer.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.
QAnsysRenderer.execute_design
(design_name, ...)It wraps the render_design() method to 1.
Returns the name of the Ansys Design Object
Obtain a list of chips on which the selection of components, if valid, resides.
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.
Returns an already loaded and instantiated renderer.
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.
QAnsysRenderer.initialize_cap_extract
(**kwargs)Any task that needs to occur before running a simulation, such as creating a setup
QAnsysRenderer.initialize_drivenmodal
(...[, ...])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.
QAnsysRenderer.new_ansys_design
(design_name, ...)Add an Ansys design with the given name to the Ansys project.
Creates a new empty project in Ansys.
QAnsysRenderer.new_ansys_setup
(name, ...)Determines the appropriate setup to be created based on the pinfo.design.solution_type.
QAnsysRenderer.open_ansys
([path, ...])Alternative method to open an Ansys session that allows to specify
QAnsysRenderer.parse_value
(value)Same as design.parse_value.
(deprecated) Use clear_fields()
QAnsysRenderer.plot_ansys_fields
(*args, **kwargs)(deprecated) use plot_fields()
QAnsysRenderer.plot_fields
(object_name[, ...])Plot fields in Ansys.
Populate cls.element_extensions which will be used to create columns for tables in QGeometry tables.
QAnsysRenderer.render_chip
(chip_name, ...)Render individual chips.
QAnsysRenderer.render_chips
([...])Render all chips containing components in self.qcomp_ids.
Abstract method.
QAnsysRenderer.render_components
(table_type)Render components by breaking them down into individual elements.
QAnsysRenderer.render_design
([selection, ...])Initiate rendering of components in design contained in selection, assuming they're valid.
QAnsysRenderer.render_element
(qgeom, is_junction)Render an individual shape whose properties are listed in a row of QGeometry table.
Render a Josephson junction consisting of
Render a path-type element.
Render a closed polygon.
QAnsysRenderer.render_tables
([skip_junction])Render components in design grouped by table type (path, poly, or junction).
QAnsysRenderer.save_screenshot
([path, show])Save the screenshot.
QAnsysRenderer.set_variables
(variables)Fixes the junction properties before setup.
QAnsysRenderer.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.
If template options has not been set for this renderer, then gather all the default options for children and add to design.