Constants
This section lists constants that are commonly used in PyAEDT.
Example of constants usage:
from pyaedt import constants
ipk = Icepak ()
# Use of AXIS Constant
cylinder = ipk . modeler . create_cylinder ( constants . AXIS . X , [ 0 , 0 , 0 ], 10 , 3 )
# Use of PLANE Constant
ipk . modeler . split ( cylinder , constants . PLANE . YZ , sides = "Both" )
...
ipk . release_desktop ()
Copy to clipboard
class pyaedt.generic.constants. AXIS [source]
CoordinateSystemAxis Enumerator class.
class pyaedt.generic.constants. BasisOrder [source]
Enumeration-class for HFSS basis order settings.
Warning: the value single
has been renamed to Single
for consistency. Please update references to
single
.
class pyaedt.generic.constants. CATEGORIESQ3D [source]
Plot Categories for Q2d and Q3d.
class pyaedt.generic.constants. CROSSSECTION [source]
CROSSSECTION Enumerator class.
class pyaedt.generic.constants. CSMODE [source]
COORDINATE SYSTEM MODE Enumerator class.
class pyaedt.generic.constants. FILLET [source]
FilletType Enumerator class.
class pyaedt.generic.constants. FlipChipOrientation [source]
Chip orientation enumerator class.
class pyaedt.generic.constants. GLOBALCS [source]
GlobalCS Enumerator class.
class pyaedt.generic.constants. GRAVITY [source]
GravityDirection Enumerator class.
class pyaedt.generic.constants. INFINITE_SPHERE_TYPE [source]
INFINITE_SPHERE_TYPE Enumerator class.
class pyaedt.generic.constants. LineStyle [source]
Provides trace line style constants.
class pyaedt.generic.constants. MATRIXOPERATIONSQ2D [source]
Matrix Reduction types.
class pyaedt.generic.constants. MATRIXOPERATIONSQ3D [source]
Matrix Reduction types.
class pyaedt.generic.constants. NodeType [source]
Type of node for source creation.
class pyaedt.generic.constants. PLANE [source]
CoordinateSystemPlane Enumerator class.
class pyaedt.generic.constants. SEGMENTTYPE [source]
CROSSSECTION Enumerator class.
class pyaedt.generic.constants. SETUPS [source]
Provides constants for the default setup types.
class pyaedt.generic.constants. SOLUTIONS [source]
Provides the names of default solution types.
class Circuit [source]
Provides Circuit solution types.
class Hfss [source]
Provides HFSS solution types.
class Icepak [source]
Provides Icepak solution types.
class Maxwell2d [source]
Provides Maxwell 2D solution types.
class Maxwell3d [source]
Provides Maxwell 3D solution types.
class Mechanical [source]
Provides Mechanical solution types.
class pyaedt.generic.constants. SWEEPDRAFT [source]
SweepDraftType Enumerator class.
class pyaedt.generic.constants. SolverType [source]
Provides solver type classes.
class pyaedt.generic.constants. SourceType [source]
Type of excitation enumerator.
class pyaedt.generic.constants. SymbolStyle [source]
Provides symbol style constants.
class pyaedt.generic.constants. TraceType [source]
Provides trace type constants.
class pyaedt.generic.constants. VIEW [source]
View Enumerator class.
pyaedt.generic.constants. cel2kel ( val , inverse = True ) [source]
Convert a temperature from Celsius to Kelvin.
Parameters:
val float
Temperature value in Celsius.
inverse bool , optional
The default is True
.
Returns:
float
Temperature value converted to Kelvin.
pyaedt.generic.constants. db10 ( x , inverse = True ) [source]
Convert db10 to decimal and vice versa.
pyaedt.generic.constants. db20 ( x , inverse = True ) [source]
Convert db20 to decimal and vice versa.
pyaedt.generic.constants. dbm ( x , inverse = True ) [source]
Convert W to decimal and vice versa.
pyaedt.generic.constants. dbw ( x , inverse = True ) [source]
Convert W to decimal and vice versa.
pyaedt.generic.constants. fah2kel ( val , inverse = True ) [source]
Convert a temperature from Fahrenheit to Kelvin.
Parameters:
val float
Temperature value in Fahrenheit.
inverse bool , optional
The default is True
.
Returns:
float
Temperature value converted to Kelvin.
pyaedt.generic.constants. scale_units ( scale_to_unit ) [source]
Find the scale_to_unit into main system unit.
Parameters:
scale_to_unit str
Unit to Scale.
Returns:
float
Return the scaling factor if any.
pyaedt.generic.constants. unit_converter ( values , unit_system = 'Length' , input_units = 'meter' , output_units = 'mm' ) [source]
Convert unit in specified unit system.
Parameters:
values float
, list
Values to convert.
unit_system str
Unit system. Default is “Length” .
input_units str
Input units. Default is “meter” .
output_units str
Output units. Default is “mm” .
Returns:
float
, list
Converted value.
pyaedt.generic.constants. unit_system ( units ) [source]
Retrieve the name of the unit system associated with a unit string.
Parameters:
units str
Units for retrieving the associated unit system name.
Returns:
str
Key from the AEDT_units
when successful. For example, "AngularSpeed"
.
False
when
the
units
specified
are
not
defined
in
AEDT
units.
pyaedt.generic.constants. validate_enum_class_value ( cls , value ) [source]
Check whether the value for the class enumeration-class
is valid.
Parameters:
cls class
Enumeration-style class with integer members in range(0, N) where cls.Invalid equals N-1.
value int
Value to check.
Returns:
bool True
when the value is valid for the enumeration-class
, False
otherwise.