== EM.Cube's Python Functions for Simulation-Related Functions & Operations ==
Â
====select_module====
Â
SYNTAX: select_module({{ArgTypeString}} module_name)
Â
EXAMPLE: ''select_module("[[EM.Tempo]]")''
Â
DESCRIPTION: Selects and sets [[EM.Cube]]'s active module.
Â
====set_units====
Â
SYNTAX: set_units({{ArgTypeString}} units)
Â
EXAMPLE: ''set_units("meter")''
Â
DESCRIPTION: Sets [[EM.Cube]]'s project length units.
Â
====set_frequency====
Â
SYNTAX: set_frequency({{ArgTypeAny}} value)
Â
EXAMPLE: ''set_frequency(2.4e9)''
Â
DESCRIPTION: Sets [[EM.Cube]]'s center frequency.
Â
====set_bandwidth====
Â
SYNTAX: set_bandwidth({{ArgTypeAny}} value)
Â
EXAMPLE: ''set_bandwidth(1e9)''
Â
DESCRIPTION: Sets [[EM.Cube]]'s frequency bandwidth.
====background_layer====
DESCRIPTION: Deletes a finite-thickness substrate layer from [[EM.Picasso]]'s background layer stackup.
Â
====set_stackup_order====
Â
SYNTAX: set_stackup_order("THS", {{ArgTypeString}} label_1, {{ArgTypeString}} label_2, ..., {{ArgTypeString}} label_n, "BHS")
Â
EXAMPLE: ''background_layer("THS","Top_Layer","Mid_Layer","Bottom_Layer","BHS")''
Â
DESCRIPTION: 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 bottom half-space. All the intermediate finite-thickness substrate layers must be included and listed in the right order.
====global_ground====
DESCRIPTION: Returns the size of the computational domain along the specified direction.
Â
====set_domain_offset====
Â
SYNTAX: set_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 ±X, ±Y and ±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 ±X, ±Y and ±Z directions in free-space wavelengths.
Â
====set_boundary_conditions====
Â
SYNTAX: set_boundary_conditions({{ArgTypeString}} xn_type, {{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 ±X, ±Y and ±Z boundary walls. The options are "pec", "pmc" and "pml".
====add_variable====
DESCRIPTION: Returns the computed value of the specified standard output parameter at the end of a simulation.
Â
====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.
====plot_file====