assign_lumped_rlc_to_sheet#
- Hfss.assign_lumped_rlc_to_sheet(sheet_name, axisdir=0, sourcename=None, rlctype='Parallel', Rvalue=None, Lvalue=None, Cvalue=None)[source]#
Create a lumped RLC taking one sheet.
- Parameters:
- sheet_name
str
Name of the sheet to apply the boundary to.
- axisdir
int
,pyaedt.application.Analysis.Analysis.AxisDir
orlist
,optional
Direction of the integration line. It should be one of the values for
Application.AxisDir
, which are:XNeg
,YNeg
,ZNeg
,XPos
,YPos
, andZPos
. It also accepts the list of the start point and end point with the format [[xstart, ystart, zstart], [xend, yend, zend]] The default isApplication.AxisDir.XNeg
.- sourcename
str
,optional
Lumped RLC name. The default is
None
.- rlctype
str
,optional
Type of the RLC. Options are
"Parallel"
and"Serial"
. The default is"Parallel"
.- Rvalue
float
,optional
Resistance value in ohms. The default is
None
, in which case this parameter is disabled.- Lvalue
optional
Inductance value in Henry (H). The default is
None
, in which case this parameter is disabled.- Cvalue
optional
Capacitance value in farads (F). The default is
None
, in which case this parameter is disabled.
- sheet_name
- Returns:
pyaedt.modules.Boundary.BoundaryObject
Boundary object if successful,
False
otherwise.
References
>>> oModule.AssignLumpedRLC
Examples
Create a sheet and use it to create a lumped RLC.
>>> sheet = hfss.modeler.create_rectangle(hfss.PLANE.XY, ... [0, 0, -90], [10, 2], name="RLCSheet", ... matname="Copper") >>> lumped_rlc_to_sheet = hfss.assign_lumped_rlc_to_sheet(sheet.name, hfss.AxisDir.XPos, ... Rvalue=50, Lvalue=1e-9, ... Cvalue=1e-6) >>> type(lumped_rlc_to_sheet) <class 'pyaedt.modules.Boundary.BoundaryObject'> >>> h2 = hfss.assign_lumped_rlc_to_sheet(sheet.name, [sheet.bottom_edge_x.midpoint, ... sheet.bottom_edge_y.midpoint], Rvalue=50, Lvalue=1e-9, Cvalue=1e-6)