|
Menu location |
---|
EM → FHPlane |
Workbenches |
EM |
Default shortcut |
E P |
Introduced in version |
0.17 |
See also |
EM FHNode, EM FHPlaneHole, EM FHPlaneAddRemoveNodeHole |
The FHPlane tool inserts a FastHenry uniform conductive plane object.
FastHenry FHPlane
The FHPlane object must be based on another object, that can be either a Draft Rectangle or a Part Box object. In case you based your FHPlane on a Part Box object, the Thickness parameter will be inherited from the Box Height value.
In addition, you can also select together with the base object (the Draft Rectangle or the Part Box) also one or more EM FHNode and / or one or more EM FHPlaneHole objects, that will be adopted by the FHPlane:
A FastHenry uniform conductive plane object is formed by laying down a gird of nodes (hereafter called 'internal nodes') and connecting the nodes with a 2D mesh of segments in the (relative) X and Y directions. Holes are formed in the plane by removing some internal nodes, and hence also the segments that connects to those nodes. For more details on FastHenry uniform conductive planes, you should review the FastHenry user's guide.
See also: FreeCAD Scripting Basics.
The FHPlane object can be used in macros and from the Python console by using the following function:
plane = makeFHPlane(baseobj=None, thickness=None, seg1=None, seg2=None, nodes=[], holes=[], name='FHPlane')
FHPlane
object.baseobj
is the Draft Rectangle object or Part Box object that can be used as base for the FHPlane. If no baseobj
is given, the user must assign a base object later on, to be able to use this object.thickness
is the plane thickness. If the baseobj
is a Part Box, this parameter is ignored, and the Part Box height is used instead. Defaults to EMFHPLANE_DEF_THICKNESS
.seg1
is an integer defining the number of segments along the x dimension of the plane ('seg1' parameter in FastHenry)seg2
is an integer defining the number of segments along the y dimension of the plane ('seg2' parameter in FastHenry)nodes
is an array of FHNode objects, specifying the nodes that will be adopted by the plane.holes
is an array of FHPlaneHole objects, specifying the holes that will be adopted by the plane.name
is the name of the objectExample:
import FreeCAD, Draft, EM
pl = FreeCAD.Placement()
pl.Rotation.Q = (0.0,0.0,0.0,1.0)
pl.Base = FreeCAD.Vector(1.0,1.0,0.0)
rec = Draft.makeRectangle(length=10.0,height=5.0,placement=pl,face=True,support=None)
fhnode1 = EM.makeFHNode(X=1.0,Y=3.5,Z=0)
fhnode2 = EM.makeFHNode(X=8.0,Y=3.5,Z=0)
hole = EM.makeFHPlaneHole(X=6.0,Y=3.5,Z=0.0)
fhplane = EM.makeFHPlane(rect, thickness=1.0, seg1=15, seg2=15, nodes=[fhnode1, fhnode2], holes=[hole])