function pass = cavity( openEMS_options, options ) physical_constants; ENABLE_PLOTS = 1; CLEANUP = 1; % if enabled and result is PASS, remove simulation folder STOP_IF_FAILED = 1; % if enabled and result is FAILED, stop with error SILENT = 0; % 0=show openEMS output if nargin < 1 openEMS_options = ''; end if nargin < 2 options = ''; end if any(strcmp( options, 'run_testsuite' )) ENABLE_PLOTS = 0; STOP_IF_FAILED = 0; SILENT = 1; end % LIMITS - inside lower_rel_limit = 1.3e-3; % -0.13% upper_rel_limit = 1.3e-3; % +0.13% lower_rel_limit_TM = 2.5e-3; % -0.25% upper_rel_limit_TM = 0; % +0% min_rel_amplitude = 0.6; % 60% min_rel_amplitude_TM = 0.27; % 27% % LIMITS - outside outer_rel_limit = 0.02; max_rel_amplitude = 0.17; % structure a = 5e-2; b = 2e-2; d = 6e-2; if ~((b