Changes
<table><tr><td>[[image:Cube-icon.png | link=Getting_Started_with_EM.Cube]] [[image:cad-ico.png | link=Building_Geometrical_Constructions_in_CubeCAD]] [[image:fdtd-ico.png | link=EM.Tempo]] [[image:prop-ico.png | link=EM.Terrano]] [[image:static-ico.png | link=EM.Ferma]] [[image:planar-ico.png | link=EM.Picasso]] [[image:metal-ico.png | link=EM.Libera]] [[image:po-ico.png | link=EM.Illumina]]</td><tr></table>[[Image:Back_icon.png|30px]] '''[[EM.Cube | Back to EM.Cube Main Page]]'''<br /> == Standard Python Operators == {| class="wikitable"!scope="col"| Syntax!scope="col"| Type!scope="col"| Description|-| style="width:80px;" | -p| style="width:150px;" | Std. Python operator| style="width:270px;" | negative of p|-| style="width:80px;" | p=q| style="width:150px;" | Std. Python operator| style="width:270px;" | p is equal to q|-| style="width:80px;" | p+q| style="width:150px;" | Std. Python operator| style="width:270px;" | sum of p and q|-| style="width:80px;" | p-q| style="width:150px;" | Std. Python operator| style="width:270px;" | difference p and q|-| style="width:80px;" | p*q| style="width:150px;" | Std. Python operator| style="width:270px;" | product of p and q|-| style="width:80px;" | p/q| style="width:150px;" | Std. Python operator| style="width:270px;" | quotient of p over q|-| style="width:80px;" | p**q| style="width:150px;" | Std. Python operator| style="width:270px;" | p to the power of q|-| style="width:80px;" | p%q| style="width:150px;" | Std. Python operator| style="width:270px;" | p modulus q|-| style="width:80px;" | p==q| style="width:150px;" | Std. Python operator| style="width:270px;" | p logically equal to q|-| style="width:80px;" | p>q| style="width:150px;" | Std. Python operator| style="width:270px;" | p is greater than q|-| style="width:80px;" | p>=q| style="width:150px;" | Std. Python operator| style="width:270px;" | p is greater than or equal to q|-| style="width:80px;" | p<q| style="width:150px;" | Std. Python operator| style="width:270px;" | p is less than q|-| style="width:80px;" | p<=q| style="width:150px;" | Std. Python operator| style="width:270px;" | p is less than or equal to q|-| style="width:80px;" | !p| style="width:150px;" | Std. Python operator| style="width:270px;" | Logical not p|-| style="width:80px;" | p and q| style="width:150px;" | Std. Python operator| style="width:270px;" | p Boolean and q|-| style="width:80px;" | p or q| style="width:150px;" | Std. Python operator| style="width:270px;" | p Boolean or q|-|} == Basic Mathematical Python Functions ==
{| class="wikitable"
| style="width:270px;" | Absolute value function
| style="width:270px;" | x if x>0, -x if x<0
|-
| pow(x,y)
| Std. Python function
| Factorial
| For for integer values of x: n! = n(n-1)(n-2)...3.2.1
|-
| max(x,y)
| -
|-
| asinhnp.arcsinh(x)
| Std. Python function
| Inverse hyperbolic sine function
| -
|-
| acoshnp.arccosh(x)
| Std. Python function
| Inverse hyperbolic cosine function
| -
|-
| atanhnp.arctanh(x)
| Std. Python function
| Inverse hyperbolic tangent function
| -
|-
| np.floor(x)
| Std. Python function
| Floor function
| nearest integer <= x
|}
| style="width:150px;" | Std. Python function
| style="width:270px;" | Sine and cosine integral functions
| style="width:270px;" | See see [https://en.wikipedia.org/wiki/Trigonometric_integral Trigonometric Integrals on Wikipedia.]
|-
| sp.fresnel(x)
| Std. Python function
| Sine and cosine Fresnel integral functions
| See see [https://en.wikipedia.org/wiki/Fresnel_integral Fresnel Integrals on Wikipedia.]
|-
| sp.ellipe(x)
| Std. Python function
| Elliptic function of the first kind
| See see [https://en.wikipedia.org/wiki/Elliptic_integral Elliptic Integrals on Wikipedia.]
|-
| sp.ellipk(x)
| Std. Python function
| Elliptic function of the second kind
| See see [https://en.wikipedia.org/wiki/Elliptic_integral Elliptic Integrals on Wikipedia.]
|-
| sp.expi(x)
| Std. Python function
| Exponential integral function
| See see [https://en.wikipedia.org/wiki/Exponential_integral Exponential Integrals on Wikipedia.]
|-
| sp.expn(n,x)
| Std. Python function
| Generalized exponential integral function of order n
| See see [https://en.wikipedia.org/wiki/Exponential_integral Exponential Integrals on Wikipedia.]
|-
| sp.erf(x)
| Std. Python function
| Error function
| See see [https://en.wikipedia.org/wiki/Error_function Error Function on Wikipedia.]
|-
| sp.erfc(x)
| Std. Python function
| Complementary error function
| See see [https://en.wikipedia.org/wiki/Error_function Error Function on Wikipedia.]
|-
| sp.gamma(x)
| Std. Python function
| Gamma function
| See see [https://en.wikipedia.org/wiki/Gamma_function Gamma Function on Wikipedia.]
|-
| sp.airy(x)
| Std. Python function
| Airy function of the first (Ai) and second (Bi) kind and their derivatives
| See see [https://en.wikipedia.org/wiki/Airy_function Airy Functions on Wikipedia.]
|-
| sp.j0(x)
| Std. Python function
| Bessel function of the first kind and order 0
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.j1(x)
| Std. Python function
| Bessel function of the first kind and order 1
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.jv(n,x)
| Std. Python function
| Bessel function of the first kind and order n
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.y0(x)
| Std. Python function
| Bessel function of the second kind and order 0
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.y1(x)
| Std. Python function
| Bessel function of the second kind and order 1
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.yv(n,x)
| Std. Python function
| Bessel function of the second kind and order n
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.i0(x)
| Std. Python function
| Modified Bessel function of the first kind and order 0
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.i1(x)
| Std. Python function
| Modified Bessel function of the first kind and order 1
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.iv(n,x)
| Std. Python function
| Modified Bessel function of the first kind and order n
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.k0(x)
| Std. Python function
| Modified Bessel function of the second kind and order 0
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.k1(x)
| Std. Python function
| Modified Bessel function of the second kind and order 1
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.kv(n,x)
| Std. Python function
| Modified Bessel function of the second kind and order n
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.sph_jn(n,x)
| Std. Python function
| Spherical Bessel function of the first kind and order n
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.sph_yn(n,x)
| Std. Python function
| Spherical Bessel function of the second kind and order n
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.sph_in(n,x)
| Std. Python function
| Modified spherical Bessel function of the first kind and order n
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.sph_kn(n,x)
| Std. Python function
| Modified spherical Bessel function of the second kind and order n
| See see [https://en.wikipedia.org/wiki/Bessel_function Bessel Functions on Wikipedia.]
|-
| sp.lpn(n,x)
| Std. Python function
| Legendre function of the first kind and order n
| See see [https://en.wikipedia.org/wiki/Legendre_polynomial Legendre Polynomials on Wikipedia.]
|-
| sp.lqn(n,x)
| Std. Python function
| Legendre function of the second kind and order n
| See see [https://en.wikipedia.org/wiki/Legendre_polynomials Legendre Polynomials on Wikipedia.]
|-
| sp.lpmn(m,n,x)
| Std. Python function
| Associated Legendre function of the first kind and order n
| See see [https://en.wikipedia.org/wiki/Legendre_polynomial Legendre Polynomials on Wikipedia.]
|-
| sp.lqmn(m,n,x)
| Std. Python function
| Associated Legendre function of the second kind and order n
| See see [https://en.wikipedia.org/wiki/Legendre_polynomials Legendre Polynomials on Wikipedia.]
|-
| sp.eval_chebyt(n,x)
| Std. Python function
| Chebyshev polynomial of the first kind and order n
| See see [https://en.wikipedia.org/wiki/Chebyshev_polynomials Chebyshev Polynomials on Wikipedia.]
|-
| sp.eval_chebyu(n,x)
| Std. Python function
| Chebyshev polynomial of the second kind and order n
| See see [https://en.wikipedia.org/wiki/Chebyshev_polynomials Chebyshev Polynomials on Wikipedia.]
|-
| sp.eval_legendre(n,x)
| Std. Python function
| Legendre polynomial of order n
| See see [https://en.wikipedia.org/wiki/Legendre_polynomials Legendre Polynomials on Wikipedia.]
|-
| sp.eval_laguerre(n,x)
| Std. Python function
| Laguerre polynomial of order n
| See see [https://en.wikipedia.org/wiki/Laguerre_polynomials Laguerre Polynomials on Wikipedia.]
|-
| sp.eval_hermite(n,x)
| Std. Python function
| Hermite polynomial of order n
| See see [https://en.wikipedia.org/wiki/Hermite_polynomials Hermite Polynomials on Wikipedia.]
|-
| Math_cesp.mathieu_cem(n,rq,x)
| Std. Python function
| Even periodic (cosine) Mathieu function of order nand its derivative| See see [https://en.wikipedia.org/wiki/Mathieu_function Mathieu Functions on Wikipedia.]
|-
| Math_sesp.mathieu_sem(n,rq,x)
| Std. Python function
| Odd periodic (sine) Mathieu function of order nand its derivative| See see [https://en.wikipedia.org/wiki/Mathieu_function Mathieu Functions on Wikipedia.]
|}
== EM.Cube's Miscellaneous Native Python Functions ==
====boxadd_variable====
SYNTAX: boxadd_variable({{ArgTypeString}} labelvar_name, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_x, {{ArgTypeAny}} base_y, {{ArgTypeAny}} height[, {{ArgTypeAny}} cap_top, {{ArgTypeAny}} cap_bottom]value)
EXAMPLE: ''boxadd_variable("Box_1MyVar",0,0,0,50,50,1001)''
DESCRIPTION: Draws Adds a box object in the project workspace under the currently activated material group node, or modifies the box named new variable to [[EM.Cube]]'label' if it already existss variable list.
====cylinderarray====
SYNTAX: cylinderarray({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAnyArgTypeString}} z0object, {{ArgTypeAny}} radiusx_count, {{ArgTypeAny}} height[y_count, {{ArgTypeAny}} start_anglez_count, {{ArgTypeAny}} end_anglex_spacing, {{ArgTypeAny}} cap_topy_spacing, {{ArgTypeAny}} cap_bottom]z_spacing)
EXAMPLE: ''cylinderarray("Cylinder_1Array_1",0"Rect_Strip_1",04,04,101,10050,50,0)''
DESCRIPTION: Draws a cylinder object in the project workspace under the currently activated material group node, Creates or modifies the cylinder named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the cylinder's azimuth axisan array object.
====conearray_custom====
SYNTAX: conearray_custom({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x0x_count, {{ArgTypeAny}} y0y_count, {{ArgTypeAny}} z0z_count, {{ArgTypeAny}} base_radiusx_spacing, {{ArgTypeAny}} height[y_spacing, {{ArgTypeAny}} top_radiusz_spacing, {{ArgTypeAny}} start_anglex0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} end_anglerot_x, {{ArgTypeAny}} cap_toprot_y, {{ArgTypeAny}} cap_bottom]rot_z)
EXAMPLE: ''conearray_custom("Cone_1Array_1",0"Rect_Strip_1",04,4,1,50,50,0,30100,40100,20,0,1800,45)''
DESCRIPTION: Draws a cone object in the project workspace under the currently activated material group node, Creates or modifies the cone named 'label' if it already exists. The arguments start_angle an array object and end_angle are in degrees sets its local coordinate system and specify a sweep about the cone's azimuth axisrotation angles.
====pyramidbackground_layer====
SYNTAX: pyramidbackground_layer({{ArgTypeString}} label, {{ArgTypeAny}} x0eps, {{ArgTypeAny}} y0sigma, {{ArgTypeAny}} z0mu, {{ArgTypeAny}} base_x, {{ArgTypeAny}} base_y, {{ArgTypeAny}} heightthickness)
EXAMPLE: ''pyramidbackground_layer("Pyramid_1Mid_Layer",03.3,0.001,0,10,101,1001.5)''
DESCRIPTION: Draws Adds a pyramid object in the project workspace under the currently activated material group node, or modifies the pyramid named new substrate layer to [[EM.Picasso]]'label' if it already existss background layer stackup.
====spherebase_point_group====
SYNTAX: spherebase_point_group({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle])
EXAMPLE: ''spherebase_point_set("Sphere_1BP_Set_1",0,0,0,10,0,180)''
DESCRIPTION: Draws Creates a sphere object base point set in [[EM.Terrano]]. If the project workspace under the currently activated Material Group node, or modifies the sphere named base point set group 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about , the sphere's azimuth axisgroup is activated.
====ellipsoidbh_step====
SYNTAX: ellipsoidbh_step({{ArgTypeStringArgTypeReal}} labelx, {{ArgTypeAnyArgTypeReal}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_x, {{ArgTypeAny}} radius_y, {{ArgTypeAny}} radius_z[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle]T)
EXAMPLE: ''ellipsoidbh_step("Ellipsoid_1",0,0,0,100,100,50,0.5,3601)''
DESCRIPTION: Draws an ellipsoid object in the project workspace under the currently activated material group node, or modifies the ellipsoid named 'label' if it already exists. The arguments start_angle and end_angle are in degrees Computes and specify a sweep about returns the ellipsoid's azimuth axisBlackman-Harris step function.
====torusbh_window====
SYNTAX: torusbh_window({{ArgTypeStringArgTypeReal}} labelx, {{ArgTypeAnyArgTypeReal}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_major, {{ArgTypeAny}} radius_minor[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle]T)
EXAMPLE: ''torusbh_window("Torus_1",0.5,0,0,50,201)''
DESCRIPTION: Draws an torus object in the project workspace under the currently activated material group node, or modifies the torus named 'label' if it already exists. The arguments start_angle and end_angle are in degrees Computes and specify a sweep about returns the torus's azimuth axisBlackman-Harris window function.
====rect_stripbox====
SYNTAX: rect_stripbox({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} side_xbase_x, {{ArgTypeAny}} side_ybase_y, {{ArgTypeAny}} height[, {{ArgTypeAny}} cap_top, {{ArgTypeAny}} cap_bottom])
EXAMPLE: ''rect_stripbox("my_rectangleBox_1",0,0,0,50,2050,100)''
DESCRIPTION: Draws a rectangle Strip box object in the project workspace under the currently activated material group node, or modifies the rectangle strip object box named 'label' if it already exists. ====capacitance==== SYNTAX: capacitance({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2, {{ArgTypeAny}} x3, {{ArgTypeAny}} y3, {{ArgTypeAny}} z3, {{ArgTypeAny}} x4, {{ArgTypeAny}} y4, {{ArgTypeAny}} z4) EXAMPLE: ''capacitance("FI_1",-10,-10,5,10,10,10,0,0,-10,0,0,10)'' DESCRIPTION: Creates a capacitance integral observable in [[EM.Ferma]]. If the observable 'label' already exists, its properties are modified. ====capacitor==== SYNTAX: capacitor({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} capacitance_pF) EXAMPLE: ''capacitor("Cap_1","Line_1",25,10)'' DESCRIPTION: Creates a capacitor in [[EM.Tempo]]. If the capacitor 'label' already exists, its properties are modified. ====charge_group==== SYNTAX: charge_group({{ArgTypeString}} label, {{ArgTypeAny}} density) EXAMPLE: ''charge_group("Charge_1",-1e-5)'' DESCRIPTION: Creates a volume charge source group in [[EM.Ferma]]. If the charge group 'label' already exists, the group is activated.
====circ_strip====
DESCRIPTION: Draws a circle strip object in the project workspace under the currently activated material group node, or modifies the circle strip object named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the circle strip's azimuth axis.
====radial_stripcircle====
SYNTAX: radial_stripcircle({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} base_lengthstart_angle, {{ArgTypeAny}} angleend_angle)
EXAMPLE: ''radial_stripcircle("Radial_1pyramid_1",0,0,0,5010,010,90100)''
DESCRIPTION: Draws a radial strip circular curve object in the project workspace under the currently activated material group node, or modifies the radial strip object circle named 'label' if it already exists. The parameters start_angle and end_angle are in degrees.
====ellipse_stripclone====
SYNTAX: ellipse_stripclone({{ArgTypeString}} label, {{ArgTypeAnyArgTypeString}} x0object, {{ArgTypeAnyArgTypeReal}} y0x0, {{ArgTypeAnyArgTypeReal}} z0y0, {{ArgTypeAnyArgTypeReal}} radius_x, {{ArgTypeAny}} radius_y[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle]z0)
EXAMPLE: ''ellipse_stripclone("es_1NewObj",0,0"MyObj",010,5010,0)''
DESCRIPTION: Draws Creates a ellipse strip object in copy of the project workspace under the currently activated material group node, or modifies the ellipse strip specified object named 'label' if and repositions it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about at the ellipse strip's azimuth axisgiven coordinates.
====triangle_stripclose_curve====
SYNTAX: triangle_stripclose_curve({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} side1, {{ArgTypeAny}} side2, {{ArgTypeAnyArgTypeString}} angleclose_state)
EXAMPLE: ''triangle_stripclose_curve("ts_1Curve_1",0,0,0,50,100,901)''
DESCRIPTION: Draws Sets the open/close state of a triangle strip object in the project workspace under the currently activated material group node, polyline or modifies the triangle strip object named 'label' if it already existsNURBS curve. Use 0 for open curve and 1 for close curve.
====taper_stripcoaxial_design====
SYNTAX: taper_stripcoaxial_design({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAnyArgTypeReal}} z0, {{ArgTypeAny}} base_width, {{ArgTypeAny}} top_width, {{ArgTypeAny}} length, {{ArgTypeAnyArgTypeReal}} is_expoer)
EXAMPLE: ''taper_stripcoaxial_design("ts_1",0,0,0,50,100,80,12.2)''
DESCRIPTION: Draws a taper strip object in Computes and returns the project workspace under ratio of the currently activated material group node, or modifies radius of the taper strip object named 'label' if it already exists. If outer conductor to the Boolean parameters "is_expo" is 1, an exponential taper will be drawnradius of the inner conductor of a coaxial transmission line of characteristic impedance z0 (in Ohms) with core relative permittivity er.
====polygon_regcoaxial_src====
SYNTAX: polygon_regcoaxial_src({{ArgTypeString}} label, {{ArgTypeAny}} x0cylinder_object, {{ArgTypeAny}} y0outer_radius, {{ArgTypeAny}} z0edge[, {{ArgTypeAny}} radiusamplitude, {{ArgTypeAny}} n_sidesphase, {{ArgTypeAny}} resistance])
EXAMPLE: ''polygon_regcoaxial_src("ts_1COAX_1",0,0,0,50,100,80"Cyl_1",1.5,"+z")''
DESCRIPTION: Draws Creates a regular polygon object coaxial port source in [[EM.Tempo]]. If the project workspace under the currently activated material group node, or modifies the regular polygon object named coaxial port 'label' if it already exists, its properties are modified.
====spiral_stripcolor_group====
SYNTAX: spiral_stripcolor_group({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} width, {{ArgTypeAny}} radius_inner, {{ArgTypeAny}} radius_outer, {{ArgTypeAny}} nturns, {{ArgTypeAny}} spiral_dir, {{ArgTypeAny}} is_dual)
EXAMPLE: ''spiral_stripcolor_group("Spiral _1Color_1",0,0,0,10,50,5,0,0)''
DESCRIPTION: Draws Creates a spiral strip object color group in CubeCAD module. If the project workspace under the currently activated material color group node, or modifies the spiral strip named 'label' if it already exists. If the Boolean parameter "spiral_dir" is 1, the spiral curve will be drawn counter-clockwise. If the Boolean parameter "is_dual" group is 1, a dual-arm spiral curve will be drawnactivated.
====polystripconduction_current_integral====
SYNTAX: polystripconduction_current_integral({{ArgTypeString}} label, {{ArgType| 3x1 Python tupleArgTypeAny}} p0x1, {{ArgType| 3x1 Python tupleArgTypeAny}} p1y1, ... {{ArgType| 3x1 Python tupleArgTypeAny}} pnz1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2)
EXAMPLE: ''polystripconduction_current_integral("ps_1FI_1",(0-10,0-10,0),(110,0,0),(1,010,0))''
DESCRIPTION: Creates or modifies a Polystrip object conduction current integral observable in the project workspace[[EM. Each point is represented with a Python tuple typeFerma]]. The poly_strip function is If the observable 'self-closinglabel' -- there is no need to supply the first point again at the end of the point listalready exists, its properties are modified.
====nurbs_stripconductive_sheet_group====
SYNTAX: nurbs_stripconductive_sheet_group({{ArgTypeString}} label, {{ArgType| 3x1 Python tupleArgTypeAny}} p0sigma, {{ArgType| 3x1 Python tupleArgTypeAny}} p1, ... {{ArgType| 3x1 Python tuple}} pnthickness)
EXAMPLE: ''nurbs_stripconductive_sheet_group("ns_1Cond_1",(0,0,0),(1,0,0),(1,0100,0).01)''
DESCRIPTION: Creates or modifies a NURBS Strip object conductive sheet group in the project workspace[[EM. Each point is represented with a Python tuple typePicasso]]. The nurbs_strip function is If the conductive sheet group 'self-closinglabel' -- there already exists, the group is no need to supply the first point again at the end of the point listactivated.
====linecone====
SYNTAX: linecone({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} lengthbase_radius, {{ArgTypeAny}} height[, {{ArgTypeAny}} dirtop_radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle, {{ArgTypeAny}} cap_top, {{ArgTypeAny}} cap_bottom])
EXAMPLE: ''linecone("my_lineCone_1",0,0,0,10030,"x"40,20,0,180)''
DESCRIPTION: Draws a Line cone object in the project workspace under the currently activated material group node, or modifies the line cone named 'label' if it already exists. Without the argument "dir", The arguments start_angle and end_angle are in degrees and specify a vertical line is drawn by defaultsweep about the cone's azimuth axis.
====circleconsolidate====
SYNTAX: circleconsolidate({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angleobject)
EXAMPLE: ''circleconsolidate("pyramid_1Poly_1",0,0,0,10,10,100)''
DESCRIPTION: Draws Consolidates a circular curve specified object in the project workspace under the currently activated material group node, or modifies the circle named 'label' if it already exists. The parameters start_angle and end_angle are in degrees.
====superquadcpw_design_s====
SYNTAX: cpw_design_s({{ArgTypeReal}} z0, {{ArgTypeReal}} w, {{ArgTypeReal}} h, {{ArgTypeReal}} er)
EXAMPLE: ''cubecad_mesh_settings(5,10)''
SYNTAX: emillumina_mesh_settings({{ArgTypeAny}} cells_per_lambda) EXAMPLE: ''emillumina_mesh_settings(30)'' DESCRIPTION: Exports Sets the physical structure parameters of [[EM.Illumina]]'s mesh generator. ====emlibera_engine_settings_smom==== SYNTAX: emlibera_engine_settings_smom({{ArgTypeString}} matrix_solver, {{ArgTypeAny}} error_tol, {{ArgTypeAny}} max_iterations, {{ArgTypeAny}} ncpus, {{ArgTypeString}} formulation, {{ArgTypeAny}} alpha) EXAMPLE: ''emlibera_engine_settings_smom("bicg",1e-3,1000,4,"efie",0.4)'' DESCRIPTION: Sets the project workspacean to parameters of [[EM.Libera]]'s surface MoM simulation engines. ====emlibera_engine_settings_wmom==== SYNTAX: emlibera_engine_settings_wmom({{ArgTypeString}} matrix_solver, {{ArgTypeAny}} error_tol, {{ArgTypeAny}} max_iterations) EXAMPLE: ''emlibera_engine_settings_wmom("bicg",1e-3,1000)'' DESCRIPTION: Sets the parameters of [[EM.Libera]]'s wire MoM simulation engines. ====emlibera_mesh_settings==== SYNTAX: emlibera_mesh_settings({{ArgTypeAny}} cells_per_lambda) EXAMPLE: ''emlibera_mesh_settings(30)'' DESCRIPTION: Sets the parameters of [[EM.Libera]]'s mesh generator. ====empicasso_engine_settings==== SYNTAX: empicasso_engine_settings({{ArgTypeString}} matrix_solver, {{ArgTypeAny}} error_tol, {{ArgTypeAny}} max_iterations) EXAMPLE: ''empicasso_engine_settings("bicg",1e-3,1000)'' DESCRIPTION: Sets the parameters of [[EM.Picasso]]'s planar MoM simulation engine. ====empicasso_mesh_settings==== SYNTAX: empicasso_mesh_settings({{ArgTypeAny}} cells_per_lambda) EXAMPLE: ''empicasso_mesh_settings(30)'' DESCRIPTION: Sets the parameters of [[EM.Picasso]]'s planar hybrid mesh generator. ====emtempo_engine_settings==== SYNTAX: emtempo_engine_settings({{ArgTypeString}} engine, {{ArgTypeAny}} power_threshhold, {{ArgTypeAny}} max_timesteps) EXAMPLE: ''emtempo_engine_settings("single-precision",-50,20000)'' DESCRIPTION: Sets the parameters of [[EM.Tempo]]'s FDTD simulation engine. ====emtempo_mesh_settings==== SYNTAX: emtempo_mesh_settings({{ArgTypeAny}} cells_per_lambda, {{ArgTypeAny}} ratio_contour, {{ArgTypeAny}} ratio_thin, {{ArgTypeAny}} ratio_abs) EXAMPLE: ''emtempo_mesh_settings(30,0.1,0.1,0.02)'' DESCRIPTION: Sets the parameters of [[EM.Tempo]]'s adaptive mesh generator. ====emterrano_engine_settings==== SYNTAX: emterrano_engine_settings({{ArgTypeAny}} bounce_count, {{ArgTypeAny}} do_edge_diffraction, {{ArgTypeAny}} angular_resolution, {{ArgTypeAny}} ray_threshhold) EXAMPLE: ''emterrano_engine_settings(5,1,1,-100)'' DESCRIPTION: Sets the parameters of [[EM.Terrano]]'s SBR simulation engine. ====emterrano_mesh_settings==== SYNTAX: emterrano_mesh_settings({{ArgTypeAny}} edge_length, {{ArgTypeAny}} angle_tol) EXAMPLE: ''emterrano_mesh_settings(5,10)'' DESCRIPTION: Sets the parameters of [[EM.Terrano]]'s facet mesh generator. ====energy_electric==== SYNTAX: energy_electric({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2) EXAMPLE: ''energy_electric("FI_1",-10,-10,-10,10,10,10)'' DESCRIPTION: Creates an STL model fileelectric energy integral observable in [[EM.Ferma]]. If the file path is not specifiedobservable 'label' already exists, its properties are modified. ====energy_magnetic==== SYNTAX: energy_magnetic({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2) EXAMPLE: ''energy_magnetic("FI_1",-10,-10,-10,10,10,10)'' DESCRIPTION: Creates a magnetic energy integral observable in [[EM.Ferma]]. If the current project folder is assumed as the pathobservable 'label' already exists, its properties are modified. ====explode==== SYNTAX: explode({{ArgTypeString}} object) EXAMPLE: ''explode("MyArray")'' DESCRIPTION: Explodes an object into its basic primitives.
====export_dxf====
DESCRIPTION: Exports the physical structure of the project workspace or the current object selection to a Python geometry file. The default path is the Python subfolder under "Documents → EMAG".
== EM.Cube's Python Functions for Geometric Object Transformation ==export_stl====
====gauss==== SYNTAX: gauss({{ArgTypeReal}} x, ArgTypeReal}} mu, ArgTypeReal}} sigma) EXAMPLE: ''gauss(0.5,0,1)'' DESCRIPTION: Computes and returns the Gaussian function of mean mu and standard deviation sigma: exp(-0.5*((x-mu)/sigma)**2)/sigma/sqrt(2*pi). ====gauss_beam==== SYNTAX: gauss_beam({{ArgTypeString}} label, {{ArgTypeAny}} theta, {{ArgTypeAny}} phi, {{ArgTypeAny}} polarization, {{ArgTypeAny}} focus_x, {{ArgTypeAny}} focus_y, {{ArgTypeAny}} focus_z, {{ArgTypeAny}} radius, {{ArgTypeAny}} p_mode, {{ArgTypeAny}} q_mode) EXAMPLE: ''gauss_beam("PW_1",180,0,"tm",0,0,0,20,0,0)'' DESCRIPTION: Creates a Gaussian beam source in [[EM.Tempo]]. If the Gaussian beam source 'label' already exists, its properties are modified. ====generate_input_files==== SYNTAX: generate_input_files() EXAMPLE: ''generate_input_files()'' DESCRIPTION: Generates all the input files for the simulation engine of the current module without running a simulation. ====geo==== SYNTAX: geo({{ArgTypeReal}} x, {{ArgTypeReal}} y) EXAMPLE: ''geo(1,2)'' DESCRIPTION: Computes and returns the geometric mean of x and y: sqrt(x*y). ====get_area==== SYNTAX: get_area({{ArgTypeString}} object) EXAMPLE: ''get_area("ellipse_1")'' DESCRIPTION: Returns the specified rotation angle area of a surface object or the total surface area of an a solid object.
====get_axis====
DESCRIPTION: Returns the specified coordinate of the unit vector along the specified local axis of an object.
====get_lcs_offsetget_domain_extent====
SYNTAX: get_lcs_offsetget_domain_extent({{ArgTypeString}} object, {{ArgTypeAny}} x_off, {{ArgTypeAny}} y_off, {{ArgTypeAny}} z_off, {{ArgTypeString}} coordinate)
EXAMPLE: ''get_lcs_offsetget_domain_extent("box_1",50,50,0,"x")''
DESCRIPTION: Returns the specified coordinate size of the LCS of an object after being translated by computational domain along the specified offset values along the three principal axesdirection.
====get_extent====
DESCRIPTION: Returns the size of the bounding box of an object along the specified direction.
====get_vertexget_lcs====
SYNTAX: get_vertexget_lcs({{ArgTypeString}} object, {{ArgTypeAny}} node_index, {{ArgTypeString}} coordinate)
EXAMPLE: ''get_vertexget_lcs("pyramid_1",0,"x")''
DESCRIPTION: Returns the specified coordinate of the specified vertex of the bounding box LCS of an object. The vertices are specified by node indices. The lower front left corner has an index of 0, while the upper back right corner has an index of 7. The indices are numbered counterclockwise, with the bottom face first and top face next.
====set_rotget_lcs_offset====
SYNTAX: set_rotget_lcs_offset({{ArgTypeString}} object, {{ArgTypeAny}} rot_xx_off, {{ArgTypeAny}} rot_yy_off, {{ArgTypeAny}} rot_zz_off, {{ArgTypeString}} coordinate)
EXAMPLE: ''set_rotget_lcs_offset("pyramid_1box_1",050,50,0,45"x")''
DESCRIPTION: Sets Returns the three rotation angles specified coordinate of the LCS of an objectafter being translated by the specified offset values along the three principal axes.
====set_lcs_linkget_length====
SYNTAX: set_lcs_linkget_length({{ArgTypeString}} object, {{ArgTypeString}} lcs_obj, {{ArgTypeAny}} x_off, {{ArgTypeAny}} y_off, {{ArgTypeAny}} z_off)
EXAMPLE: ''set_lcs_linkget_length("pyramid_1helix_1","box_1",50,50,0)''
DESCRIPTION: Links Returns the LCS length of the first a curve object to the LCS of the second object by the specified offset values along the three axes.
====set_rot_linkget_rot====
SYNTAX: set_rot_linkget_rot({{ArgTypeString}} object, {{ArgTypeString}} lcs_obj, {{ArgTypeAny}} x_off_deg, {{ArgTypeAny}} y_off_deg, {{ArgTypeAny}} z_off_degcoordinate)
EXAMPLE: ''set_rot_linkget_rot("pyramid_1","box_1x",0,0,45)''
DESCRIPTION: Links Returns the specified rotation angles angle of the LCS of the first an object to the rotation angles of the LCS of the second object by the specified angle offset values in degrees along the three axes.
====mirrorget_standard_output====
SYNTAX: mirrorget_standard_output({{ArgTypeString}} object, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} uX, {{ArgTypeAny}} uY, {{ArgTypeAny}} uZoutput_name)
EXAMPLE: ''mirrorget_standard_output("pyramid_1S11M",0,0,0,1,0,0)''
DESCRIPTION: Mirrors Returns the computed value of the specified standard output parameter at the end of a simulation. ====get_vertex==== SYNTAX: get_vertex({{ArgTypeString}} object, {{ArgTypeAny}} node_index, {{ArgTypeString}} coordinate) EXAMPLE: ''get_vertex("pyramid_1",0,"x")'' DESCRIPTION: Returns the specified coordinate of the specified vertex of the bounding box of an object in a plane defined . The vertices are specified by node indices. The lower front left corner has an index of 0, while the specified point coordinates upper back right corner has an index of 7. The indices are numbered counterclockwise, with the bottom face first and specified normal vector componentstop face next. ====get_volume==== SYNTAX: get_volume({{ArgTypeString}} object) EXAMPLE: ''get_volume("pyramid_1")'' DESCRIPTION: Returns the volume of a solid object. ====global_ground==== SYNTAX: global_ground({{ArgTypeAny}} ground_on, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma) EXAMPLE: ''global_ground(1,3.3,0.001)'' DESCRIPTION: Set the state of [[EM.Terrano]]'s global ground and its material properties. A zero value for ground_on means to no global ground assumed at Z = 0.
====group====
DESCRIPTION: Groups a number of objects into a composite object with the given label.
====arrayharm====
SYNTAX: arrayharm({{ArgTypeStringArgTypeReal}} labelx, {{ArgTypeStringArgTypeReal}} object, {{ArgTypeAny}} x_count, {{ArgTypeAny}} y_count, {{ArgTypeAny}} z_count, {{ArgTypeAny}} x_spacing, {{ArgTypeAny}} y_spacing, {{ArgTypeAny}} z_spacingy)
EXAMPLE: ''arrayharm("Array_1","Rect_Strip_1",4,4,1,50,50,02)''
DESCRIPTION: Creates or modifies an array objectComputes and returns the harmonic mean of x and y: 2/(1/x+1/y).
====array_customhelix====
SYNTAX: array_customhelix({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x_countx0, {{ArgTypeAny}} y_county0, {{ArgTypeAny}} z_countz0, {{ArgTypeAny}} x_spacing, {{ArgTypeAny}} y_spacing, {{ArgTypeAny}} z_spacing, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0radius_inner, {{ArgTypeAny}} rot_xradius_outer, {{ArgTypeAny}} rot_ynturns, {{ArgTypeAny}} rot_zhelix_dir)
EXAMPLE: ''array_customhelix("Array_1Helix_1","Rect_Strip_1"0,4,4,1,50,500,0,10015,10015,2010,0,0,45)''
DESCRIPTION: Creates Draws a helical curve in the project workspace under the currently activated material group node, or modifies an array object the helix named 'label' if it already exists. The parameter "radius_inner" specifies the helix's radius at the beginning of the helix, and sets its local coordinate system and rotation anglesradius_outer specifies the radius at the end of the helix. If the Boolean parameter "helixl_dir" is 1, the helical curve will be drawn counter-clockwise.
====explodehorn_design_a====
SYNTAX: explodehorn_design_a({{ArgTypeStringArgTypeReal}} objectD0_dB, {{ArgTypeReal}} a_lambda, {{ArgTypeReal}} b_lambda)
EXAMPLE: ''explodehorn_design_a("MyArray"15,0.4,0.3)''
DESCRIPTION: Explodes Computes and returns the wavelength-normalized larger dimension of the aperture of an object into its basic primitivesoptimal pyramidal horn antenna with directivity D0_dB and wavelength-normalized feed waveguide dimensions a_lambda and b_lambda.
====subtracthorn_design_b====
SYNTAX: subtracthorn_design_b({{ArgTypeStringArgTypeReal}} labelD0_dB, {{ArgTypeStringArgTypeReal}} object_1a_lambda, {{ArgTypeStringArgTypeReal}} object_2b_lambda)
EXAMPLE: ''subtracthorn_design_b("Subtract_Object"15,"Rect_Strip1"0.4,"Rect_Strip2"0.3)''
DESCRIPTION: Creates a Boolean object named 'label' by subtracting object_2 from object_1. An error will be thrown if a Boolean object named 'label' already existsComputes and returns the wavelength-normalized smaller dimension of the aperture of an optimal pyramidal horn antenna with directivity D0_dB and wavelength-normalized feed waveguide dimensions a_lambda and b_lambda.
====unionhorn_design_l====
SYNTAX: unionhorn_design_l({{ArgTypeStringArgTypeReal}} labelD0_dB, {{ArgTypeStringArgTypeReal}} object_1a_lambda, {{ArgTypeStringArgTypeReal}} object_2b_lambda)
EXAMPLE: ''unionhorn_design_l("Union_Object"15,"Rect_Strip1"0.4,"Rect_Strip2"0.3)''
DESCRIPTION: Computes and returns the wavelength-normalized length of an optimal pyramidal horn antenna with directivity D0_dB and wavelength-normalized feed waveguide dimensions a_lambda and b_lambda. ====huygens_src==== SYNTAX: huygens_src({{ArgTypeString}} label, {{ArgTypeAny}} filename[, {{ArgTypeAny}} set_lcs, {{ArgTypeAny}} polarization, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} x_rot, {{ArgTypeAny}} y_rot, {{ArgTypeAny}} z_rot]) EXAMPLE: ''huygens_src("HS_1","Huygens_1.HUY",1,100,100,0,0,0,0)'' DESCRIPTION: Creates a Boolean Huygens source. If the Huygens source 'label' already exists, its properties are modified. ====huygens_surface==== SYNTAX: huygens_surface({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2, {{ArgTypeAny}} xSamples, {{ArgTypeAny}} ySamples, {{ArgTypeAny}} zSamples) EXAMPLE: ''huygens_surface("HS_1",-10,-10,-10,10,10,10,40,40,40)'' DESCRIPTION: Creates a Huygens surface observable. If the observable 'label' already exists, its properties are modified. ====huygens_surface_grid==== SYNTAX: huygens_surface_grid({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2) EXAMPLE: ''huygens_surface_grid("HS_1",-10,-10,-10,10,10,10)'' DESCRIPTION: Creates a Huygens surface observable in [[EM.Tempo]]. If the observable 'label' already exists, its properties are modified. ====hyperbola==== SYNTAX: hyperbola({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} diam_x, {{ArgTypeAny}} diam_y, {{ArgTypeAny}} axial_length, {{ArgTypeAny}} half_only) EXAMPLE: ''hyperbola("Hyperbola _1",0,0,0,50,40,20,0)'' DESCRIPTION: Draws a hyperbola object in the project workspace under the currently activated material group node, or modifies the hyperbola named 'label' by unioning object_1 and object_2if it already exists. An error If the Boolean parameter "half_only" is 1, only half of the hyperbola will be thrown if drawn. ====impedance_surface_group==== SYNTAX: impedance_surface_group({{ArgTypeString}} label, {{ArgTypeAny}} z_real, {{ArgTypeAny}} z_imag) EXAMPLE: ''impedance_surface_group("IMP_1",100,-100)'' DESCRIPTION: Creates a Boolean object named impedance_surface group in [[EM.Illumina]]. If the impedance surface group 'label' already exists, the group is activated. ====impenetrable_surface_group==== SYNTAX: impenetrable_surface_group({{ArgTypeString}} label, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma) EXAMPLE: ''impenetrable_surface_group("Impenet_1",2.2,0.0001)'' DESCRIPTION: Creates an impenetrable surface group in [[EM.Terrano]]. If the impenetrable surface group 'label' already exists, the group is activated. ====import_dxf==== SYNTAX: import_dxf({{ArgTypeString}} file_name) EXAMPLE: ''import_dxf("MyDXFModel.DXF")'' DESCRIPTION: Imports an external DXF model file to the project workspace. If the file path is not specified, the current project folder is assumed as the path. ====import_igs==== SYNTAX: import_igs({{ArgTypeString}} file_name) EXAMPLE: ''import_igs("MyIGSModel.IGS")'' DESCRIPTION: Imports an external IGES model file to the project workspace. If the file path is not specified, the current project folder is assumed as the path. ====import_py==== SYNTAX: import_py({{ArgTypeString}} file_name) EXAMPLE: ''import_py("MyPYModel.PY")'' DESCRIPTION: Imports a Python geometry file to the project workspace. The default path is the Python subfolder under "Documents → EMAG". ====import_stl==== SYNTAX: import_stl({{ArgTypeString}} file_name) EXAMPLE: ''import_stl("MySTLModel.STL")'' DESCRIPTION: Imports an external STL model file to the project workspace. If the file path is not specified, the current project folder is assumed as the path. ====import_stp==== SYNTAX: import_stp({{ArgTypeString}} file_name) EXAMPLE: ''import_stp("MySTPModel.STP")'' DESCRIPTION: Imports an external STEP model file to the project workspace. If the file path is not specified, the current project folder is assumed as the path. ====inductance==== SYNTAX: inductance({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2, {{ArgTypeAny}} x3, {{ArgTypeAny}} y3, {{ArgTypeAny}} z3, {{ArgTypeAny}} x4, {{ArgTypeAny}} y4, {{ArgTypeAny}} z4) EXAMPLE: ''inductance("FI_1",0,0,-10,10,0,10,2.5,-2.5,0,7.5,2.5,0)'' DESCRIPTION: Creates a inductance integral observable in [[EM.Ferma]]. If the observable 'label' already exists, its properties are modified. ====inductor==== SYNTAX: inductor({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} inductance_nH) EXAMPLE: ''inductor("Cap_1","Line_1",25,10)'' DESCRIPTION: Creates a inductor in [[EM.Tempo]]. If the inductor 'label' already exists, its properties are modified.
====intersect====
DESCRIPTION: Creates a Boolean object named 'label' by intersecting object_1 and object_2. An error will be thrown if a Boolean object named 'label' already exists.
====extrudeline====
SYNTAX: extrudeline({{ArgTypeString}} label, {{ArgTypeStringArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} objectz0, {{ArgTypeAny}} extrude_heightlength[, {{ArgTypeAny}} cap_endsdir])
EXAMPLE: ''extrudeline("Extrude_1my_line",0,0,0,100,"Rect_Strip1x",50)''
DESCRIPTION: Creates or modifies an extrusion object from Draws a specified Line object by in the specified height. If modifying an existing extrusion objectproject workspace under the currently activated material group node, or modifies the pre-existing primitive is usedline named 'label' if it already exists. This command can only extrude objects that have a single face and will extrude along Without the face's normalargument "dir", a vertical line is drawn by default.
====loft====
DESCRIPTION: Creates or modifies a loft object from a specified object by the specified height. If modifying an existing loft object, the pre-existing primitive is used. This command can only loft objects that have a single face and will loft along the face's normal.
====revolvelumped_src====
SYNTAX: revolvelumped_src({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0line_object, {{ArgTypeAny}} z0offset, {{ArgTypeAny}} uXpolarity[, {{ArgTypeAny}} uYamplitude, {{ArgTypeAny}} uZphase, {{ArgTypeAny}} rot_angleresistance])
EXAMPLE: ''revolvelumped_src("Rev1LS_1","Line_1",050,0,0,0,0,1,360)''
DESCRIPTION: Creates or modifies a revolution object from a specified objectlumped source in [[EM.Tempo]]. If modifying an existing revolution object, the pre-existing primitive object is used. (x0lumped source 'label' already exists,y0,z0) specifies the center of revolution, and (uX,uY,uZ) specifies the revolution axis. The revolution angle "rot_angle" is given in degreesits properties are modified.
====consolidatemagnet_group====
SYNTAX: consolidatemagnet_group({{ArgTypeString}} objectlabel, {{ArgTypeAny}} mu, {{ArgTypeAny}} Mx, {{ArgTypeAny}} My, {{ArgTypeAny}} Mz)
EXAMPLE: ''consolidatemagnet_group("Poly_1Magnet_1",1,0,0,100)''
DESCRIPTION: Consolidates Creates a specified objectpermanent magnet source group in [[EM.Ferma]]. If the magnet group 'label' already exists, the group is activated.
====spline_fitmcos====
SYNTAX: spline_fitmcos({{ArgTypeStringArgTypeReal}} objectx, {{ArgTypeReal}} r)
EXAMPLE: ''spline_fitmcos("Poly_1"0.5,2)''
DESCRIPTION: Applies spline fit transformation on a specified polymesh, polyline or polystrip objectComputes and returns the super-quadratic cosine function of order r.
====fill_curvemean====
SYNTAX: fill_curvemean({{ArgTypeStringArgTypeReal}} objectx, {{ArgTypeReal}} y)
EXAMPLE: ''fill_curvemean("Curve_1"1,2)''
DESCRIPTION: Fill Computes and returns the interior arithmetic mean of the specified closed curve objectx and y: 0.5*(x+y).
====merge_curve====
DESCRIPTION: Merges two specified curve objects into a single curve.
====close_curvemesh====
SYNTAX: close_curvemesh({{ArgTypeString}} label, {{ArgTypeString}} close_state)
SYNTAX: nurbs_strip({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn) EXAMPLE: ''nurbs_strip("ns_1",(0,0,0),(1,0,0),(1,0,0))'' DESCRIPTION: Creates or modifies a color group NURBS Strip object in CubeCAD modulethe project workspace. Each point is represented with a Python tuple type. The nurbs_strip function is 'self-closing' -- there is no need to supply the first point again at the end of the point list. ====ohmic_loss==== SYNTAX: ohmic_loss({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2) EXAMPLE: ''ohmic_loss("FI_1",-10,-10,-10,10,10,10)'' DESCRIPTION: Creates an ohmic loss integral observable in [[EM.Ferma]]. If the color group observable 'label' already exists, its properties are modified. ====parabola==== SYNTAX: parabola({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} focal_length, {{ArgTypeAny}} axial_length, {{ArgTypeAny}} half_only) EXAMPLE: ''parabola("Parabola _1",0,0,0,50,20,0)'' DESCRIPTION: Draws a parabola object in the project workspace under the currently activated material group node, or modifies the parabola named 'label' if it already exists. If the Boolean parameter "half_only" is 1, only half of the parabola will be drawn. ====param_curve==== SYNTAX: param_curve({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} model, {{ArgTypeAny}} orientation, {{ArgTypeAny}} start, {{ArgTypeAny}} stop, {{ArgTypeAny}} step, {{ArgTypeAny}} function[, {{ArgTypeAny}} y(t), {{ArgTypeAny}} z(t)]) EXAMPLE: ''param_curve("Curve_1",0,0,0,"parametric","xy",0,10,0.1,"cos(t)","sin(t)","t")'' DESCRIPTION: Generates a parametric curve in the project workspace under the currently activatedmaterial group node, or modifies the parametric curve named 'label' if it already exists. ====param_surface==== SYNTAX: param_surface({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} orientation, {{ArgTypeAny}} start1, {{ArgTypeAny}} stop1, {{ArgTypeAny}} step1, , {{ArgTypeAny}} start2, {{ArgTypeAny}} stop2, {{ArgTypeAny}} step2, {{ArgTypeAny}} function) EXAMPLE: ''param_surface("Surf_1",0,0,0,"xy",0,10,0.1,0,10,0.1,"sin(x)*sin(y)")'' DESCRIPTION: Generates a parametric surface in the project workspace under the currently activated material group node, or modifies the parametric surface named 'label' if it already exists.
====pec_group====
DESCRIPTION: Creates a PEC material group in the current module. If the PEC group 'label' already exists, the group is activated.
====pec_via_group====
SYNTAX: pec_via_group({{ArgTypeString}} label, {{ArgTypeAny}} host_layer)
EXAMPLE: ''pec_via_group("PEC_1",10)''
DESCRIPTION: Creates an embedded PEC via set group in the current module. If the PEC via group 'label' already exists, the group is activated.
====pec_voltage_group====
DESCRIPTION: Creates a fixed-potential PEC object group in the current module. If the PEC group 'label' already exists, the group is activated.
====pec_via_grouppenetrable_surface_group====
SYNTAX: pec_via_grouppenetrable_surface_group({{ArgTypeString}} label, {{ArgTypeAny}} host_layereps, {{ArgTypeAny}} sigma, {{ArgTypeAny}} thickness)
EXAMPLE: ''pec_via_grouppenetrable_surface_group("PEC_1Penet_1",102.2,0.0001, 1)''
DESCRIPTION: Creates an embedded PEC via set a penetrable surface group in the current module[[EM.Terrano]]. If the PEC via penetrable surface group 'label' already exists, the group is activated.
====thinwire_grouppenetrable_volume_group====
SYNTAX: thinwire_grouppenetrable_volume_group({{ArgTypeString}} label, {{ArgTypeAny}} radiuseps, {{ArgTypeAny}} sigma)
EXAMPLE: ''thinwire_grouppenetrable_volume_group("Thinwire_1Vol_Penet_1",42.2,0.0001)''
DESCRIPTION: Creates a Thinwire material penetrable volume group in the current module[[EM.Terrano]]. If the thin wire penetrable volume group 'label' already exists, the group is activated.
====pmc_grouppipe_sweep====
SYNTAX: pmc_grouppipe_sweep({{ArgTypeString}} labelobject, {{ArgTypeAny}} radius)
EXAMPLE: ''pmc_grouppipe_sweep("PMC_1Curve_1",5)''
DESCRIPTION: Creates a PMC material group in the current module. If the PMC group 'label' already exists, the group is activatedpipe version of a given curve object.
====slot_groupplanewave====
SYNTAX: slot_groupplanewave({{ArgTypeString}} label, {{ArgTypeAny}} theta, {{ArgTypeAny}} phi, {{ArgTypeAny}} polarization)
'EXAMPLE: ''slot_groupplanewave("PMC_1PW_1",180,0,"tm")''
DESCRIPTION: Creates a slot trace group in the current moduleplane wave source. If the slot trace group plane wave source 'label' already exists, the group is activatedits properties are modified.
====dielectric_groupplot_file====
SYNTAX: dielectric_groupplot_file({{ArgTypeString}} label, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma, {{ArgTypeAny}} mu, {{ArgTypeAny}} rhofilename)
EXAMPLE: ''dielectric_groupplot_file("Dielectric_1D0.DAT","my_eps",0,1,0)''
DESCRIPTION: Creates Plots the contents of a dielectric material group specified data file in the current module with the specified material propertiesEM. If the dielectric group 'label' already exists, the group is activatedGrid.
====impenetrable_surface_grouppmc_group====
SYNTAX: impenetrable_surface_grouppmc_group({{ArgTypeString}} label, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma)
EXAMPLE: ''impenetrable_surface_grouppmc_group("Impenet_1PMC_1",2.2,0.0001)''
DESCRIPTION: Creates an impenetrable surface a PMC material group in [[EM.Terrano]]the current module. If the impenetrable surface PMC group 'label' already exists, the group is activated.
====penetrable_surface_grouppoint====
SYNTAX: penetrable_surface_grouppoint({{ArgTypeString}} label, {{ArgTypeAny}} epsx0, {{ArgTypeAny}} sigmay0, {{ArgTypeAny}} thicknessz0)
EXAMPLE: ''penetrable_surface_grouppoint("Penet_1Point_1",2.20,0.0001, 110)''
DESCRIPTION: Creates Draws a penetrable surface group point in [[EM.Terrano]]. If the penetrable surface project workspace under the currently activated material group node, or modifies the point named 'label' if it already exists, the group is activated.
====penetrable_volume_grouppolygon_reg====
SYNTAX: penetrable_volume_grouppolygon_reg({{ArgTypeString}} label, {{ArgTypeAny}} epsx0, {{ArgTypeAny}} sigmay0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} n_sides)
EXAMPLE: ''penetrable_volume_grouppolygon_reg("Vol_Penet_1ts_1",2.20,0.0001,0,50,100,80,1)''
DESCRIPTION: Creates Draws a penetrable volume group regular polygon object in [[EM.Terrano]]. If the penetrable volume project workspace under the currently activated material group node, or modifies the regular polygon object named 'label' if it already exists, the group is activated.
====terrain_grouppolygonize====
SYNTAX: terrain_grouppolygonize({{ArgTypeString}} labelobject, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigmaside_length)
EXAMPLE: ''terrain_grouppolygonize("Terrain_1Cric_1",5.0,0.00012)''
DESCRIPTION: Creates an terrain surface group in [[EM.Terrano]]. If Polygonizes the terrain specified surface group 'label' already exists, or curve object by the group specified side length. The results is activateda polystrip or a polyline.
====base_point_grouppolyline====
SYNTAX: base_point_grouppolyline({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn)
EXAMPLE: ''base_point_setpolyline("BP_Set_1pl_1",(0,0,0),(1,0,0),(1,0,0))''
DESCRIPTION: Creates or modifies a base point set PolyLine object in [[EM.Terrano]]. If the base project workspace. Each point set group 'label' already existsis represented with a Python tuple type. The poly_line is closed if p0 is specified again as pn, the group otherwise, it is activatedopen.
====virtual_grouppolymesh====
SYNTAX: virtual_grouppolymesh({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} edge_length)
EXAMPLE: ''virtual_grouppolymesh("VIR_1Poly_1","Cric_1",2)''
DESCRIPTION: Creates a virtual Discretizes the specified solid or surface object group in [[EM.Terrano]]. If by the virtual group 'label' already exists, the group specified edge length. The results is activateda polymesh object.
====impedance_surface_grouppolystrip====
SYNTAX: impedance_surface_grouppolystrip({{ArgTypeString}} label, {{ArgTypeAnyArgType| 3x1 Python tuple}} z_realp0, {{ArgTypeAnyArgType| 3x1 Python tuple}} z_imagp1, ... {{ArgType| 3x1 Python tuple}} pn)
EXAMPLE: ''impedance_surface_grouppolystrip("IMP_1ps_1",100(0,0,0),(1,0,0),(1,0,-1000))''
DESCRIPTION: Creates or modifies a impedance_surface group Polystrip object in [[EMthe project workspace.Illumina]]Each point is represented with a Python tuple type. If the impedance surface group The poly_strip function is 'labelself-closing' already exists, the group -- there is activatedno need to supply the first point again at the end of the point list.
====conductive_sheet_groupport_definition_custom====
SYNTAX: conductive_sheet_groupport_definition_custom({{ArgTypeString}} label, ({{ArgTypeAnyArgTypeString}} sigmaport_1_src_1, {{ArgTypeAnyArgTypeString}} thicknessport_1_src_2, ..., {{ArgTypeString}} port_1_impedance), ({{ArgTypeString}} port_2_src_1, {{ArgTypeString}} port_2_src_2, ..., {{ArgTypeString}} port_2_impedance), ...)
EXAMPLE: ''conductive_sheet_groupport_definition_custom("Cond_1PD_1",100("LS_1","LS_2",50),,("LS_3","LS_4", 0.0150))''
DESCRIPTION: Creates a conductive sheet group in [[EM.Picasso]]custom port definition observable. If the conductive sheet group observable 'label' already exists, the group is activatedits properties are modified.
====charge_groupport_definition_default====
SYNTAX: charge_groupport_definition_default({{ArgTypeString}} label, {{ArgTypeAny}} density)
EXAMPLE: ''charge_groupport_definition_default("Charge_1PD_1",-1e-5)''
DESCRIPTION: Creates a volume charge source group in [[EM.Ferma]]default port definition observable. If the charge group observable 'label' already exists, the group is activatedits properties are modified.
====magnet_groupprobe_gap_src====
SYNTAX: magnet_groupprobe_gap_src({{ArgTypeString}} label, {{ArgTypeAny}} muvia_object, {{ArgTypeAny}} Mxpolarity[, {{ArgTypeAny}} Myamplitude, {{ArgTypeAny}} Mzphase, {{ArgTypeAny}} resistance])
EXAMPLE: ''magnet_groupprobe_gap_src("Magnet_1Probe_1",1"Via_1",0,0,100)''
DESCRIPTION: Creates a permanent magnet probe gap circuit source group in [[EM.FermaPicasso]]. If the magnet group probe gap source 'label' already exists, the group is activatedits properties are modified.
====volume_current_grouppyramid====
SYNTAX: volume_current_grouppyramid({{ArgTypeString}} label, {{ArgTypeAny}} Jxx0, {{ArgTypeAny}} Jyy0, {{ArgTypeAny}} Jzz0, {{ArgTypeAny}} base_x, {{ArgTypeAny}} base_y, {{ArgTypeAny}} height)
EXAMPLE: ''volume_current_grouppyramid("Magnet_1Pyramid_1",0,0,1e60,10,10,100)''
DESCRIPTION: Creates Draws a volume current source group pyramid object in [[EM.Ferma]]. If the volume current project workspace under the currently activated material group node, or modifies the pyramid named 'label' if it already exists, the group is activated.
====wire_current_groupradial_strip====
SYNTAX: wire_current_groupradial_strip({{ArgTypeString}} label, {{ArgTypeAny}} currentx0, {{ArgTypeAny}} wire_radiusy0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} base_length, {{ArgTypeAny}} angle)
EXAMPLE: ''wire_current_groupradial_strip("Magnet_1Radial_1",10,0.5,0,50,0,90)''
DESCRIPTION: Creates Draws a wire current source group radial strip object in [[EM.Ferma]]. If the wire current project workspace under the currently activated material group node, or modifies the radial strip object named 'label' if it already exists, the group is activated.
== EM.Cube's Python Functions for Source & Lumped Device Definition ==rail_sweep====
====rect_gap_src====
DESCRIPTION: Creates a strip gap circuit source in [[EM.Picasso]] or [[EM.Libera]]. If the strip gap source 'label' already exists, its properties are modified.
====probe_gap_srcrect_strip====
SYNTAX: probe_gap_srcrect_strip({{ArgTypeString}} label, {{ArgTypeAny}} via_objectx0, {{ArgTypeAny}} polarity[y0, {{ArgTypeAny}} amplitudez0, {{ArgTypeAny}} phaseside_x, {{ArgTypeAny}} resistance]side_y)
EXAMPLE: ''probe_gap_srcrect_strip("Probe_1my_rectangle","Via_1"0,0,0,50,20)''
DESCRIPTION: Creates Draws a probe gap circuit source rectangle Strip object in [[EM.Picasso]]. If the probe gap source project workspace under the currently activated material group node, or modifies the rectangle strip object named 'label' if it already exists, its properties are modified.
====wave_portrename====
SYNTAX: wave_portrename({{ArgTypeString}} labelnew_label, {{ArgTypeAny}} rect_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} is_negative[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAnyArgTypeString}} resistance]old_label)
EXAMPLE: ''wave_portrename("WP_1Box_2","Rect_1Box_1",0,0)''
DESCRIPTION: Creates Deletes a scattering wave port node name from the navigation tree. The node can be any geometric object, source in [[EM.Picasso]] , observable or [[EM.Libera]]. If the wave port 'label' already exists, its properties are modifiedmaterial group.
====short_dipoleresistance====
SYNTAX: short_dipoleresistance({{ArgTypeString}} label, {{ArgTypeAny}} x0x1, {{ArgTypeAny}} y0y1, {{ArgTypeAny}} z0z1, {{ArgTypeAny}} lengthx2, {{ArgTypeAny}} uXy2, {{ArgTypeAny}} uYz2, {{ArgTypeAny}} uZx3, {{ArgTypeAny}} amplitudey3, {{ArgTypeAny}} phasez3, {{ArgTypeAny}} x4, {{ArgTypeAny}} y4, {{ArgTypeAny}} z4)
EXAMPLE: ''short_dipoleresistance("SD_1FI_1",0,0,50-10,30,0,10,-10,-10,0,110,110,0)''
DESCRIPTION: Creates a Hertzian short dipole sourceresistance integral observable in [[EM.Ferma]]. If the short dipole source observable 'label' already exists, its properties are modified.
====planewaveresistor====
SYNTAX: planewaveresistor({{ArgTypeString}} label, {{ArgTypeAny}} thetaline_object, {{ArgTypeAny}} phioffset, {{ArgTypeAny}} polarizationresistance)
DESCRIPTION: Creates a plane wave sourceresistor in [[EM.Tempo]]. If the plane wave source resistor 'label' already exists, its properties are modified.
====gauss_beamrevolve====
SYNTAX: gauss_beamrevolve({{ArgTypeString}} label, {{ArgTypeAny}} theta, {{ArgTypeAnyArgTypeString}} phiobject, {{ArgTypeAny}} polarizationx0, {{ArgTypeAny}} focus_xy0, {{ArgTypeAny}} focus_yz0, {{ArgTypeAny}} focus_zuX, {{ArgTypeAny}} radiusuY, {{ArgTypeAny}} p_modeuZ, {{ArgTypeAny}} q_moderot_angle)
EXAMPLE: ''gauss_beamrevolve("PW_1Rev1",180,0,"tmLine_1",0,0,0,200,0,01,360)''
DESCRIPTION: Creates or modifies a Gaussian beam source in [[EM.Tempo]]revolution object from a specified object. If modifying an existing revolution object, the Gaussian beam source 'label' already existspre-existing primitive object is used. (x0, its properties are modifiedy0,z0) specifies the center of revolution, and (uX,uY,uZ) specifies the revolution axis. The revolution angle "rot_angle" is given in degrees.
====huygens_srcrosen====
SYNTAX: huygens_srcrosen({{ArgTypeStringArgTypeReal}} labelx, {{ArgTypeAnyArgTypeReal}} filename[y, {{ArgTypeAnyArgTypeReal}} set_lcsa, {{ArgTypeAnyArgTypeReal}} polarization, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} x_rot, {{ArgTypeAny}} y_rot, {{ArgTypeAny}} z_rot]b)
EXAMPLE: ''huygens_srcrosen("HS_1","Huygens_10.HUY",1,100,1005,0,01,0,02)''
DESCRIPTION: Creates a Huygens source. If Computes and returns the Huygens source 'label' already exists, its properties are modifiedRosenbrock function: (a-x)**2 + b*(y-x**2)**2.
====transmitter_setrotate====
SYNTAX: transmitter_setrotate({{ArgTypeString}} labelobject, {{ArgTypeAny}} base_point_set[rot_angle_degree, {{ArgTypeAny}} pattern_filerot_axis_x, {{ArgTypeAny}} rot_xrot_axis_y, {{ArgTypeAny}} rot_y, {{ArgTypeAny}} rot_zrot_axis_z)
EXAMPLE: ''transmitter_setrotate("TX_1pyramid_1","PT_1","DPL_STD.RAD"45,01,901,0)''
DESCRIPTION: Creates Rotates an object about a transmitter set in [[EM.Terrano]]. If the transmitter set 'label' already exists, line passing through its properties are modifiedLCS center and aligned along the specified direction vector (rot_axis) by the specified angle.
====resistorroughen====
SYNTAX: resistorroughen({{ArgTypeString}} label, {{ArgTypeAnyArgTypeString}} line_objectobject, {{ArgTypeAny}} offsetrms_height, {{ArgTypeAny}} resistancecorrel_length)
EXAMPLE: ''resistorroughen("Res_1Rect_1","Line_1",251,505)''
DESCRIPTION: Creates a resistor in [[EM.Tempo]]. If Roughens the resistor 'label' already exists, its properties are modifiedsurface of the specified object based on the specified RMS height and correlation length.
====capacitorrun_analysis====
SYNTAX: capacitorrun_analysis({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} capacitance_pF)
EXAMPLE: ''Example: port_definition_customselect_module("PD_1",("LS_1","LS_2",50),,("LS_3","LS_4[[EM.Tempo]]",50))''
====farfield({{ArgTypeString}} label, {{ArgTypeAny}} theta_incr, {{ArgTypeAny}} phi_incr)set_bandwidth====
EXAMPLE: ''Example: field_sensorset_domain_offset("FS_1"20,"z"20,020,020,0,100,100,0,25,25,010)''
====field_sensor_grid({{ArgTypeString}} label, {{ArgTypeAny}} dir_coordinate, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0)set_domain_offset_lambda====
EXAMPLE: ''Example: huygens_surfaceset_lcs_link("HS_1pyramid_1",-10,-10,-10,10,10,10"box_1",4050,4050,400)''
====huygens_surface_grid({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2)set_periodic====
EXAMPLE: ''Example: conduction_current_integralset_rot_link("FI_1pyramid_1",-10,-10"box_1",0,10,10,0,45)''
====capacitance({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2, {{ArgTypeAny}} x3, {{ArgTypeAny}} y3, {{ArgTypeAny}} z3, {{ArgTypeAny}} x4, {{ArgTypeAny}} y4, {{ArgTypeAny}} z4)set_stackup_order====
EXAMPLE: ''Example: flux_electricsgn("FI_1",-10,-10,5,10,10,101.0)''
====flux_magnetic({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2)short_dipole====
EXAMPLE: ''Example: ohmic_losssinc("FI_1",-10,-10,-10,10,10,100.5)''
====solution_plane({{ArgTypeString}} label, {{ArgTypeAny}} field_sensor_label, {{ArgTypeAny}} is_quasi)slice====
====select_module({{ArgTypeString}} module_name)slot_group====
EXAMPLE: ''Example: set_bandwidthsphere(1e9"Sphere_1",0,0,0,10,0,180)''
====background_layer({{ArgTypeString}} label, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma, {{ArgTypeAny}} mu, {{ArgTypeAny}} thickness)spiral_curve====
DESCRIPTION: Draws a spiral strip object in the project workspace under the currently activated material group node, or modifies the spiral strip named 'label'Example: background_layer(if it already exists. If the Boolean parameter "THSspiral_dir"is 1,the spiral curve will be drawn counter-clockwise. If the Boolean parameter "Top_Layeris_dual"is 1,"Mid_Layer","Bottom_Layer","BHS")''a dual-arm spiral curve will be drawn.
EXAMPLE: ''Example: global_groundspline_fit(1,3.3,0.001"Poly_1")''
====delete({{ArgTypeString}} node_name)spline2====
====get_domain_extent({{ArgTypeString}} coordinate)sqr_wave====
DESCRIPTION: Computes and returns the periodic square wave function of period T ====set_domain_offset({{ArgTypeAny}} dxn_offset2, {{ArgTypeAny}} dxp_offset, {{ArgTypeAny}} dyn_offset, {{ArgTypeAny}} dyp_offset, {{ArgTypeAny}} dzn_offset, {{ArgTypeAny}} dzp_offset)===oscillating between two values +1 and -1 and having a value of +1 at x =0.
EXAMPLE: ''Example: set_domain_offset_lambdasqr2("pml","pml","pml","pml"0,"pec"1,"pml"2)''
====add_variable({{ArgTypeString}} var_name, {{ArgTypeAny}} value)sqrt2====
EXAMPLE: ''Example: set_periodicsqrt3(10,501,502)''
====get_standard_output({{ArgTypeString}} output_name) step====
EXAMPLE: ''Example: empicasso_mesh_settingstaper_strip(30"ts_1",0,0,0,50,100,80,1)''
====emlibera_mesh_settings({{ArgTypeAny}} cells_per_lambda)terrain_group====
DESCRIPTION: Creates a Thinwire material group in the current module. If the thin wire group 'label'Example: emterrano_mesh_settings(5already exists,10)''the group is activated.
EXAMPLE: ''Example: cubecad_mesh_settingstorus(5"Torus_1",0,0,0,50,1020)''
====emtempo_engine_settings({{ArgTypeString}} engine, {{ArgTypeAny}} power_threshhold, {{ArgTypeAny}} max_timesteps)translate_by====
EXAMPLE: ''Example: emillumina_engine_settingstransmitter_set("ipoTX_1","PT_1","DPL_STD.RAD",0,1e-290,200)''
====emferma_engine_settings({{ArgTypeString}} matrix_solver, {{ArgTypeAny}} error_tol, {{ArgTypeAny}} max_iterations)tri====
DESCRIPTION: Computes and returns the triangular window function: 1-|x| if x<1, 0 elsewhere. ====emlibera_engine_settings_wmomtri_wave==== SYNTAX: tri_wave({{ArgTypeReal}} x) EXAMPLE: ''tri_wave(0.5)'' DESCRIPTION: Computes and returns the periodic triangular wave function of period T = 2, oscillating between two values +1 and -1 and having a value of +1 at x = 0. ====triangle_strip==== SYNTAX: triangle_strip({{ArgTypeString}} matrix_solverlabel, {{ArgTypeAny}} error_tolx0, {{ArgTypeAny}} max_iterationsy0, {{ArgTypeAny}} z0, {{ArgTypeAny}} side1, {{ArgTypeAny}} side2, {{ArgTypeAny}} angle) EXAMPLE: ''triangle_strip("ts_1",0,0,0,50,100,90)'' DESCRIPTION: Draws a triangle strip object in the project workspace under the currently activated material group node, or modifies the triangle strip object named 'label' if it already exists. ====union==== SYNTAX: union({{ArgTypeString}} label, {{ArgTypeString}} object_1, {{ArgTypeString}} object_2) EXAMPLE: ''union("Union_Object","Rect_Strip1","Rect_Strip2")'' DESCRIPTION: Creates a Boolean object named 'label' by unioning object_1 and object_2. An error will be thrown if a Boolean object named 'label' already exists. ====virtual_group==== SYNTAX: virtual_group({{ArgTypeString}} label) EXAMPLE: ''virtual_group("VIR_1")'' DESCRIPTION: Creates a virtual object group in [[EM.Terrano]]. If the virtual group 'label' already exists, the group is activated. ====voltage_integral==== SYNTAX: voltage_integral({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2) EXAMPLE: ''voltage_integral("FI_1",0,0,-10,0,0,10)'' DESCRIPTION: Creates a voltage integral observable in [[EM.Ferma]]. If the observable 'label' already exists, its properties are modified. ====volume_current_group==== SYNTAX: volume_current_group({{ArgTypeString}} label, {{ArgTypeAny}} Jx, {{ArgTypeAny}} Jy, {{ArgTypeAny}} Jz) EXAMPLE: ''volume_current_group("Magnet_1",0,0,1e6)'' DESCRIPTION: Creates a volume current source group in [[EM.Ferma]]. If the volume current group 'label' already exists, the group is activated. ====wave_port==== SYNTAX: wave_port({{ArgTypeString}} label, {{ArgTypeAny}} rect_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} is_negative[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]) EXAMPLE: ''wave_port("WP_1","Rect_1",0,0)'' DESCRIPTION: Creates a scattering wave port source in [[EM.Picasso]] or [[EM.Libera]]. If the wave port 'label' already exists, its properties are modified. ====waveguide_design==== SYNTAX: waveguide_design({{ArgTypeReal}} er, {{ArgTypeReal}} freq_hertz) EXAMPLE: ''waveguide_design(1.0,2e9)'' DESCRIPTION: Computes and returns the minimum larger dimension (in meters) of the cross section of a hollow rectangular waveguide above cutoff with a material filling of relative permittivity er at an operating frequency of freq_hertz. ====waveguide_src==== SYNTAX: waveguide_src({{ArgTypeString}} label, {{ArgTypeAny}} box_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} is_negative[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]) EXAMPLE: ''waveguide_src("WG_1","Box_1",50,0)'' DESCRIPTION: Creates a waveguide port source in [[EM.Tempo]]. If the waveguide port 'label' already exists, its properties are modified. ====wire_current_group==== SYNTAX: wire_current_group({{ArgTypeString}} label, {{ArgTypeAny}} current, {{ArgTypeAny}} wire_radius) EXAMPLE: ''wire_current_group("Magnet_1",1,0.5)'' DESCRIPTION: Creates a wire current source group in [[EM.Ferma]]. If the wire current group 'label' already exists, the group is activated. ====wire_gap_src==== SYNTAX: wire_gap_src({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} polarity[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]) EXAMPLE: ''wire_gap_src("WIG_1","Line_1",50,0)'' DESCRIPTION: Creates a wire gap circuit source in [[EM.Libera]]. If the wire gap source 'label' already exists, its properties are modified.
[[Image:Back_icon.png|40px30px]] '''[[EM.Cube | Back to EM.Cube Main Page]]'''