Expose the HFSS Windows COM API.
>>> import hycohanz as hfss
>>> [oAnsoftApp, oDesktop] = hfss.setup_interface()
>>> hfss.quit_application(oDesktop)
Add a design property.
Parameters : | oDesign : pywin32 COMObject
name : str
value : Hyphasis Expression object
|
---|---|
Returns : | None : |
Create a perfect E boundary.
Parameters : | oDesign : pywin32 COMObject
boundaryname : str
facelist : list of ints
|
---|---|
Returns : | None : |
Create a perfect H boundary.
Parameters : | oDesign : pywin32 COMObject
boundaryname : str
facelist : list of ints
|
---|---|
Returns : | None : |
Assign a radiation boundary on the given faces.
Parameters : | oDesign : pywin32 COMObject
faceidlist : list of ints
IsIncidentField : bool
IsEnforcedField : bool
IsFssReference : bool
IsForPML : bool
UseAdaptiveIE : bool
IncludeInPostproc : bool
Name : str
Returns : ——- : None : |
---|
Assign a waveport excitation using multiple modes.
Parameters : | oDesign : pywin32 COMObject
portname : str
faceidlist : list
Nmodes : int
|
---|---|
Returns : | None : |
Close all open projects.
Parameters : | oDesktop : pywin32 COMObject
|
---|---|
Returns : | None : |
Close all open projects except the active project.
Parameters : | oDesktop : pywin32 COMObject
|
---|---|
Returns : | None : |
Close the active project.
Parameters : | oDesktop : pywin32 COMObject
|
---|---|
Returns : | None : |
Close the specified project using the given HFSS project object.
Parameters : | oDesktop : pywin32 COMObject
oProject : pywin32 COMObject
|
---|---|
Returns : | None : |
Close the specified project using the given HFSS project object.
Parameters : | oDesktop : pywin32 COMObject
projectname : string
|
---|---|
Returns : | None : |
Get a handle for the active project.
Parameters : | oDesktop : pywin32 COMObject
|
---|---|
Returns : | oProject : pywin32 COMObject
|
Get a module handle for the given module.
Parameters : | oDesign : pywin32 COMObject
ModuleName : str
|
---|---|
Returns : | oModule : pywin32 COMObject
|
Get the name of the specified project.
Parameters : | oProject : pywin32 COMObject
|
---|---|
Returns : | str :
|
Get the list of open projects.
Parameters : | oDesktop : pywin32 COMObject
|
---|---|
Returns : | oProject : list of pywin32 COMObjects
|
Insert an HFSS analysis setup.
Insert an HFSS design. The scripting interface doesn’t appear to support creation of HFSS-IE designs at this time, or is undocumented.
Parameters : | oProject : pywin32 COMObject
designname : str
solutiontype : str
|
---|---|
Returns : | oDesign : pywin32 COMObject
|
Insert an HFSS frequency sweep.
Parameters : | oAnalysisSetup : pywin32 COMObject
setupname : string
sweepname : string
startvalue : float
stopvalue : float
stepsize : flot
IsEnabled : bool
SetupType : string
Type : string
Savefields : bool
ExtrapToDC : bool
|
---|---|
Returns : | None : |
Create a new project. The new project becomes the active project.
Parameters : | oDesktop : pywin32 COMObject
|
---|---|
Returns : | oProject : pywin32 COMObject
|
Exit HFSS.
Parameters : | oDesktop : pywin32 COMObject
|
---|---|
Returns : | None : |
Examples
>>> import Hyphasis as hfss
>>> [oAnsoftApp, oDesktop] = hfss.setup_interface()
>>> hfss.quit_application(oDesktop)
Set the active editor.
Parameters : | oDesign : pywin32 COMObject
editorname : str
|
---|---|
Returns : | oEditor : pywin32 COMObject
|
Set up the COM interface to the running HFSS process.
Returns : | oAnsoftApp : pywin32 COMObject
oDesktop : pywin32 COMObject
|
---|
Examples
>>> import Hyphasis as hfss
>>> [oAnsoftApp, oDesktop] = hfss.setup_interface()