Changes

Glossary of EM.Cube's Python Functions

1,372 bytes added, 03:30, 16 September 2016
/* EM.Cube's Python Functions for Simulation-Related Functions & Operations */
Description: Zooms to fit the extents of the physical structure into the screen.
 
====get_domain_extent({{ArgTypeString}} coordinate)====
 
''Example: get_domain_extent("x")''
 
Description: Returns the size of the computational domain along the specified direction.
 
====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({{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({{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({{ArgTypeString}} var_name, {{ArgTypeAny}} value)====
28,333
edits