/* meander.c make EEM-MOM data */ #include "mom_datalib.h" int main(void) { const double a = 6e-3; // length const double h = 6e-3; // height const int adiv = 5; // division of length const int hdiv = 5; // division of height const int n = 6; // repeat int i; double x0; // initialize mom_init(); // misc mom_title("meander line"); mom_freq(500e6, 1000e6, 50); mom_radius(a / adiv / 5.0); // geometry // -X for (i = n - 1; i >= 0; i--) { x0 = -a / 2 - (i * 2 * a); mom_wire6(0, x0 - 2 * a, 0, 0, x0 - a, 0, 0, adiv); mom_wire6(0, x0 - a, 0, 0, x0 - a, h, 0, hdiv); mom_wire6(0, x0 - a, h, 0, x0, h, 0, adiv); mom_wire6(0, x0, h, 0, x0, 0, 0, hdiv); } // feed mom_wire6(0, -a / 2, 0, 0, +a / 2, 0, 0, adiv); // feed mom_wire_feed(1, 0); // +X for (i = 0; i < n; i++) { x0 = +a / 2 + (i * 2 * a); mom_wire6(0, x0, 0, 0, x0, h, 0, adiv); mom_wire6(0, x0, h, 0, x0 + a, h, 0, hdiv); mom_wire6(0, x0 + a, h, 0, x0 + a, 0, 0, adiv); mom_wire6(0, x0 + a, 0, 0, x0 + 2 * a, 0, 0, hdiv); } // output mom_outdat("meander.mom"); return 0; }