oaInductor
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaInductor 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaInductor 当前在 oapy 中可用的 Python 接口。
详细说明
The oaInductor class represents an inductor in a parasitic network for a net。 Each inductor object has one inductance value for each analysis point that the parasitic network represents。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getFromMutualInductors() |
| ✅ | obj.getToMutualInductors() |
| ✅ | _design.oaInductor.create(fromNode, toNode) |
| ✅ | _design.oaInductor.create(fromNode, toNode, id) |
方法说明
obj.getFromMutualInductors()
绑定状态: 已绑定
Python 调用: obj.getFromMutualInductors()
This function returns a collection of mutual inductors whose from endpoint connects to this inductor。
Python 示例
from oapy._oa import _design
# assume obj is a oaInductor
obj.getFromMutualInductors()
obj.getToMutualInductors()
绑定状态: 已绑定
Python 调用: obj.getToMutualInductors()
This function returns a collection of mutual inductors whose to endpoint connects to this inductor。
Python 示例
from oapy._oa import _design
# assume obj is a oaInductor
obj.getToMutualInductors()
_design.oaInductor.create(fromNode, toNode)
绑定状态: 已绑定
Python 调用: _design.oaInductor.create(fromNode, toNode)
This function creates an inductor belonging to the parasitic network containing fromNode and toNode。 An exception will be thrown if fromNode and toNode do not belong to the same network。 An exception will be thrown if the id is the reserved oacInvalidDeviceID value or if a device with the specified id value already exists。 The hasId() function will return true for devices created with this function and the getId() function will return the user-specified id。 Inductors can be created between nodes in different partitions of the same root parasitic network, where one of the partitions must be an ancestor of the other。 In this case, the inductor will be created in the lower level partition, and the node in the higher level partition must have an id so that it can be found when loading the lower level partition。
参数
fromNode: The starting node for the inductor。toNode: The ending node for the inductor。id: The unique ID to be assigned to the inductor created。
异常
oacInvalidDeviceIdSpecified。oacLocalDeviceIdExists。oacNodesNotInSameDesign。oacNodesNotInSameNetwork。oacNodesNotInRelatedPartitions。oacAncestorNodeWithoutId。
Python 示例
from oapy._oa import _design
_design.oaInductor.create(fromNode, toNode)
_design.oaInductor.create(fromNode, toNode, id)
绑定状态: 已绑定
Python 调用: _design.oaInductor.create(fromNode, toNode, id)
This function creates an inductor belonging to the parasitic network containing fromNode and toNode。 An exception will be thrown if fromNode and toNode are specified and do not belong to the same network。 The device created will not have an ID associated with it。 The hasId() function will return false for these devices and the getId() function will return an oacInvalidDeviceID value。 Inductors can be created between nodes in different partitions of the same root parasitic network, where one of the partitions must be an ancestor of the other。 In this case, the inductor will be created in the lower level partition, and the node in the higher level partition must have an id so that it can be found when loading the lower level partition。
参数
fromNode: The starting node for the inductor。toNode: The ending node for the inductor。
异常
oacNodesNotInSameDesign。oacNodesNotInSameNetwork。oacNodesNotInRelatedPartitions。oacAncestorNodeWithoutId。
Python 示例
from oapy._oa import _design
_design.oaInductor.create(fromNode, toNode, id)