Changes

Glossary of EM.Cube's Python Functions

51,244 bytes added, 22:22, 11 June 2018
<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
|-
| ceiling(x)
| Std. Python function
| Ceiling function
| Nearest integer >= x
|-
| floor(x)
| Std. Python function
| Floor function
| Nearest integer <= x
|-
| 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 ==
{| class="wikitable"!scope="col"| Syntax!scope="col"| Type!scope="col"| Description!scopeactivate="col"| Notes|-| style="width:80px;" | rect(x)| style="width:150px;" | EMAG Python function| style="width:270px;" | Rectangle function| style="width:270px;" | 1 if |x|&le;0.5, 0 elsewhere |-| tri(x)| EMAG Python function| Triangle function| 1 if |1-x|&le;1, 0 elsewhere |-| spline2(x)| EMAG Python function| Quadratic spline function| -|-| spline3(x)| EMAG Python function| Cubic spline function| -|-| step(x)| EMAG Python function| Step function| 1 if x>0, 0 if x<0|-| sgn(x)| Std. Python function| Sign function| 1 if x>0, -1 if x<0|-| ramp(x)| EMAG Python function| Ramp function| -|-| sqr_wave(x)| EMAG Python function| Square wave function| -|-| tri_wave(x)| EMAG Python function| Triangle wave function| -|-| sawtooth(x)| EMAG Python function| Sawtooth wave function| -|-| sinc(x)| EMAG Python function| Sinc function| sin(pi*x)/(pi*x)|-| gauss(x)| Std. Python function| Gaussian function| -|-| rand(x,y)| EMAG Python function| Random function| -|}
== EM.Cube's Design Python Functions ==SYNTAX: activate({{ArgTypeString}} group_node_label)
{| classEXAMPLE: ''activate("Color_1")'' DESCRIPTION: Activates a color, material or object group in the current active [[EM.Cube]] module for insertion of new objects.  ====add_variable==== SYNTAX: add_variable({{ArgTypeString}} var_name, {{ArgTypeAny}} value) EXAMPLE: ''add_variable("wikitableMyVar",1)'' DESCRIPTION: Adds a new variable to [[EM.Cube]]'s variable list. !scope====array==== SYNTAX: array({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x_count, {{ArgTypeAny}} y_count, {{ArgTypeAny}} z_count, {{ArgTypeAny}} x_spacing, {{ArgTypeAny}} y_spacing, {{ArgTypeAny}} z_spacing) EXAMPLE: ''array("colArray_1"| Syntax,"Rect_Strip_1",4,4,1,50,50,0)'' DESCRIPTION: Creates or modifies an array object. !scope====array_custom==== SYNTAX: array_custom({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x_count, {{ArgTypeAny}} y_count, {{ArgTypeAny}} z_count, {{ArgTypeAny}} x_spacing, {{ArgTypeAny}} y_spacing, {{ArgTypeAny}} z_spacing, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} rot_x, {{ArgTypeAny}} rot_y, {{ArgTypeAny}} rot_z) EXAMPLE: ''array_custom("colArray_1"| Type,"Rect_Strip_1",4,4,1,50,50,0,100,100,20,0,0,45)'' DESCRIPTION: Creates or modifies an array object and sets its local coordinate system and rotation angles. !scope====background_layer==== SYNTAX: background_layer({{ArgTypeString}} label, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma, {{ArgTypeAny}} mu, {{ArgTypeAny}} thickness) EXAMPLE: ''background_layer("colMid_Layer"| Description,3.3,0.001,1,1.5)'' DESCRIPTION: Adds a new substrate layer to [[EM.Picasso]]'s background layer stackup. !scope====base_point_group==== SYNTAX: base_point_group({{ArgTypeString}} label) EXAMPLE: ''base_point_set("colBP_Set_1"| Notes)''|-| Z0_MSDESCRIPTION: Creates a base point set in [[EM.Terrano]]. If the base point set group 'label' already exists, the group is activated. ====bh_step==== SYNTAX: bh_step(e{{ArgTypeReal}} x,{{ArgTypeReal}} T) EXAMPLE: ''bh_step(0.5,1)'' DESCRIPTION: Computes and returns the Blackman-Harris step function. ====bh_window==== SYNTAX: bh_window({{ArgTypeReal}} x, {{ArgTypeReal}} T)| EMAG Python EXAMPLE: ''bh_window(0.5,1)'' DESCRIPTION: Computes and returns the Blackman-Harris window function.| Characteristic impedance of ====box==== SYNTAX: box({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_x, {{ArgTypeAny}} base_y, {{ArgTypeAny}} height[, {{ArgTypeAny}} cap_top, {{ArgTypeAny}} cap_bottom]) EXAMPLE: ''box("Box_1",0,0,0,50,50,100)'' DESCRIPTION: Draws a microstrip transmission line box object in the project workspace under the currently activated material group node, or modifies the box named 'label' if it already exists.| x====capacitance==== SYNTAX: widthcapacitance({{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",-to10,-height ratio10, e5,10,10,10,0,0,-10,0,0,10)'' DESCRIPTION: substrate permittivityCreates 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)''| w_MSDESCRIPTION: Creates a volume charge source group in [[EM.Ferma]]. If the charge group 'label' already exists, the group is activated. ====circ_strip==== SYNTAX: circ_strip(z{{ArgTypeString}} label,e{{ArgTypeAny}} x0,t{{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} inner_radius, {{ArgTypeAny}} outer_radius[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle])| EMAG Python function| Width EXAMPLE: ''circ_strip("cs_1",0,0,0,50,0)'' 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. ====circle==== SYNTAX: circle({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle) EXAMPLE: ''circle("pyramid_1",0,0,0,10,10,100)'' DESCRIPTION: Draws a circular curve 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. ====clone==== SYNTAX: clone({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeReal}} x0, {{ArgTypeReal}} y0, {{ArgTypeReal}} z0) EXAMPLE: ''clone("NewObj","MyObj",10,10,0)'' DESCRIPTION: Creates a copy of the specified object and repositions it at the given coordinates.  ====close_curve==== SYNTAX: close_curve({{ArgTypeString}} label, {{ArgTypeString}} close_state) EXAMPLE: ''close_curve("Curve_1",1)'' DESCRIPTION: Sets the open/close state of a microstrip polyline or NURBS curve. Use 0 for open curve and 1 for close curve. ====coaxial_design==== SYNTAX: coaxial_design({{ArgTypeReal}} z0, {{ArgTypeReal}} er) EXAMPLE: ''coaxial_design(50,2.2)'' DESCRIPTION: Computes and returns the ratio of the radius of the outer conductor to the radius of the inner conductor of a coaxial transmission line of characteristic impedance z0 (in Ohms) with core relative permittivity er.| ====coaxial_src==== SYNTAX: coaxial_src({{ArgTypeString}} label, {{ArgTypeAny}} cylinder_object, {{ArgTypeAny}} outer_radius, {{ArgTypeAny}} edge[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]) EXAMPLE: ''coaxial_src("COAX_1","Cyl_1",1.5,"+z")'' DESCRIPTION: characteristic impedanceCreates a coaxial port source in [[EM.Tempo]]. If the coaxial port 'label' already exists, eits properties are modified. ====color_group==== SYNTAX: substrate permittivitycolor_group({{ArgTypeString}} label) EXAMPLE: ''color_group("Color_1")'' DESCRIPTION: Creates a color group in CubeCAD module. If the color group 'label' already exists, tthe group is activated. ====conduction_current_integral==== SYNTAX: substrate thicknessconduction_current_integral({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2)|EXAMPLE: ''conduction_current_integral("FI_1",-10,-10,0,10,10,0)''| eeff_MSDESCRIPTION: Creates a conduction current integral observable in [[EM.Ferma]]. If the observable 'label' already exists, its properties are modified. ====conductive_sheet_group==== SYNTAX: conductive_sheet_group(e{{ArgTypeString}} label,x{{ArgTypeAny}} sigma, {{ArgTypeAny}} thickness)| EMAG Python function| Effective EXAMPLE: ''conductive_sheet_group("Cond_1",100, 0.01)'' DESCRIPTION: Creates a conductive sheet group in [[EM.Picasso]]. If the conductive sheet group 'label' already exists, the group is activated. ====cone==== SYNTAX: cone({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_radius, {{ArgTypeAny}} height[, {{ArgTypeAny}} top_radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle, {{ArgTypeAny}} cap_top, {{ArgTypeAny}} cap_bottom]) EXAMPLE: ''cone("Cone_1",0,0,0,30,40,20,0,180)'' DESCRIPTION: Draws a cone object in the project workspace under the currently activated material group node, or modifies the cone named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the cone's azimuth axis. ====consolidate==== SYNTAX: consolidate({{ArgTypeString}} object) EXAMPLE: ''consolidate("Poly_1")'' DESCRIPTION: Consolidates a specified object. ====cpw_design_s==== SYNTAX: cpw_design_s({{ArgTypeReal}} z0, {{ArgTypeReal}} w, {{ArgTypeReal}} h, {{ArgTypeReal}} er) EXAMPLE: ''cpw_design_s(50,2,0.5,2.2)'' DESCRIPTION: Computes and returns the center strip width (in meters) of a CPW transmission line of characteristic impedance z0 with slot width w, substrate height h and substrate relative permittivity er. ====cpw_design_w==== SYNTAX: cpw_design_w({{ArgTypeReal}} z0, {{ArgTypeReal}} s, {{ArgTypeReal}} h, {{ArgTypeReal}} er) EXAMPLE: ''cpw_design_w(50,1,0.5,2.2)'' DESCRIPTION: Computes and returns the slot width (in meters) of a microstrip CPW transmission lineof characteristic impedance z0 with center strip width s, substrate height h and substrate relative permittivity er.| ====cpw_src==== SYNTAX: cpw_src({{ArgTypeString}} label, {{ArgTypeAny}} rect_object, {{ArgTypeAny}} spacing, {{ArgTypeAny}} edge[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]) EXAMPLE: ''cpw_src("CPW_1","Rect_1",1.5,"+x")'' DESCRIPTION: widthCreates a CPW port source in [[EM.Tempo]]. If the CPW port 'label' already exists, its properties are modified. ====cubecad_mesh_settings==== SYNTAX: cubecad_mesh_settings({{ArgTypeAny}} edge_length, {{ArgTypeAny}} angle_tol) EXAMPLE: ''cubecad_mesh_settings(5,10)'' DESCRIPTION: Sets the parameters of CubeCAD's mesh generator. ====current_dist==== SYNTAX: current_dist({{ArgTypeString}} label) EXAMPLE: ''current_dist("CD_1")'' DESCRIPTION: Creates a current distribution observable. If the observable 'label' already exists, its properties are modified. ====current_integral==== SYNTAX: current_integral({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2) EXAMPLE: ''current_integral("FI_1",-to10,-10,0,10,10,0)'' DESCRIPTION: Creates a current integral observable in [[EM.Ferma]]. If the observable 'label' already exists, its properties are modified. ====cylinder==== SYNTAX: cylinder({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} height ratio[, e{{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle, {{ArgTypeAny}} cap_top, {{ArgTypeAny}} cap_bottom]) EXAMPLE: ''cylinder("Cylinder_1",0,0,0,10,100)'' DESCRIPTION: Draws a cylinder object in the project workspace under the currently activated material group node, 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 axis. ====delete==== SYNTAX: delete({{ArgTypeString}} node_name) EXAMPLE: ''delete("Box_1")'' DESCRIPTION: Deletes a node name from the navigation tree. The node can be any geometric object, source, observable or material group.  ====delete_background_layer==== SYNTAX: delete_background_layer({{ArgTypeString}} label) EXAMPLE: ''delete_background_layer("Mid_Layer")'' DESCRIPTION: Deletes a finite-thickness substrate permittivitylayer from [[EM.Picasso]]'s background layer stackup.|====dielectric_group==== SYNTAX: dielectric_group({{ArgTypeString}} label, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma, {{ArgTypeAny}} mu, {{ArgTypeAny}} rho) EXAMPLE: ''dielectric_group("Dielectric_1","my_eps",0,1,0)'' DESCRIPTION: Creates a dielectric material group in the current module with the specified material properties. If the dielectric group 'label' already exists, the group is activated. ====diode==== SYNTAX: diode({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} polarity, {{ArgTypeAny}} is_fA, {{ArgTypeAny}} temperature_K, {{ArgTypeAny}} ideality_factor) EXAMPLE: ''diode("Diode_1","Line_1",25,0,10,300,1)'' DESCRIPTION: Creates a diode in [[EM.Tempo]]. If the diode 'label' already exists, its properties are modified. ====distributed_src==== SYNTAX: distributed_src({{ArgTypeString}} label, {{ArgTypeAny}} rect_object, {{ArgTypeAny}} field_dir, {{ArgTypeAny}} profile[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]) EXAMPLE: ''distributed_src("DS_1","Rect_1","+y","uniform")'' DESCRIPTION: Creates a distributed source in [[EM.Tempo]]. If the distributed source 'label' already exists, its properties are modified. ====ellipse_strip==== SYNTAX: ellipse_strip({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_x, {{ArgTypeAny}} radius_y[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle]) EXAMPLE: ''ellipse_strip("es_1",0,0,0,50,0)'' DESCRIPTION: Draws a ellipse strip object in the project workspace under the currently activated material group node, or modifies the ellipse strip object named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the ellipse strip's azimuth axis. ====ellipsoid==== SYNTAX: ellipsoid({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_x, {{ArgTypeAny}} radius_y, {{ArgTypeAny}} radius_z[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle]) EXAMPLE: ''ellipsoid("Ellipsoid_1",0,0,0,100,100,50,0,360)'' 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 and specify a sweep about the ellipsoid's azimuth axis. ====emferma_engine_settings==== SYNTAX: emferma_engine_settings({{ArgTypeString}} matrix_solver, {{ArgTypeAny}} error_tol, {{ArgTypeAny}} max_iterations) EXAMPLE: ''emferma_engine_settings("bicg-stab",1e-3,100)''| woh_MSDESCRIPTION: Sets the parameters of [[EM.Ferma]]'s electrostatic and magnetostatic simulation engines. ====emferma_mesh_settings==== SYNTAX: emferma_mesh_settings(e{{ArgTypeAny}} cell_size_x,z{{ArgTypeAny}} cell_size_y, {{ArgTypeAny}} cell_size_z)| EMAG Python function| WidthEXAMPLE: ''emferma_mesh_settings(0.5,0.5,0.5)'' DESCRIPTION: Sets the parameters of [[EM.Ferma]]'s fixed-tocell mesh generator. ====emillumina_engine_settings==== SYNTAX: emillumina_engine_settings({{ArgTypeString}} engine, {{ArgTypeAny}} is_fixed_iteration, {{ArgTypeAny}} error_tol, {{ArgTypeAny}} max_iterations) EXAMPLE: ''emillumina_engine_settings("ipo",0,1e-height ratio 2,20)'' DESCRIPTION: Sets the parameters of [[EM.Illumina]]'s Physical Optics simulation engine. ====emillumina_mesh_settings==== SYNTAX: emillumina_mesh_settings({{ArgTypeAny}} cells_per_lambda) EXAMPLE: ''emillumina_mesh_settings(30)'' DESCRIPTION: Sets the 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 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 electric energy integral observable in [[EM.Ferma]]. If the observable '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 microstrip transmission line magnetic energy integral observable in [[EM.Ferma]]. If the observable '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==== SYNTAX: export_dxf({{ArgTypeString}} file_name) EXAMPLE: ''export_dxf("MyDXFModel.DXF")'' DESCRIPTION: Exports the physical structure of the project workspacean to a DXF model file. If the file path is not specified, the current project folder is assumed as the path. ====export_py==== SYNTAX: export_py({{ArgTypeString}} file_name) EXAMPLE: ''export_py("MyPYModel.PY")'' 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 &rarr; EMAG". ====export_stl==== SYNTAX: export_stl({{ArgTypeString}} file_name) EXAMPLE: ''export_stl("MySTLModel.STL")'' DESCRIPTION: Exports the physical structure of the project workspacean to an STL model file. If the file path is not specified, the current project folder is assumed as the path. ====extrude==== SYNTAX: extrude({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} extrude_height, {{ArgTypeAny}} cap_ends) EXAMPLE: ''extrude("Extrude_1","Rect_Strip1",50)'' DESCRIPTION: Creates or modifies an extrusion object from a specified object by the specified height. If modifying an existing extrusion object, the pre-existing primitive is used. This command can only extrude objects that have a single face and will extrude along the face's normal. ====farfield==== SYNTAX: farfield({{ArgTypeString}} label, {{ArgTypeAny}} theta_incr, {{ArgTypeAny}} phi_incr) EXAMPLE: ''farfield("FF_1",1,1)'' DESCRIPTION: Creates a far-field radiation pattern observable. If the observable 'label' already exists, its properties are modified. ====field_probe==== SYNTAX: field_probe({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0) EXAMPLE: ''field_probe("FS_1",0,0,50)'' DESCRIPTION: Creates a temporal field probe observable in [[EM.Tempo]] or [[EM.Ferma]]. If the observable 'label' already exists, its properties are modified. ====field_sensor==== SYNTAX: field_sensor({{ArgTypeString}} label, {{ArgTypeAny}} dir_coordinate, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} xSize, {{ArgTypeAny}} ySize, {{ArgTypeAny}} zSize, {{ArgTypeAny}} xSamples, {{ArgTypeAny}} ySamples, {{ArgTypeAny}} zSamples) EXAMPLE: ''field_sensor("FS_1","z",0,0,0,100,100,0,25,25,0)'' DESCRIPTION: characteristic impedance Creates a near-field sensor observable. If the observable 'label' already exists, its properties are modified. ====field_sensor_grid==== SYNTAX: field_sensor_grid({{ArgTypeString}} label, {{ArgTypeAny}} dir_coordinate, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0) EXAMPLE: ''field_sensor_grid("FS_1","z", e0,0,0)'' DESCRIPTION: substrate permittivityCreates a near-field sensor observable in [[EM.Tempo]] or [[EM.Ferma]]. If the observable 'label' already exists, its properties are modified.|====fill_curve==== SYNTAX: fill_curve({{ArgTypeString}} object) EXAMPLE: ''fill_curve("Curve_1")'' DESCRIPTION: Fill the interior of the specified closed curve object. ====fillet==== fillet({{ArgTypeString}} object, {{ArgTypeAny}} radius) EXAMPLE: ''fillet("Rect_1",5)'' DESCRIPTION: Fillets the corners of the specified surface or curve object by the specified radius. ====flux_electric==== SYNTAX: flux_electric({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2) EXAMPLE: ''flux_electric("FI_1",-10,-10,5,10,10,10)'' DESCRIPTION: Creates an electric flux integral observable in [[EM.Ferma]]. If the observable 'label' already exists, its properties are modified. | style====flux_magnetic==== SYNTAX: flux_magnetic({{ArgTypeString}} label, {{ArgTypeAny}} x1, {{ArgTypeAny}} y1, {{ArgTypeAny}} z1, {{ArgTypeAny}} x2, {{ArgTypeAny}} y2, {{ArgTypeAny}} z2) EXAMPLE: ''flux_magnetic("widthFI_1",0,0,-10,10,0,10)'' DESCRIPTION:80px;Creates a magnetic flux integral observable in [[EM.Ferma]]. If the observable 'label' already exists, its properties are modified. ====fractal_tree==== SYNTAX: fractal_tree({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} key_type, {{ArgTypeAny}} key_size, {{ArgTypeAny}} n_level, {{ArgTypeAny}} sep_angle, {{ArgTypeAny}} n_gen, {{ArgTypeAny}} prune_factor, {{ArgTypeAny}} thickness, {{ArgTypeAny}} thick_factor) EXAMPLE: ''fractal_tree(" | Z0_CPWFractal_1",0,0,0,"line",10,3,30,3,0,0,0)'' DESCRIPTION: Generates a fractal tree in the project workspace under the currently activated material group node, or modifies the fractal tree named 'label' if it already exists. ====freeze==== SYNTAX: freeze(e{{ArgTypeString}} object, {{ArgTypeReal}} freeze_state) EXAMPLE: ''freeze("MyObj",1)'' DESCRIPTION: Sets the freeze state of an object (0/1).  ====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)| styleEXAMPLE: ''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("widthellipse_1")'' DESCRIPTION:80px;Returns the area of a surface object or the total surface area of a solid object. ====get_axis==== SYNTAX: get_axis({{ArgTypeString}} object, {{ArgTypeString}} axis, {{ArgTypeString}} coordinate) EXAMPLE: ''get_axis(" | EMAG Python functionpyramid_1","x","y")'' DESCRIPTION: Returns the specified coordinate of the unit vector along the specified local axis of an object. | style====get_domain_extent==== SYNTAX: get_domain_extent({{ArgTypeString}} coordinate) EXAMPLE: ''get_domain_extent("widthx")'' DESCRIPTION:150px;Returns the size of the computational domain along the specified direction. ====get_extent==== SYNTAX: get_extent({{ArgTypeString}} object, {{ArgTypeString}} coordinate) EXAMPLE: ''get_extent(" | Characteristic impedance pyramid_1","x")'' DESCRIPTION: Returns the size of the bounding box of an object along the specified direction. ====get_lcs==== SYNTAX: get_lcs({{ArgTypeString}} object, {{ArgTypeString}} coordinate) EXAMPLE: ''get_lcs("pyramid_1","x")'' DESCRIPTION: Returns the specified coordinate of the LCS of an object. ====get_lcs_offset==== SYNTAX: get_lcs_offset({{ArgTypeString}} object, {{ArgTypeAny}} x_off, {{ArgTypeAny}} y_off, {{ArgTypeAny}} z_off, {{ArgTypeString}} coordinate) EXAMPLE: ''get_lcs_offset("box_1",50,50,0,"x")'' DESCRIPTION: Returns the specified coordinate of the LCS of an object after being translated by the specified offset values along the three principal axes. ====get_length==== SYNTAX: get_length({{ArgTypeString}} object) EXAMPLE: ''get_length("helix_1")'' DESCRIPTION: Returns the length of a coplanar waveguide transmission line curve object. | style====get_rot==== SYNTAX: get_rot({{ArgTypeString}} object, {{ArgTypeString}} coordinate) EXAMPLE: ''get_rot("widthpyramid_1","x")'' DESCRIPTION:150px;Returns the specified rotation angle of an object. ====get_standard_output==== SYNTAX: get_standard_output({{ArgTypeString}} output_name)  EXAMPLE: ''get_standard_output("S11M")'' DESCRIPTION: 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: slot widthReturns the specified coordinate of the specified vertex of the bounding box 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.  ====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==== SYNTAX: group({{ArgTypeString}} label, {{ArgTypeString}} object_1, {{ArgTypeString}} object_2, ...) EXAMPLE: ''group("Composite_1","Box_1","Box_2","Box_3")'' DESCRIPTION: Groups a number of objects into a composite object with the given label. ====harm==== SYNTAX: harm({{ArgTypeReal}} x, {{ArgTypeReal}} y) EXAMPLE: ''harm(1,2)'' DESCRIPTION: Computes and returns the harmonic mean of x and y: 2/(1/x+1/y). ====helix==== SYNTAX: helix({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_inner, {{ArgTypeAny}} radius_outer, {{ArgTypeAny}} nturns, {{ArgTypeAny}} helix_dir) EXAMPLE: ''helix("Helix_1",0,0,0,15,15,10,0)'' DESCRIPTION: Draws a helical curve in the project workspace under the currently activated material group node, or modifies the helix named 'label' if it already exists. The parameter "radius_inner" specifies the helix's radius at the beginning of the helix, and radius_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. ====horn_design_a==== SYNTAX: horn_design_a({{ArgTypeReal}} D0_dB, {{ArgTypeReal}} a_lambda, {{ArgTypeReal}} b_lambda) EXAMPLE: ''horn_design_a(15,0.4,0.3)'' DESCRIPTION: Computes and returns the wavelength-normalized larger 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. ====horn_design_b==== SYNTAX: horn_design_b({{ArgTypeReal}} D0_dB, {{ArgTypeReal}} a_lambda, {{ArgTypeReal}} b_lambda) EXAMPLE: ''horn_design_b(15,0.4,0.3)'' DESCRIPTION: Computes 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. ====horn_design_l==== SYNTAX: horn_design_l({{ArgTypeReal}} D0_dB, {{ArgTypeReal}} a_lambda, {{ArgTypeReal}} b_lambda) EXAMPLE: ''horn_design_l(15,0.4,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 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' if it already exists. If the Boolean parameter "half_only" is 1, only half of the hyperbola will be 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 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 tothe 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 &rarr; 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==== SYNTAX: intersect({{ArgTypeString}} label, {{ArgTypeString}} object_1, {{ArgTypeString}} object_2) EXAMPLE: ''intersect("Intersection_Object","Rect_Strip1","Rect_Strip2")'' 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. ====line==== SYNTAX: line({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} length[, {{ArgTypeAny}} dir]) EXAMPLE: ''line("my_line",0,0,0,100,"x")'' DESCRIPTION: Draws a Line object in the project workspace under the currently activated material group node, or modifies the line named 'label' if it already exists. Without the argument "dir", a vertical line is drawn by default.  ====loft==== SYNTAX: loft({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} loft_height, {{ArgTypeAny}} cap_base) EXAMPLE: ''loft("Loft_1","Rect_Strip1",50)'' DESCRIPTION: Creates or modifies a loft object from a specified object by the specified height ratio. 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. ====lumped_src==== SYNTAX: lumped_src({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} polarity[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]) EXAMPLE: ''lumped_src("LS_1","Line_1",50,0)'' DESCRIPTION: Creates a lumped source in [[EM.Tempo]]. If the lumped source 'label' already exists, its properties are modified. ====magnet_group==== SYNTAX: magnet_group({{ArgTypeString}} label, {{ArgTypeAny}} mu, {{ArgTypeAny}} Mx, {{ArgTypeAny}} My, {{ArgTypeAny}} Mz) EXAMPLE: ''magnet_group("Magnet_1",1,0,0,100)'' DESCRIPTION: Creates a permanent magnet source group in [[EM.Ferma]]. If the magnet group 'label' already exists, the group is activated. ====mcos==== SYNTAX: mcos({{ArgTypeReal}} x, {{ArgTypeReal}} r) EXAMPLE: ''mcos(0.5,2)'' DESCRIPTION: Computes and returns the super-quadratic cosine function of order r. ====mean==== SYNTAX: mean({{ArgTypeReal}} x, {{ArgTypeReal}} y) EXAMPLE: center strip ''mean(1,2)'' DESCRIPTION: Computes and returns the arithmetic mean of x and y: 0.5*(x+y). ====merge_curve==== SYNTAX: merge_curve({{ArgTypeString}} object_1, {{ArgTypeString}} object_2) EXAMPLE: ''merge_curve("Curve_1","Curve_2")'' DESCRIPTION: Merges two specified curve objects into a single curve. ====mesh==== SYNTAX: mesh() DESCRIPTION: Generates and displays the mesh of the physical structure. ====microstrip_design==== SYNTAX: microstrip_design({{ArgTypeReal}} z0, {{ArgTypeReal}} er) EXAMPLE: ''microstrip_design(50,2.2)'' DESCRIPTION: Computes and returns the width-to-height ratioof a microstrip transmission line with characteristic impedance z0 in Ohms and substrate relative permittivity er. ====microstrip_eps_eff==== SYNTAX: microstrip_eps_eff({{ArgTypeReal}} w, e{{ArgTypeReal}} h, {{ArgTypeReal}} er) EXAMPLE: ''microstrip_eps_eff(2,0.5,2.2)'' DESCRIPTION: Computes and returns the effective permittivity of a microstrip transmission line with width w, substrate height h and substrate relative permittivityer.|-| eeff_CPW====microstrip_lambda_g==== SYNTAX: microstrip_lambda_g(e{{ArgTypeReal}} w,x{{ArgTypeReal}} h,y{{ArgTypeReal}} er, {{ArgTypeReal}} freq_hertz)| EMAG Python function| Effective permittivity EXAMPLE: ''microstrip_lambda_g(2,0.5,2.2,2e9)'' DESCRIPTION: Computes and returns the guide wavelength (in meters) of a coplanar waveguide microstrip transmission line with width w, substrate height h and substrate relative permittivity er at an operating frequency of freq_hertz.| ====microstrip_src==== SYNTAX: microstrip_src({{ArgTypeString}} label, {{ArgTypeAny}} rect_object, {{ArgTypeAny}} height, {{ArgTypeAny}} edge[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]) EXAMPLE: ''microstrip_src("MS_1","Rect_1",1.5,"+x")'' DESCRIPTION: slot Creates a microstrip port source in [[EM.Tempo]]. If the microstrip port 'label' already exists, its properties are modified. ====microstrip_z0==== SYNTAX: microstrip_z0({{ArgTypeReal}} w, {{ArgTypeReal}} h, {{ArgTypeReal}} er) EXAMPLE: ''microstrip_z0(2,0.5,2.2)'' DESCRIPTION: Computes and returns the characteristic impedance (in Ohms) of a microstrip transmission line with width-to-w, substrate height ratioh and substrate relative permittivity er. ====microstrip_zoc==== SYNTAX: microstrip_zoc({{ArgTypeReal}} w, y{{ArgTypeReal}} l, {{ArgTypeReal}} h, {{ArgTypeReal}} er, {{ArgTypeReal}} freq_hertz) EXAMPLE: center strip width-to''microstrip_zoc(2,25,0.5,2.2,2e9)'' DESCRIPTION: Computes and returns the input reactance (in Ohms) of an open-circuited microstrip transmission line with width w, length l, substrate height ratioh and substrate relative permittivity er at an operating frequency of freq_hertz. ====microstrip_zsc==== SYNTAX: microstrip_zsc({{ArgTypeReal}} w, e{{ArgTypeReal}} l, {{ArgTypeReal}} h, {{ArgTypeReal}} er, {{ArgTypeReal}} freq_hertz) EXAMPLE: ''microstrip_zsc(2,25,0.5,2.2,2e9)'' DESCRIPTION: Computes and returns the input reactance (in Ohms) of a short-circuited microstrip transmission line with width w, length l, substrate height h and substrate relative permittivityer at an operating frequency of freq_hertz.|-| horn_a====mirror==== SYNTAX: mirror(d{{ArgTypeString}} object,{{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} uX, {{ArgTypeAny}} uY, {{ArgTypeAny}} uZ) EXAMPLE: ''mirror("pyramid_1",0,0,0,1,0,0)'' DESCRIPTION: Mirrors an object in a plane defined by the specified point coordinates and specified normal vector components. ====move_to==== SYNTAX: move_to({{ArgTypeString}} object, {{ArgTypeString}} group_node_label[, {{ArgTypeString}} module_name]) EXAMPLE: ''move_to("NewObj","MyObj",10,10,0)'' DESCRIPTION: Transfers an object from its current material/object group node in the navigation tree to another node or optionally to another [[EM.Cube]] module.  ====msin==== SYNTAX: msin({{ArgTypeReal}} x,y{{ArgTypeReal}} r) EXAMPLE: ''msin(0.5,2)'' DESCRIPTION: Computes and returns the super-quadratic sine function of order r. ====nurbs_curve==== SYNTAX: nurbs_curve({{ArgTypeString}} label, {{ArgType| EMAG 3x1 Python functiontuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn) EXAMPLE: ''nurbs_curve("nc_1",(0,0,0),(1,0,0),(1,0,0))'' DESCRIPTION: Creates or modifies a NURBS Curve object in the project workspace. Each point is represented with a Python tuple type. The curve is closed if p0 is specified again as pn, otherwise, it is open. ====nurbs_strip==== SYNTAX: nurbs_strip({{ArgTypeString}} label, {{ArgType| Wavelength-normalized 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 aNURBS Strip object in the project workspace. Each point is represented with a Python tuple type. The nurbs_strip function is 'self-dimension 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 optimal pyramidal horn antenna ohmic loss integral observable in [[EM.Ferma]]. If the 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. | d====param_curve==== SYNTAX: directivity dparam_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 activated material 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 and )*sin(y)")'' DESCRIPTION: wavelength-normalized waveguide dimensionsGenerates 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==== SYNTAX: pec_group({{ArgTypeString}} label) EXAMPLE: ''pec_group("PEC_1")'' 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==== SYNTAX: pec_voltage_group({{ArgTypeString}} label, {{ArgTypeAny}} voltage) EXAMPLE: ''pec_voltage_group("PEC_1",10)'' DESCRIPTION: Creates a fixed-potential PEC object group in the current module. If the PEC group 'label' already exists, the group is activated.| horn_b====penetrable_surface_group==== SYNTAX: penetrable_surface_group(d{{ArgTypeString}} label,x{{ArgTypeAny}} eps,y{{ArgTypeAny}} sigma, {{ArgTypeAny}} thickness) EXAMPLE: ''penetrable_surface_group("Penet_1",2.2,0.0001, 1)'' DESCRIPTION: Creates a penetrable surface group in [[EM.Terrano]]. If the penetrable surface group 'label' already exists, the group is activated. ====penetrable_volume_group==== SYNTAX: penetrable_volume_group({{ArgTypeString}} label, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma) EXAMPLE: ''penetrable_volume_group("Vol_Penet_1",2.2,0.0001)'' DESCRIPTION: Creates a penetrable volume group in [[EM.Terrano]]. If the penetrable volume group 'label' already exists, the group is activated. ====pipe_sweep==== SYNTAX: pipe_sweep({{ArgTypeString}} object, {{ArgTypeAny}} radius) EXAMPLE: ''pipe_sweep("Curve_1",5)'' DESCRIPTION: Creates a pipe version of a given curve object. ====planewave==== SYNTAX: planewave({{ArgTypeString}} label, {{ArgTypeAny}} theta, {{ArgTypeAny}} phi, {{ArgTypeAny}} polarization) 'EXAMPLE: ''planewave("PW_1",180,0,"tm")'' DESCRIPTION: Creates a plane wave source. If the plane wave source 'label' already exists, its properties are modified. ====plot_file==== SYNTAX: plot_file({{ArgTypeString}} filename)  EXAMPLE: ''plot_file("D0.DAT")'' DESCRIPTION: Plots the contents of a specified data file in EM.Grid. ====pmc_group==== SYNTAX: pmc_group({{ArgTypeString}} label) EXAMPLE: ''pmc_group("PMC_1")'' DESCRIPTION: Creates a PMC material group in the current module. If the PMC group 'label' already exists, the group is activated. ====point==== SYNTAX: point({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0) EXAMPLE: ''point("Point_1",0,0,10)'' DESCRIPTION: Draws a point in the project workspace under the currently activated material group node, or modifies the point named 'label' if it already exists. ====polygon_reg==== SYNTAX: polygon_reg({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} n_sides) EXAMPLE: ''polygon_reg("ts_1",0,0,0,50,100,80,1)'' DESCRIPTION: Draws a regular polygon object in the project workspace under the currently activated material group node, or modifies the regular polygon object named 'label' if it already exists.  ====polygonize==== SYNTAX: polygonize({{ArgTypeString}} object, {{ArgTypeAny}} side_length) EXAMPLE: ''polygonize("Cric_1",2)'' DESCRIPTION: Polygonizes the specified surface or curve object by the specified side length. The results is a polystrip or a polyline. ====polyline==== SYNTAX: polyline({{ArgTypeString}} label, {{ArgType| EMAG 3x1 Python functiontuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn) EXAMPLE: ''polyline("pl_1",(0,0,0),(1,0,0),(1,0,0))'' DESCRIPTION: Creates or modifies a PolyLine object in the project workspace. Each point is represented with a Python tuple type. The poly_line is closed if p0 is specified again as pn, otherwise, it is open. ====polymesh==== SYNTAX: polymesh({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} edge_length) EXAMPLE: ''polymesh("Poly_1","Cric_1",2)'' DESCRIPTION: Discretizes the specified solid or surface object by the specified edge length. The results is a polymesh object. ====polystrip==== SYNTAX: polystrip({{ArgTypeString}} label, {{ArgType| Wavelength3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn) EXAMPLE: ''polystrip("ps_1",(0,0,0),(1,0,0),(1,0,0))'' DESCRIPTION: Creates or modifies a Polystrip object in the project workspace. Each point is represented with a Python tuple type. The poly_strip function is 'self-normalized bclosing' -dimension - there is no need to supply the first point again at the end of an optimal pyramidal horn antenna the point list.| d====port_definition_custom==== SYNTAX: directivity dport_definition_custom({{ArgTypeString}} label, ({{ArgTypeString}} port_1_src_1, {{ArgTypeString}} port_1_src_2, ..., {{ArgTypeString}} port_1_impedance), ({{ArgTypeString}} port_2_src_1, {{ArgTypeString}} port_2_src_2, ..., {{ArgTypeString}} port_2_impedance), ...) EXAMPLE: ''port_definition_custom("PD_1",("LS_1","LS_2",50),,("LS_3","LS_4",50))'' DESCRIPTION: Creates a custom port definition observable. If the observable 'label' already exists, its properties are modified. ====port_definition_default==== SYNTAX: port_definition_default({{ArgTypeString}} label) EXAMPLE: ''port_definition_default("PD_1")'' DESCRIPTION: Creates a default port definition observable. If the observable 'label' already exists, its properties are modified. ====probe_gap_src==== SYNTAX: probe_gap_src({{ArgTypeString}} label, {{ArgTypeAny}} via_object, {{ArgTypeAny}} polarity[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]) EXAMPLE: ''probe_gap_src("Probe_1","Via_1",0)'' DESCRIPTION: Creates a probe gap circuit source in [[EM.Picasso]]. If the probe gap source 'label' already exists, its properties are modified. ====pyramid==== SYNTAX: pyramid({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_x, {{ArgTypeAny}} base_y, {{ArgTypeAny}} height) EXAMPLE: ''pyramid("Pyramid_1",0,0,0,10,10,100)'' DESCRIPTION: Draws a pyramid object in the project workspace under the currently activated material group node, or modifies the pyramid named 'label' if it already exists. ====radial_strip==== SYNTAX: radial_strip({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} base_length, {{ArgTypeAny}} angle) EXAMPLE: ''radial_strip("Radial_1",0,0,0,50,0,90)'' DESCRIPTION: Draws a radial strip object in the project workspace under the currently activated material group node, or modifies the radial strip object named 'label' if it already exists.  ====rail_sweep==== SYNTAX: rail_sweep({{ArgTypeString}} rail_object, {{ArgTypeString}} sweep_object) EXAMPLE: ''rail_sweep("Curve_1","Curve_2")'' DESCRIPTION: Rail-sweeps the specified sweep object along the specified curve object. ====ramp==== SYNTAX: ramp({{ArgTypeReal}} x ) EXAMPLE: ''ramp(0.5)'' DESCRIPTION: Computes and returns the ramp function: x if x>0, 0 if x<0. ====rand==== SYNTAX: rand({{ArgTypeReal}} x, {{ArgTypeReal}} y) EXAMPLE: wavelength-normalized waveguide dimensions''rand(0,1)''|DESCRIPTION: Computes and returns a random number between x and y using an uniform distribution. ====random_group==== SYNTAX: random_group({{ArgTypeString}} label, {{ArgTypeString}} key_object, {{ArgTypeString}} container_object, {{ArgTypeAny}} element_count) EXAMPLE: ''random_group("Rand_1","Rect_1","Box_1",100)'' DESCRIPTION: Creates a random group using the specified key object and confines them in the specified container object. ====rcs_bistatic==== SYNTAX: rcs_bistatic({{ArgTypeString}} label, {{ArgTypeAny}} theta_incr, {{ArgTypeAny}} phi_incr[, {{ArgTypeAny}} frequency]) EXAMPLE: ''rcs_bistatic("RCS_1",1,1)'' DESCRIPTION: Creates a bistatic RCS observable. The frequency can also be optionally specified for [[EM.Tempo]]. If the observable 'label' already exists, its properties are modified. ====rcs_monostatic==== SYNTAX: rcs_monostatic({{ArgTypeString}} label, {{ArgTypeAny}} theta_incr, {{ArgTypeAny}} phi_incr[, {{ArgTypeAny}} frequency]) EXAMPLE: ''rcs_monostatic("RCS_1",1,1)'' DESCRIPTION: Creates a monostatic RCS observable. The frequency can also be optionally specified for [[EM.Tempo]]. If the observable 'label' already exists, its properties are modified. ====receiver_set==== SYNTAX: receiver_set({{ArgTypeString}} label, {{ArgTypeAny}} base_point_set[, {{ArgTypeAny}} pattern_file, {{ArgTypeAny}} rot_x, {{ArgTypeAny}} rot_y, {{ArgTypeAny}} rot_z) EXAMPLE: ''receiver_set("TX_1","PT_1","DPL_STD.RAD",0,90,0)'' DESCRIPTION: Creates a receiver set in [[EM.Terrano]]. If the receiver set 'label' already exists, its properties are modified. ====rect==== SYNTAX: rect({{ArgTypeReal}} x) EXAMPLE: ''rect(0.1)'' DESCRIPTION: Computes and returns the rectangular window function: 1 if x<0.5, 0 elsewhere. ====rect_gap_src==== SYNTAX: rect_gap_src({{ArgTypeString}} label, {{ArgTypeAny}} rect_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} polarity[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]) EXAMPLE: ''rect_gap_src("GAP_1","Rect_1",0,0)'' 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. ====rect_strip==== SYNTAX: rect_strip({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} side_x, {{ArgTypeAny}} side_y) EXAMPLE: ''rect_strip("my_rectangle",0,0,0,50,20)'' DESCRIPTION: Draws a rectangle Strip object in the project workspace under the currently activated material group node, or modifies the rectangle strip object named 'label' if it already exists. ====rename==== SYNTAX: rename({{ArgTypeString}} new_label, {{ArgTypeString}} old_label) EXAMPLE: ''rename("Box_2","Box_1")'' DESCRIPTION: Deletes a node name from the navigation tree. The node can be any geometric object, source, observable or material group.  ====resistance==== SYNTAX: resistance({{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: ''resistance("FI_1",0,0,-10,0,0,10,-10,-10,0,10,10,0)''| horn_lDESCRIPTION: Creates a resistance integral observable in [[EM.Ferma]]. If the observable 'label' already exists, its properties are modified. ====resistor==== SYNTAX: resistor(d{{ArgTypeString}} label,{{ArgTypeAny}} line_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} resistance) EXAMPLE: ''resistor("Res_1","Line_1",25,50)'' DESCRIPTION: Creates a resistor in [[EM.Tempo]]. If the resistor 'label' already exists, its properties are modified. ====revolve==== SYNTAX: revolve({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} uX, {{ArgTypeAny}} uY, {{ArgTypeAny}} uZ, {{ArgTypeAny}} rot_angle) EXAMPLE: ''revolve("Rev1","Line_1",0,0,0,0,0,1,360)'' DESCRIPTION: Creates or modifies a revolution object from a specified object. If modifying an existing revolution object, the pre-existing primitive object is used. (x0,y0,z0) specifies the center of revolution, and (uX,uY,uZ) specifies the revolution axis. The revolution angle "rot_angle" is given in degrees. ====rosen==== SYNTAX: rosen({{ArgTypeReal}} x,{{ArgTypeReal}} y, {{ArgTypeReal}} a, {{ArgTypeReal}} b)| EMAG Python function| WavelengthEXAMPLE: ''rosen(0.5,0,1,2)'' DESCRIPTION: Computes and returns the Rosenbrock function: (a-normalized x)**2 + b*(y-x**2)**2. ====rotate==== SYNTAX: rotate({{ArgTypeString}} object, {{ArgTypeAny}} rot_angle_degree, {{ArgTypeAny}} rot_axis_x, {{ArgTypeAny}} rot_axis_y, {{ArgTypeAny}} rot_axis_z) EXAMPLE: ''rotate("pyramid_1",45,1,1,0)'' DESCRIPTION: Rotates an object about a line passing through its LCS center and aligned along the specified direction vector (rot_axis) by the specified angle. ====roughen==== SYNTAX: roughen({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} rms_height, {{ArgTypeAny}} correl_length) EXAMPLE: ''roughen("Rect_1",1,5)'' DESCRIPTION: Roughens the surface of the specified object based on the specified RMS height and correlation length . ====run_analysis==== SYNTAX: run_analysis() DESCRIPTION: Runs a simulation in the current active [[EM.Cube]] computational module. ====save_data==== SYNTAX: save_data({{ArgTypeString}} directory_name)  EXAMPLE: ''save_data("Simulation_Data")'' DESCRIPTION: Saves [[EM.Cube]]'s output simulation data files under the specified directory. ====sawtooth==== SYNTAX: sawtooth({{ArgTypeReal}} x) EXAMPLE: ''sawtooth(0.5)'' DESCRIPTION: Computes and returns the ascending periodic sawtooth function of period T = 2, oscillating between two values +1 and -1 and having a zero value of at x = 0. ====scale==== SYNTAX: scale({{ArgTypeString}} object, {{ArgTypeAny}} scale_factor) EXAMPLE: ''scale("pyramid_1",2)'' DESCRIPTION: Scales an optimal pyramidal horn antenna object by the specified scale factor.| d====select_module==== SYNTAX: directivity dselect_module({{ArgTypeString}} module_name) EXAMPLE: ''select_module("[[EM.Tempo]]")'' DESCRIPTION: Selects and sets [[EM.Cube]]'s active module. ====set_bandwidth==== SYNTAX: set_bandwidth({{ArgTypeAny}} value) EXAMPLE: ''set_bandwidth(1e9)'' DESCRIPTION: Sets [[EM.Cube]]'s frequency bandwidth. ====set_boundary_conditions==== SYNTAX: set_boundary_conditions({{ArgTypeString}} xn_type, x {{ArgTypeString}} xp_type, {{ArgTypeString}} yn_type, {{ArgTypeString}} yp_type, {{ArgTypeString}} zn_type, {{ArgTypeString}} zp_type) EXAMPLE: ''set_domain_offset_lambda("pml","pml","pml","pml","pec","pml")'' DESCRIPTION: Sets [[EM.Tempo]]'s domain boundary conditions domain offset on the &plusmn;X, &plusmn;Y and y&plusmn;Z boundary walls. The options are "pec", "pmc" and "pml". ====set_domain_offset==== SYNTAX: wavelengthset_domain_offset({{ArgTypeAny}} dxn_offset, {{ArgTypeAny}} dxp_offset, {{ArgTypeAny}} dyn_offset, {{ArgTypeAny}} dyp_offset, {{ArgTypeAny}} dzn_offset, {{ArgTypeAny}} dzp_offset) EXAMPLE: ''set_domain_offset(20,20,20,20,0,10)'' DESCRIPTION: Sets the domain offset values along the &plusmn;X, &plusmn;Y and &plusmn;Z directions in project units. ====set_domain_offset_lambda==== SYNTAX: set_domain_offset_lambda({{ArgTypeAny}} dxn_offset, {{ArgTypeAny}} dxp_offset, {{ArgTypeAny}} dyn_offset, {{ArgTypeAny}} dyp_offset, {{ArgTypeAny}} dzn_offset, {{ArgTypeAny}} dzp_offset) EXAMPLE: ''set_domain_offset_lambda(0.1,0.1,0.1,0.1,0,0.25)'' DESCRIPTION: Sets the domain offset values along the &plusmn;X, &plusmn;Y and &plusmn;Z directions in free-normalized waveguide dimensionsspace wavelengths.|====set_frequency==== SYNTAX: set_frequency({{ArgTypeAny}} value) EXAMPLE: ''set_frequency(2.4e9)'' DESCRIPTION: Sets [[EM.Cube]]'s center frequency. ====set_lcs_link==== SYNTAX: set_lcs_link({{ArgTypeString}} object, {{ArgTypeString}} lcs_obj, {{ArgTypeAny}} x_off, {{ArgTypeAny}} y_off, {{ArgTypeAny}} z_off) EXAMPLE: ''set_lcs_link("pyramid_1","box_1",50,50,0)'' DESCRIPTION: Links the LCS of the first object to the LCS of the second object by the specified offset values along the three axes.
== EM.Cube's Python Functions for Geometric Object Creation ==set_periodic====
====boxSYNTAX: set_periodic({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} lengthis_periodic, {{ArgTypeAny}} widthspacingX, {{ArgTypeAny}} heightspacingY)====
EXAMPLE: ''Example:boxset_periodic("my_box",0,0,0,"x"1,y50,10050)''
DescriptionDESCRIPTION: Draws a Box object in Designates the scene under physical structure as periodic and sets the currently activated Material Group node, or modifies a Box if Box 'label' already existsperiods along the X and Y directions.
====cylinder({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} height)set_rot====
''ExampleSYNTAX:cylinderset_rot("cylinder_1"{{ArgTypeString}} object,0{{ArgTypeAny}} rot_x,0{{ArgTypeAny}} rot_y,0,10,100{{ArgTypeAny}} rot_z)''
DescriptionEXAMPLE: Draws a Cylinder object in the scene under the currently activated Material Group node''set_rot("pyramid_1",0,0, or modifies a Cylinder if Cylinder 45)'label' already exists.
====pyramid({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_x, {{ArgTypeAny}} base_y, {{ArgTypeAny}} height)====DESCRIPTION: Sets the three rotation angles of an object.
''Example:pyramid("pyramid_1",0,0,0,10,10,100)''====set_rot_link====
DescriptionSYNTAX: Draws a Pyramid set_rot_link({{ArgTypeString}} object in the scene under the currently activated Material Group node, or modifies a Pyramid if Pyramid 'label' already exists.{{ArgTypeString}} lcs_obj, {{ArgTypeAny}} x_off_deg, {{ArgTypeAny}} y_off_deg, {{ArgTypeAny}} z_off_deg)
====sphereEXAMPLE: ''set_rot_link({{ArgTypeString}} label"pyramid_1", {{ArgTypeAny}} x0"box_1", {{ArgTypeAny}} y00, {{ArgTypeAny}} z00, {{ArgTypeAny}} radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle45)====''
''ExampleDESCRIPTION:sphere("sphere",0,0,0,10,0,180)''Links the rotation angles of the LCS of the first object to the rotation angles of the LCS of the second object by the specified angle offset values in degrees along the three axes.
Description: Draws a Sphere object in the scene under the currently activated Material Group node, or modifies a Sphere if Sphere 'label' already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the sphere's theta axis.====set_stackup_order====
====rect_stripSYNTAX: set_stackup_order("THS", {{ArgTypeString}} labellabel_1, {{ArgTypeAnyArgTypeString}} x0label_2, {{ArgTypeAny}} y0..., {{ArgTypeAnyArgTypeString}} z0label_n, {{ArgTypeAny}} length, {{ArgTypeAny}} width"BHS")====
EXAMPLE: ''Example:rect_stripbackground_layer("my_rectangleTHS",0"Top_Layer",0,0"Mid_Layer","xBottom_Layer",y"BHS")''
DescriptionDESCRIPTION: Draws a Rect Strip object Sets the hierarchy of [[EM.Picasso]]'s background layer stackup from top to bottom. The sequence should always start with "THS" standing for the top half-space and must end in "BHS" standing for the scene under bottom half-space. All the currently activated Material Group node, or modifies a Rect Strip if Rect Strip 'label' already existsintermediate finite-thickness substrate layers must be included and listed in the right order.
====circ_strip({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} inner_radius, {{ArgTypeAny}} outer_radius)set_units====
''ExampleSYNTAX:circ_stripset_units("cs_1",0,0,0,0,100{{ArgTypeString}} units)''
DescriptionEXAMPLE: Draws a Circular Strip object in the scene under the currently activated Material Group node, or modifies a Circular Strip if Circular Strip 'label' already exists.set_units("meter")''
====poly_strip({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, DESCRIPTION: Sets [[EM.Cube]]'s project length units.. {{ArgType| 3x1 Python tuple}} pn)====
''Example:poly_strip("ps_1",(0,0,0),(1,0,0),(1,0,0))''====sgn====
DescriptionSYNTAX: Creates or modifies a PolyStrip object in the scene. Each point is represented with a Python tuple type. The poly_strip function is 'self-closing' -- there is no need to supply the first point again at the end of the point list.sgn({{ArgTypeReal}} x)
====nurbs_stripEXAMPLE: ''sgn({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, -1... {{ArgType| 3x1 Python tuple}} pn0)====''
''ExampleDESCRIPTION: Computes and returns the signum function:nurbs_strip("ns_1",(0,0,0),(1,if x>0,0),(-1,0,if x<0))''.
Description: Creates or modifies a NURBS Strip object in the scene. 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.====short_dipole====
====lineSYNTAX: short_dipole({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} length, {{ArgTypeAny}} uX, {{ArgTypeAny}} uY, {{ArgTypeAny}} uZ, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase)====
EXAMPLE: ''Example:lineshort_dipole("my_lineSD_1",0,0,50,3,0,1000,1,1,0)''
DescriptionDESCRIPTION: Draws Creates a Line object in Hertzian short dipole source. If the scene under the currently activated Material Group node, or modifies a Line if Line short dipole source 'label' already exists, its properties are modified.
====line_rotated({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} rot_x, {{ArgTypeAny}} rot_y, {{ArgTypeAny}} rot_z, {{ArgTypeAny}} length)sigmoid====
''ExampleSYNTAX:line_rotatedsigmoidnc("line_1"{{ArgTypeReal}} x,0,0,0,0,90,0,100{{ArgTypeReal}} a)''
DescriptionEXAMPLE: Draws a rotated Line object in the scene under the currently activated Material Group node''sigmoid(0. Unlike most other CAD functions5, if Line 1)'label' already exists in the scene,an error will be thrown.
====circleDESCRIPTION: Computes and returns the sigmoid function of slope a: 2/({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle1 + exp(-a*x))====- 1.
''Example:circle("pyramid_1",0,0,0,10,10,100)''====sinc====
DescriptionSYNTAX: Draws a circular curve object in the scene under the currently activated Material Group node, or modifies a Circle object if Circle 'label' already exists. The parameters start_angle and end_angle are in degrees.sinc({{ArgTypeReal}} x)
====helixEXAMPLE: ''sinc({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} nturns, {{ArgTypeAny}} radius_inner, {{ArgTypeAny}} radius_outer0.5)====''
''ExampleDESCRIPTION:helixComputes and returns the sinc function: sin(pi*x)/("Helix_1",0,0,0,5,15,50pi*x)''.
Description: Draws a helical curve in the scene under the currently activated Material Group node, or modifies a Helix if Helix 'label' already exists. radius_inner specifies the helix's radius at the beginning of the helix, and radius_outer specifies the radius at the end of the helix.====slice====
====poly_lineSYNTAX: slice({{ArgTypeString}} labelobject, {{ArgType| 3x1 Python tupleArgTypeAny}} p0x0, {{ArgType| 3x1 Python tupleArgTypeAny}} p1y0, ... {{ArgType| 3x1 Python tupleArgTypeAny}} pnz0, {{ArgTypeAny}} uX, {{ArgTypeAny}} uY, {{ArgTypeAny}} uZ)====
EXAMPLE: ''Example:poly_lineslice("pl_1Rect_1",(0,0,0),(1,0,0),(1,0,0)5)''
DescriptionDESCRIPTION: Creates or modifies a PolyLine Slices the specified object in into two parts using the scene. Each point is represented with a Python tuple type. The poly_line is closed if p0 is specified again as pn, otherwise, it is openplane given by the point coordinates and normal vector coordinates.
====nurbs_curve({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn)slot_group====
''ExampleSYNTAX:nurbs_curveslot_group("nc_1",(0,0,0),(1,0,0),(1,0,0){{ArgTypeString}} label)''
DescriptionEXAMPLE: Creates or modifies a NURBS Curve object in the scene. Each point is represented with a Python tuple type. The curve is closed if p0 is specified again as pn, otherwise, it is open.''slot_group("PMC_1")''
== EMDESCRIPTION: Creates a slot trace group in the current module.CubeIf the slot trace group 's Python Functions for Geometric Object Transformation ==label' already exists, the group is activated.
====subtract({{ArgTypeString}} label, {{ArgTypeString}} object_1, {{ArgTypeString}} object_2)solution_plane====
''ExampleSYNTAX:subtractsolution_plane("Subtract_Object"{{ArgTypeString}} label,"Rect_Strip1"{{ArgTypeAny}} field_sensor_label,"Rect_Strip2"{{ArgTypeAny}} is_quasi)''
DescriptionEXAMPLE: Creates a Boolean object named 'label' by subtracting object_2 from object_1. An error will be thrown if a Boolean object named solution_plane("FI_1","FS_1",1)'label' already exists.
====union({{ArgTypeString}} DESCRIPTION: Creates a 2D solution plane observable in [[EM.Ferma]]. If the observable 'label' already exists, {{ArgTypeString}} object_1, {{ArgTypeString}} object_2)====its properties are modified.
''Example:union("Union_Object","Rect_Strip1","Rect_Strip2")''====sphere====
DescriptionSYNTAX: Creates a Boolean object named 'sphere({{ArgTypeString}} label' by unioning object_1 and object_2. An error will be thrown if a Boolean object named 'label' already exists., {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle])
====intersectEXAMPLE: ''sphere({{ArgTypeString}} label"Sphere_1", {{ArgTypeString}} object_10, {{ArgTypeString}} object_20,0,10,0,180)====''
''ExampleDESCRIPTION:intersect("Intersection_Object"Draws a sphere object in the project workspace under the currently activated Material Group node,"Rect_Strip1","Rect_Strip2")or modifies the sphere named 'label'if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the sphere's azimuth axis.
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.====spiral_curve====
====arraySYNTAX: spiral_curve({{ArgTypeString}} label, {{ArgTypeStringArgTypeAny}} x0, {{ArgTypeAny}} objecty0, {{ArgTypeAny}} x_countz0, {{ArgTypeAny}} y_countradius_inner, {{ArgTypeAny}} z_countradius_outer, {{ArgTypeAny}} x_spacingnturns, {{ArgTypeAny}} y_spacingspiral_dir, {{ArgTypeAny}} z_spacingis_dual)====
EXAMPLE: ''Example:arrayspiral_curve("Array_1Spiral _1","Rect_Strip_1"0,40,40,110,"spacing"50,"spacing"5,0,0)''
DescriptionDESCRIPTION: Create or modify an Array Draws a spiral curve objectin the project workspace under the currently activated material group node, or modifies the spiral curve 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" is 1, a dual-arm spiral curve will be drawn.
====translate_by({{ArgTypeString}} label, {{ArgTypeReal}} x_dist, {{ArgTypeReal}} y_dist, {{ArgTypeReal}} z_dist)spiral_strip====
''ExampleSYNTAX:translate_byspiral_strip("MyObj"{{ArgTypeString}} label,10{{ArgTypeAny}} x0,10{{ArgTypeAny}} y0,x{{ArgTypeAny}} z0, {{ArgTypeAny}} width, {{ArgTypeAny}} radius_inner, {{ArgTypeAny}} radius_outer, {{ArgTypeAny}} nturns, {{ArgTypeAny}} spiral_dir, {{ArgTypeAny}} is_dual)''
DescriptionEXAMPLE: Translates an object by the specified distances in each direction.''spiral_strip("Spiral _1",0,0,0,10,50,5,0,0)''
====translate_to({{ArgTypeString}} labelDESCRIPTION: Draws a spiral strip object in the project workspace under the currently activated material group node, {{ArgTypeReal}} x_destor modifies the spiral strip named 'label' if it already exists. If the Boolean parameter "spiral_dir" is 1, {{ArgTypeReal}} y_destthe spiral curve will be drawn counter-clockwise. If the Boolean parameter "is_dual" is 1, {{ArgTypeReal}} z_dest)====a dual-arm spiral curve will be drawn.
''Example:translate_to("MyObj",20,20,x2)''====spline_fit====
DescriptionSYNTAX: Translates an spline_fit({{ArgTypeString}} object to the specified destination.)
====rotateEXAMPLE: ''spline_fit({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle"Poly_1")====''
''ExampleDESCRIPTION:rotate("pyramid_1"Applies spline fit transformation on a specified polymesh,0,0,0,10,10,100)''polyline or polystrip object.
Description: Draws a circular curve object in the scene under the currently activated Material Group node, or modifies a Circle object if Circle 'label' already exists. The parameters start_angle and end_angle are in degrees.====spline2====
====extrudeSYNTAX: spline2({{ArgTypeStringArgTypeReal}} label, {{ArgTypeString}} object, {{ArgTypeAny}} heightx)====
EXAMPLE: ''Example:extrudespline2("Extrude_Object","Rect_Strip1",501.0)''
DescriptionDESCRIPTION: Creates or modifies an Extrusion object from CAD object 'object'. If modifying an existing extrusion, 'object' is ignored, Computes and returns the prequadratic B-existing primitive is used. extrude(...) can only extrude objects that have a single face, and will extrude in the direction of the face's normalspline function.
====explode({{ArgTypeString}} object)spline3====
''ExampleSYNTAX:explodespline3("MyArray"{{ArgTypeReal}} x)''
DescriptionEXAMPLE: Performs an explode operation on a CAD object named 'object'spline3(1.0)''
====revolve({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} uX, {{ArgTypeAny}} uY, {{ArgTypeAny}} uZ, {{ArgTypeAny}} rot_angle)====DESCRIPTION: Computes and returns the cubic B-spline function.
''Example:revolve("Rev1","Line_1",0,0,0,0,0,1)''====sqr_wave====
DescriptionSYNTAX: Creates or modifies a Revolution object called 'label', with a primitive object named 'object'. If modifying an existing Revolution object, 'object' is ignored, and the pre-existing primitive object is used. sqr_wave(x0,y0,z0{{ArgTypeReal}} x) specifies the center of revolution, and (uX,uY,uZ) specifies the revolution axis. rot_angle is in degrees.
== EMEXAMPLE: ''sqr_wave(0.Cube Python Functions for Material Group Creation ==5)''
DESCRIPTION: Computes and returns the periodic square wave function of period T =2, oscillating between two values +1 and -1 and having a value of +1 at x ===color_group({{ArgTypeString}} label)====0.
''Example: color_group("Color_1")''====sqr2====
DescriptionSYNTAX: Creates a color group in CubeCAD module. If the color group 'label' already existssqr2({{ArgTypeReal}} x, the group is activated.{{ArgTypeReal}} y)
====pec_groupEXAMPLE: ''sqr2({{ArgTypeString}} label0,1)====''
''ExampleDESCRIPTION: pec_group("PEC_1")''Computes and returns the sum of squares of x and y: x**2 + y**2.
Description: Creates a PEC material group in the current module. If the PEC group 'label' already exists, the group is activated.====sqr3====
====pec_voltage_groupSYNTAX: sqr2({{ArgTypeStringArgTypeReal}} labelx, {{ArgTypeAnyArgTypeReal}} voltagey, {{ArgTypeReal}} z)====
EXAMPLE: ''Example: pec_voltage_groupsqr2("PEC_1"0,1,102)''
DescriptionDESCRIPTION: Creates a fixed-potential PEC object group in Computes and returns the current module. If the PEC group 'label' already existssum of squares of x, the group is activatedy and z: x**2 + y**2 + z**2.
====pec_via_group({{ArgTypeString}} label, {{ArgTypeAny}} host_layer)sqrt2====
''ExampleSYNTAX: pec_via_groupsqrt2("PEC_1"{{ArgTypeReal}} x,10{{ArgTypeReal}} y)''
DescriptionEXAMPLE: Creates an embedded PEC via set group in the current module. If the PEC via group 'label' already existssqrt2(0, the group is activated.1)''
====thinwire_groupDESCRIPTION: Computes and returns the radius of the 2D point ({{ArgTypeString}} labelx, {{ArgTypeAny}} radiusy): sqrt(x**2 + y**2)====.
''Example: thinwire_group("Thinwire_1",4)''====sqrt3====
DescriptionSYNTAX: Creates a Thinwire material group in the current module. If the thin wire group 'label' already existssqrt3({{ArgTypeReal}} x, the group is activated.{{ArgTypeReal}} y, {{ArgTypeReal}} z)
====pmc_groupEXAMPLE: ''sqrt3({{ArgTypeString}} label0,1,2)====''
''ExampleDESCRIPTION: pmc_groupComputes and returns the radius of the 3D point ("PMC_1"x,y,z)'': sqrt(x**2 + y**2 + z**2).
Description: Creates a PMC material group in the current module. If the PMC group 'label' already exists, the group is activated.====step====
====slot_groupSYNTAX: step({{ArgTypeStringArgTypeReal}} labelx)====
EXAMPLE: ''Example: slot_groupstep("PMC_1"1.0)''
DescriptionDESCRIPTION: Creates a slot trace group in Computes and returns the current module. If the slot trace group 'label' already existsunit step function: 1 if x>0, the group is activated0 if x<0.
====dielectric_group({{ArgTypeString}} label, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma, {{ArgTypeAny}} mu, {{ArgTypeAny}} rho)strip_sweep====
''ExampleSYNTAX: dielectric_groupstrip_sweep("Dielectric_1"{{ArgTypeString}} object,"my_eps",0,1,0{{ArgTypeAny}} width)''
DescriptionEXAMPLE: Creates a dielectric material group in the current module with the specified material properties. If the dielectric group 'label' already existsstrip_sweep("Curve_1", the group is activated.5)''
====impenetrable_surface_group({{ArgTypeString}} label, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma)====DESCRIPTION: Creates a strip version of a given curve object.
''Example: impenetrable_surface_group("Impenet_1",2.2,0.0001)''====subtract====
DescriptionSYNTAX: Creates an impenetrable surface group in [[EM.Terrano]]. If the impenetrable surface group 'subtract({{ArgTypeString}} label' already exists, the group is activated.{{ArgTypeString}} object_1, {{ArgTypeString}} object_2)
====penetrable_surface_groupEXAMPLE: ''subtract({{ArgTypeString}} label"Subtract_Object", {{ArgTypeAny}} eps"Rect_Strip1", {{ArgTypeAny}} sigma, {{ArgTypeAny}} thickness"Rect_Strip2")====''
DESCRIPTION: Creates a Boolean object named 'label'Example: penetrable_surface_group("Penet_1",2by subtracting object_2 from object_1.2,0.0001, 1) An error will be thrown if a Boolean object named 'label'already exists.
Description: Creates a penetrable surface group in [[EM.Terrano]]. If the penetrable surface group 'label' already exists, the group is activated.====superquad====
====penetrable_volume_groupSYNTAX: superquad({{ArgTypeString}} label, {{ArgTypeAny}} epsx0, {{ArgTypeAny}} sigmay0, {{ArgTypeAny}} z0, {{ArgTypeAny}} diam_x, {{ArgTypeAny}} diam_y, {{ArgTypeAny}} order)====
EXAMPLE: ''Example: penetrable_volume_groupsuperquad("Vol_Penet_1SuperQuad_1",2.20,0.0001,0,50,20,4)''
DescriptionDESCRIPTION: Creates Draws a penetrable volume group super-quadratic curve object in [[EM.Terrano]]. If the penetrable volume project workspace under the currently activated material group node, or modifies the super-quadratic curve named 'label' if it already exists. If order = 2, the group is activatedcurve reduces to an ellipse. Higher order makes the round edges sharper. An infinite order reduces the curve to a rectangle.
====terrain_group({{ArgTypeString}} label, {{ArgTypeAny}} eps, {{ArgTypeAny}} sigma)taper_strip====
''ExampleSYNTAX: terrain_grouptaper_strip("Terrain_1"{{ArgTypeString}} label,5.0{{ArgTypeAny}} x0,0.0001{{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_width, {{ArgTypeAny}} top_width, {{ArgTypeAny}} length, {{ArgTypeAny}} is_expo)''
DescriptionEXAMPLE: Creates an terrain surface group in [[EM.Terrano]]. If the terrain surface group 'label' already existstaper_strip("ts_1", the group is activated.0,0,0,50,100,80,1)''
====base_point_group({{ArgTypeString}} DESCRIPTION: Draws a taper strip object in the project workspace under the currently activated material group node, or modifies the taper strip object named 'label)====' if it already exists. If the Boolean parameters "is_expo" is 1, an exponential taper will be drawn.
''Example: base_point_set("BP_Set_1")''====terrain_group====
DescriptionSYNTAX: Creates a base point set in [[EM.Terrano]]. If the base point set group 'terrain_group({{ArgTypeString}} label' already exists, the group is activated.{{ArgTypeAny}} eps, {{ArgTypeAny}} sigma)
====virtual_groupEXAMPLE: ''terrain_group({{ArgTypeString}} label"Terrain_1",5.0,0.0001)====''
''ExampleDESCRIPTION: virtual_group("VIR_1")Creates an terrain surface group in [[EM.Terrano]]. If the terrain surface group 'label'already exists, the group is activated.
Description: Creates a virtual object group in [[EM.Terrano]]. If the virtual group 'label' already exists, the group is activated.====thinwire_group====
====impedance_surface_groupSYNTAX: thinwire_group({{ArgTypeString}} label, {{ArgTypeAny}} z_real, {{ArgTypeAny}} z_imagradius)====
EXAMPLE: ''Example: impedance_surface_groupthinwire_group("IMP_1Thinwire_1",100,-1004)''
DescriptionDESCRIPTION: Creates a impedance_surface Thinwire material group in [[EM.Illumina]]the current module. If the impedance surface thin wire group 'label' already exists, the group is activated.
====conductive_sheet_group({{ArgTypeString}} label, {{ArgTypeAny}} sigma, {{ArgTypeAny}} thickness)torus====
''ExampleSYNTAX: conductive_sheet_grouptorus("Cond_1"{{ArgTypeString}} label,100{{ArgTypeAny}} x0, 0.01{{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_major, {{ArgTypeAny}} radius_minor[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle])''
DescriptionEXAMPLE: Creates a conductive sheet group in [[EM.Picasso]]. If the conductive sheet group 'label' already existstorus("Torus_1", the group is activated.0,0,0,50,20)''
====charge_group({{ArgTypeString}} labelDESCRIPTION: Draws an torus object in the project workspace under the currently activated material group node, {{ArgTypeAny}} density)====or modifies the torus named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the torus's azimuth axis.
''Example: charge_group("Charge_1",-1e-5)''====translate_by====
DescriptionSYNTAX: Creates a volume charge source group in [[EM.Ferma]]. If the charge group 'label' already existstranslate_by({{ArgTypeString}} object, the group is activated. {{ArgTypeReal}} x_dist, {{ArgTypeReal}} y_dist, {{ArgTypeReal}} z_dist)
====magnet_groupEXAMPLE: ''translate_by({{ArgTypeString}} label"MyObj", {{ArgTypeAny}} mu10, {{ArgTypeAny}} Mx10, {{ArgTypeAny}} My, {{ArgTypeAny}} Mzx)====''
''ExampleDESCRIPTION: magnet_group("Magnet_1",1,0,0,100)''Translates an object by the specified distances in each direction.
Description: Creates a permanent magnet source group in [[EM.Ferma]]. If the magnet group 'label' already exists, the group is activated.====translate_to====
====volume_current_groupSYNTAX: translate_to({{ArgTypeString}} labelobject, {{ArgTypeAnyArgTypeReal}} Jxx_dest, {{ArgTypeAnyArgTypeReal}} Jyy_dest, {{ArgTypeAnyArgTypeReal}} Jzz_dest)====
EXAMPLE: ''Example: volume_current_grouptranslate_to("Magnet_1MyObj",020,020,1e6x2)''
DescriptionDESCRIPTION: Creates a volume current source group in [[EM.Ferma]]. If Translates an object to the volume current group 'label' already exists, the group is activatedspecified destination.
====wire_current_group({{ArgTypeString}} label, {{ArgTypeAny}} current, {{ArgTypeAny}} wire_radius)transmitter_set====
''ExampleSYNTAX: wire_current_grouptransmitter_set("Magnet_1"{{ArgTypeString}} label,1{{ArgTypeAny}} base_point_set[,0.5{{ArgTypeAny}} pattern_file, {{ArgTypeAny}} rot_x, {{ArgTypeAny}} rot_y, {{ArgTypeAny}} rot_z)''
DescriptionEXAMPLE: Creates a wire current source group in [[EM.Ferma]]. If the wire current group 'label' already existstransmitter_set("TX_1", the group is activated"PT_1","DPL_STD.RAD",0,90,0)''
== DESCRIPTION: Creates a transmitter set in [[EM.Cube Python Functions for Source & Lumped Device Creation ==Terrano]]. If the transmitter set 'label' already exists, its properties are modified.
====lumped_src({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} polarity[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance])tri====
''ExampleSYNTAX: lumped_srctri("LS_1","Line_1",50,0{{ArgTypeReal}} x)''
DescriptionEXAMPLE: Creates a lumped source in [[EM.Tempo]]. If the lumped source 'label' already exists, its properties are modifiedtri(0.1)''
====distributed_src({{ArgTypeString}} labelDESCRIPTION: Computes and returns the triangular window function: 1-|x| if x<1, {{ArgTypeAny}} rect_object, {{ArgTypeAny}} field_dir, {{ArgTypeAny}} profile[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance])====0 elsewhere.
''Example: distributed_src("DS_1","Rect_1","+y","uniform")''====tri_wave====
DescriptionSYNTAX: Creates a distributed source in [[EM.Tempo]]. If the distributed source 'label' already exists, its properties are modified.tri_wave({{ArgTypeReal}} x)
====microstrip_srcEXAMPLE: ''tri_wave({{ArgTypeString}} label, {{ArgTypeAny}} rect_object, {{ArgTypeAny}} height, {{ArgTypeAny}} edge[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]0.5)====''
''ExampleDESCRIPTION: microstrip_src("MS_1","Rect_1"Computes and returns the periodic triangular wave function of period T = 2,oscillating between two values +1.5,"and -1 and having a value of +1 at x")''= 0.
Description: Creates a microstrip port source in [[EM.Tempo]]. If the microstrip port 'label' already exists, its properties are modified.====triangle_strip====
====cpw_srcSYNTAX: triangle_strip({{ArgTypeString}} label, {{ArgTypeAny}} rect_objectx0, {{ArgTypeAny}} spacingy0, {{ArgTypeAny}} edge[z0, {{ArgTypeAny}} amplitudeside1, {{ArgTypeAny}} phaseside2, {{ArgTypeAny}} resistance]angle)====
EXAMPLE: ''Example: cpw_srctriangle_strip("CPW_1ts_1","Rect_1"0,1.50,"+x"0,50,100,90)''
DescriptionDESCRIPTION: Creates Draws a CPW port source triangle strip object in [[EM.Tempo]]. If the CPW port project workspace under the currently activated material group node, or modifies the triangle strip object named 'label' if it already exists, its properties are modified.
====coaxial_src({{ArgTypeString}} label, {{ArgTypeAny}} cylinder_object, {{ArgTypeAny}} outer_radius, {{ArgTypeAny}} edge[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance])union====
''ExampleSYNTAX: coaxial_srcunion("COAX_1"{{ArgTypeString}} label,"Cyl_1"{{ArgTypeString}} object_1,1.5,"+z"{{ArgTypeString}} object_2)''
DescriptionEXAMPLE: Creates a coaxial port source in [[EM.Tempo]]. If the coaxial port 'label' already existsunion("Union_Object", its properties are modified."Rect_Strip1","Rect_Strip2")''
====waveguide_src({{ArgTypeString}} DESCRIPTION: Creates a Boolean object named 'label, {{ArgTypeAny}} box_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} is_negative[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance])====' by unioning object_1 and object_2. An error will be thrown if a Boolean object named 'label' already exists.
''Example: waveguide_src("WG_1","Box_1",50,0)''====virtual_group====
DescriptionSYNTAX: Creates a waveguide port source in [[EM.Tempo]]. If the waveguide port 'virtual_group({{ArgTypeString}} label' already exists, its properties are modified.)
====wire_gap_srcEXAMPLE: ''virtual_group({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} polarity[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]"VIR_1")====''
DESCRIPTION: Creates a virtual object group in [[EM.Terrano]]. If the virtual group 'label'Example: wire_gap_src("WIG_1"already exists,"Line_1",50,0)''the group is activated.
Description: Creates a wire gap circuit source in [[EM.Libera]]. If the wire gap source 'label' already exists, its properties are modified.====voltage_integral====
====rect_gap_srcSYNTAX: voltage_integral({{ArgTypeString}} label, {{ArgTypeAny}} rect_objectx1, {{ArgTypeAny}} offsety1, {{ArgTypeAny}} polarity[z1, {{ArgTypeAny}} amplitudex2, {{ArgTypeAny}} phasey2, {{ArgTypeAny}} resistance]z2)====
EXAMPLE: ''Example: rect_gap_srcvoltage_integral("GAP_1FI_1","Rect_1"0,0,-10,0,0,10)''
DescriptionDESCRIPTION: Creates a strip gap circuit source voltage integral observable in [[EM.Picasso]] or [[EM.LiberaFerma]]. If the strip gap source observable 'label' already exists, its properties are modified.
====probe_gap_src({{ArgTypeString}} label, {{ArgTypeAny}} via_object, {{ArgTypeAny}} polarity[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance])volume_current_group====
''ExampleSYNTAX: probe_gap_srcvolume_current_group("Probe_1"{{ArgTypeString}} label,"Via_1"{{ArgTypeAny}} Jx,0{{ArgTypeAny}} Jy, {{ArgTypeAny}} Jz)''
DescriptionEXAMPLE: Creates a probe gap circuit source in [[EM.Picasso]]. If the probe gap source 'label' already existsvolume_current_group("Magnet_1", its properties are modified.0,0,1e6)''
====wave_port({{ArgTypeString}} DESCRIPTION: Creates a volume current source group in [[EM.Ferma]]. If the volume current group 'label' already exists, {{ArgTypeAny}} rect_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} is_negative[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance])====the group is activated.
''Example: ====wave_port("WP_1","Rect_1",0,0)''====
DescriptionSYNTAX: Creates a scattering wave port source in wave_port({{ArgTypeString}} label, {{ArgTypeAny}} rect_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} is_negative[[EM.Picasso, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance]] or [[EM.Libera]]. If the wave port 'label' already exists, its properties are modified.)
====short_dipoleEXAMPLE: ''wave_port({{ArgTypeString}} label"WP_1", {{ArgTypeAny}} x0"Rect_1", {{ArgTypeAny}} y00, {{ArgTypeAny}} z0, {{ArgTypeAny}} length, {{ArgTypeAny}} uX, {{ArgTypeAny}} uY, {{ArgTypeAny}} uZ, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase0)====''
DESCRIPTION: Creates a scattering wave port source in [[EM.Picasso]] or [[EM.Libera]]. If the wave port 'label'Example: wave_port("SD_1"already exists,0,0,50,3,0,0,1,1,0)''its properties are modified.
Description: Creates a Hertzian short dipole source. If the short dipole source 'label' already exists, its properties are modified.====waveguide_design====
====planewaveSYNTAX: waveguide_design({{ArgTypeStringArgTypeReal}} labeler, {{ArgTypeAnyArgTypeReal}} theta, {{ArgTypeAny}} phi, {{ArgTypeAny}} polarizationfreq_hertz)====
EXAMPLE: ''Example: planewavewaveguide_design("PW_1",180,1.0,"tm"2e9)''
DescriptionDESCRIPTION: Creates a plane wave source. If Computes and returns the plane wave source 'label' already exists, its properties are modifiedminimum 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.
====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)waveguide_src====
''ExampleSYNTAX: gauss_beamwaveguide_src("PW_1"{{ArgTypeString}} label,180{{ArgTypeAny}} box_object,0{{ArgTypeAny}} offset,"tm"{{ArgTypeAny}} is_negative[,0{{ArgTypeAny}} amplitude,0{{ArgTypeAny}} phase,0,20,0,0{{ArgTypeAny}} resistance])''
DescriptionEXAMPLE: Creates a Gaussian beam source in [[EM.Tempo]]. If the Gaussian beam source 'label' already existswaveguide_src("WG_1", its properties are modified."Box_1",50,0)''
====huygens_src({{ArgTypeString}} DESCRIPTION: Creates a waveguide port source in [[EM.Tempo]]. If the waveguide port 'label' already exists, {{ArgTypeAny}} filename[, {{ArgTypeAny}} set_lcs, {{ArgTypeAny}} polarization, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} x_rot, {{ArgTypeAny}} y_rot, {{ArgTypeAny}} z_rot])====its properties are modified.
''Example: huygens_src("HS_1","Huygens_1.HUY",1,100,100,0,0,0,0)''====wire_current_group====
DescriptionSYNTAX: Creates a Huygens source. If the Huygens source 'wire_current_group({{ArgTypeString}} label' already exists, its properties are modified.{{ArgTypeAny}} current, {{ArgTypeAny}} wire_radius)
====resistorEXAMPLE: ''wire_current_group({{ArgTypeString}} label"Magnet_1", {{ArgTypeAny}} line_object1, {{ArgTypeAny}} offset, {{ArgTypeAny}} resistance0.5)====''
DESCRIPTION: Creates a wire current source group in [[EM.Ferma]]. If the wire current group 'label'Example: resistor("Res_1"already exists,"Line_1",25,50)''the group is activated.
Description: Creates a resistor in [[EM.Tempo]]. If the resistor 'label' already exists, its properties are modified.====wire_gap_src====
====capacitorSYNTAX: wire_gap_src({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} capacitance_pFpolarity[, {{ArgTypeAny}} amplitude, {{ArgTypeAny}} phase, {{ArgTypeAny}} resistance])====
EXAMPLE: ''Example: capacitorwire_gap_src("Cap_1WIG_1","Line_1",2550,100)''
DescriptionDESCRIPTION: Creates a capacitor wire gap circuit source in [[EM.TempoLibera]]. If the capacitor wire gap source 'label' already exists, its properties are modified.
====inductor({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} offset, {{ArgTypeAny}} inductance_nH)zoom_extents====
''ExampleSYNTAX: inductorzoom_extents("Cap_1","Line_1",25,10)''
DescriptionDESCRIPTION: Creates a inductor in [[EM.Tempo]]. If Zooms to fit the inductor 'label' already exists, its properties are modifiedextents of the physical structure into the screen.
====diode({{ArgTypeString}} label, {{ArgTypeAny}} line_object, {{ArgTypeAny}} polarity, {{ArgTypeAny}} is_fA, {{ArgTypeAny}} temperature_K, {{ArgTypeAny}} ideality_factor)====<br />
''Example: diode("Diode_1","Line_1",25,0,10,300,1)''<hr>
Description: Creates a diode in [[EMImage:Top_icon.Tempopng|30px]]. If '''[[#Standard_Python_Operators | Back to the diode Top of the Page]]''label' already exists, its properties are modified.
p>&nbsp;</p>[[Image:Back_icon.png|40px30px]] '''[[EM.Cube | Back to EM.Cube Main Page]]'''
28,333
edits